Repository navigation
AI-3639: let client SDKs CI runs on main finish #2283
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
Changes from all commits
c88146a
f5f1d7a
ad0528e
fe13b24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,5 +256,9 @@ jobs: | |
| key: ${{ steps.packages.outputs.cache-primary-key }} | ||
|
|
||
| concurrency: | ||
| group: ci-client-sdks-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | ||
| cancel-in-progress: true | ||
| # The event is in the key so a pull request from a fork's `main` never joins main's push group. | ||
| group: ci-client-sdks-${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }} | ||
| # A running run on main is not cancelled by a newer push, and a newer push replaces only a pending | ||
| # one. Only a finished push run saves the Swift package cache (#2235, #2225). A pull request run | ||
| # still cancels the one before it. | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Should fix] R1.1 A run on main can still be cancelled: the group key is
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in ad0528e: the group key is now |
||
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.
[R2.2] Nit (pre-existing): the PR group uses
github.head_ref, the branch name. A fork PR and a same-repo PR with the same branch name (e.g.feature-x) both get…-pull_request-feature-x, so one cancels the other's run. Optional fix, keyed by PR number:${{ github.event_name }}-${{ github.event.pull_request.number || github.ref_name }}in place of the event and head_ref parts.