-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't cancel running master builds #54617
Conversation
This prioritizes getting master builds completed for refreshing ccaches
@@ -11,7 +11,7 @@ on: | |||
# We only care about the latest revision of a PR, so cancel all previous instances. | |||
concurrency: | |||
group: general-build-${{ github.event.pull_request.number || github.ref_name }} | |||
cancel-in-progress: true | |||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My turn to be (un-)professionally embarrassed for not realizing the solution (to have PRs self-cancel but not master) was as easy as this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was stumped for about 10 minutes, you're not alone.
Bumping the branch with a comment triggered cancellation as expected. |
see: - CleverRaven/Cataclysm-DDA#54306 - CleverRaven/Cataclysm-DDA#54617 Co-authored-by: Kevin Granade <[email protected]>
see: - CleverRaven/Cataclysm-DDA#54306 - CleverRaven/Cataclysm-DDA#54617 Co-authored-by: Kevin Granade <[email protected]>
see: - CleverRaven/Cataclysm-DDA#54306 - CleverRaven/Cataclysm-DDA#54617 Co-authored-by: Kevin Granade <[email protected]>
see: - CleverRaven/Cataclysm-DDA#54306 - CleverRaven/Cataclysm-DDA#54617 Co-authored-by: Kevin Granade <[email protected]>
* ci: remove EXTRA_TEST_OPTS not used ATM * ci: install SDL dependencies only for tiles build see: CleverRaven/Cataclysm-DDA#55088 Co-authored-by: Brett Dong <[email protected]> * ci: order title first for readability * ci: limit resource usages on repeated pushes see: - CleverRaven/Cataclysm-DDA#54306 - CleverRaven/Cataclysm-DDA#54617 Co-authored-by: Kevin Granade <[email protected]> * ci: add `ccache_limit` and `ccache_key` * ci: correctly cache ccache see: - CleverRaven/Cataclysm-DDA#54078 - CleverRaven/Cataclysm-DDA#64553 Co-authored-by: Kevin Granade <[email protected]> Co-authored-by: Brett Dong <[email protected]> * ci: ccache stats and cleanup see: CleverRaven/Cataclysm-DDA#64553 Co-authored-by: Brett Dong <[email protected]> * ci: write ccache from upload only see: CleverRaven/Cataclysm-DDA#54558 Co-authored-by: Andrew Krieger <[email protected]> * ci: better performance ccache options see: CleverRaven/Cataclysm-DDA@aaffb31 Co-authored-by: Andrew Krieger <[email protected]> * ci: build only and test only script see: CleverRaven/Cataclysm-DDA#54435 Co-authored-by: Brett Dong <[email protected]> Co-authored-by: Alexey <[email protected]> * ci: add some line breaks my eyes hurt * ci: skip via either code or data see: - CleverRaven/Cataclysm-DDA@5707742 - CleverRaven/Cataclysm-DDA@f6ec25f Co-authored-by: Kevin Granade <[email protected]> Co-authored-by: Andrew Krieger <[email protected]> * ci: separate build and test step see: CleverRaven/Cataclysm-DDA#54435 Co-authored-by: Brett Dong <[email protected]> * ci: bump actions/upload-artifact to v3 see: CleverRaven/Cataclysm-DDA#64962 Co-authored-by: casswedson <[email protected]> * ci: ignore upload fail after build fails see: CleverRaven/Cataclysm-DDA@b7dc997 Co-authored-by: John Bytheway <[email protected]> * ci: emit success artifact * fix: use num_jobs correctly * Update .github/workflows/matrix.yml Co-authored-by: Olanti <[email protected]> * Update .github/workflows/matrix.yml Co-authored-by: Olanti <[email protected]> * ci: remove object-creator * ci: add run-on-draft flag * ci: match languages in translation test * ci: use `upload-artifact` * Update build-scripts/gha_compile_only.sh Co-authored-by: Olanti <[email protected]> * test: fix catch2 tag format * test: mark overmap lab generation test as flaky * test: mark ranged aiming test as flaky * test: use anonymous namespace * test: adjust grenade lethality to match BN value * ci: remove gh push trigger it didn't work * ci: reduce cache limit github cache limit is 10GB * Revert "test: mark overmap lab generation test as flaky" This reverts commit 71f6840. * ci: does it work? * ci: remove `FRAMEWORK` option * ci: fix restore key --------- Co-authored-by: Brett Dong <[email protected]> Co-authored-by: Kevin Granade <[email protected]> Co-authored-by: Andrew Krieger <[email protected]> Co-authored-by: Alexey <[email protected]> Co-authored-by: casswedson <[email protected]> Co-authored-by: John Bytheway <[email protected]> Co-authored-by: Olanti <[email protected]>
Summary
None
Purpose of change
We've been seeing a lot of instances of master builds being interrupted by this concurrency limit, which with bad timing can lead to ccache archives going a long time before being refreshed, which in turn makes the builds themselves take longer.
Describe the solution
With recent improvements to ccache utilization, master builds are now more important to refresh the ccache archives, as well as much, much faster to complete.
It's no longer critical to try to cancel as many jobs as possible, so for master builds this backs off on cancelling in-progress jobs to give them a chance to complete.
Testing
Possibly bump the PR to validate that the jobs are still cancelled as expected.