Repository navigation
ci: cancel superseded pull request runs in the four path-filtered workflows - #512
Merged
Merged
Conversation
…kflows A new push to a pull request cancels that pull request's older run of the same workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new push to a pull request now cancels that pull request's older run of the same workflow, for the four workflows that run on pull requests:
contained-source,daemon-lifecycle,highlight-lifecycleandkernel-stamp. All four trigger only on pull requests, so no run onfork/consolidatedis affected.The group key is the workflow name plus the pull request number. Each workflow has its own name, so they do not cancel each other.
In the last 30 days these workflows ran 141 times on pull requests. 24 of those were still running when a newer run started on the same branch, about 145 minutes of runner time, all of it from
daemon-lifecycle. That figure is estimated from run timestamps. The workflows use path filters, so a push that matches no path starts no replacement run and the older run finishes as before.README rows checked: none are affected, since no user-visible feature, number or config key changes. This pull request touches the workflow files, which are in their own path lists, so all four run on it.
Summary by cubic
Adds concurrency cancellation to the four PR-only workflows (
contained-source,daemon-lifecycle,highlight-lifecycle,kernel-stamp) so a new push to a PR cancels the older run of the same workflow. In the last 30 days, 24 of 141 PR runs were superseded, wasting roughly 145 minutes of runner time.fork/consolidatedare unaffected since these workflows only trigger on pull requests.Written for commit 597fe6f. Summary will update on new commits.
Summary by CodeRabbit