Skip to content
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

Tweak concurrency group for CI so tag is not cancelled by push #3116

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Feb 16, 2022

This is an attempt to prevent the release job from being cancelled.
The problem was described in #3097 (comment) and #3093 (comment).

Summary of changes

Add github.ref_type to the concurrency.group

According to the docs github.ref_type can be either tag or branch, so my hope is that it should differentiate between a push to main and a new tag, but I don't know how to test that...

The drawback of this change is that the CI workflow will run twice for the commit being tagged (but I think that is not problematic, giving that tags are only created sporadically and the number of duplication will be very small)

Closes

Pull Request Checklist

@abravalheri abravalheri changed the title Tweak concurrency group for CI so tags are not cancelled by pushes Tweak concurrency group for CI so tag is not cancelled by push Feb 16, 2022
@abravalheri abravalheri marked this pull request as ready for review February 16, 2022 23:45
@abravalheri
Copy link
Contributor Author

@jaraco, this might help with the problem in #3093 (comment), although I guess the only way of testing it is to apply to the repository and see what happens next time a release is cut.

@blink1073
Copy link
Contributor

Oh ha, I didn't see this PR before I updated mine. I think this is probably cleaner.

@abravalheri
Copy link
Contributor Author

@blink1073, thank you very much for the help!

Should we close one of the 2 PRs now that they are mostly the same? I don't mind which one, so please let me know which one you prefer :)

@blink1073 blink1073 mentioned this pull request Feb 17, 2022
2 tasks
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jaraco jaraco merged commit ba029ee into pypa:main Feb 17, 2022
@abravalheri abravalheri deleted the ensure-release-job-runs branch February 17, 2022 14:42
webknjaz added a commit to cherrypy/cheroot that referenced this pull request Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants