-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-134309: Fix premature cancellation of CI tests when multiple PRs have the same branch name #134310
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
gh-134309: Fix premature cancellation of CI tests when multiple PRs have the same branch name #134310
Changes from 1 commit
0bdb82d
9fca2f1
f78a7d6
0d86737
33e688a
48f11bf
2e25048
570a334
961818a
ba70d90
1073529
2a193c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Addresses issue encountered during PyCon US sprints where having multiple workflows with the same concurrency group causes one of the two to be canceled. Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,7 +15,15 @@ permissions: | |||||||||||||||||||||
contents: read | ||||||||||||||||||||||
|
||||||||||||||||||||||
concurrency: | ||||||||||||||||||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-reusable | ||||||||||||||||||||||
group: >- | ||||||||||||||||||||||
${{ | ||||||||||||||||||||||
github.workflow | ||||||||||||||||||||||
}}-${{ | ||||||||||||||||||||||
github.ref_name | ||||||||||||||||||||||
}}-${{ | ||||||||||||||||||||||
github.event.pull_request.number | ||||||||||||||||||||||
|| github.sha | ||||||||||||||||||||||
}} | ||||||||||||||||||||||
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. Remove whitespace
Suggested change
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. It was me who asked for wrapped lines FTR. Also, we decided to drop the reusable suffix. We talked about it with Cam a lot yesterday. 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. I don't think wrapped lines meaningfully help here, and because of the interpolation markers it just adds more visual clutter. Fine with keeping or removing |
||||||||||||||||||||||
cancel-in-progress: true | ||||||||||||||||||||||
|
||||||||||||||||||||||
env: | ||||||||||||||||||||||
|
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.
Can you please add a comment to explain why we have to put these information into the group? I understand that it's a way to create a global unique identifier.
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.
Just to clarify, the info from lines 19-26 or just what's on line 18?
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.
The entire thing I imagine.
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.
Document how the group string is created.