-
Notifications
You must be signed in to change notification settings - Fork 179
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
ci(workflows): cancel in progress workflows on new trigger #11370
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #11370 +/- ##
=======================================
Coverage 74.74% 74.74%
=======================================
Files 2046 2046
Lines 56966 56966
Branches 5545 5545
=======================================
Hits 42580 42580
Misses 13128 13128
Partials 1258 1258
Flags with carried forward coverage won't be shown. Click here to find out more. |
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 like these changes for devs but we should definitely not apply them to tag builds and probably edge builds. i think we should apply them to release-branch builds because the "oh god i made a typo" thing is extremely common in, for instance, release-branch bump commits.
Makes sense. I have added expressions to detect when the branch name is I proved the expressions out in this repo |
Just curious: why don't we want to auto-cancel tag builds? |
Everything about nonstandard or surprising aspects of release management should be manual, in my opinion. It's fine and a good idea to automate happy paths, but anything that gets weird really needs human oversight. |
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.
Looks good to me!
* use run_id to exclude edge branch and tags from concurrency group
* use run_id to exclude edge branch and tags from concurrency group
* use run_id to exclude edge branch and tags from concurrency group
* use run_id to exclude edge branch and tags from concurrency group
* use run_id to exclude edge branch and tags from concurrency group
Overview
GitHub Workflow Concurrency Documentation
Review requests
Questions
edge
, if a subsequent merge to edge happens before the workflows to build finish, they will be cancelled. This results in states of the edge branch with no built assets. Do we want to make an exceptions foredge
?release*
branches where this may have side effects?Risk assessment
Medium, this needs 👀 as it is hard to map all the workflows and triggers conceptually to understand any side effects.