Run Package stage on PR builds#2516
Conversation
|
This pull request does not have a backport label. Could you fix it @ycombinator? 🙏
NOTE: |
|
The line that is being removed in this PR used to be commented out but was un-commented-out in https://github.com/elastic/elastic-agent/pull/36/files#r812300322. Perhaps @v1v can shed some light on why that change was made so we're not introducing some other issues by undoing it via this PR. |
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
🌐 Coverage report
|
Package stage on PR builds
👋 , it was originally requested in #20 (comment) IIRC, it was related to running faster builds versus running everything on a PR basis. In any case, it's possible to enable the packaging on demand using GitHub labels or GitHub commands ( Lines 522 to 534 in 5fb9985 |
|
Gotcha, thanks for the background, @v1v. @cmacknz How should we proceed here? Some options:
It looks like the |
|
#2519 can help with validating when the auto-bump for the Golang version happens by running the packaging on PRs automatically. |
What does this PR do?
This PR ensures that the
Packagestage is run as part of PR builds, not justmainbuilds.Why is it important?
To avoid having PR builds succeed only to have the PR's changes fail later after they're merged into
main. See #2475 (comment) for an example.