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

CI: Cancel in progress jobs for other workflows #3904

Merged
merged 4 commits into from
Jun 22, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Jun 19, 2024

This week during the code sprint, I observed that some workflows or jobs weren't cancelled when another push/force push to a PR was made. Most of them didn't have a long runtime, and some were tricky as they continued to be queued after a force push.

Also fixes a small issue where clang-format jobs were cancelled on main (supposed to be a protected branch) when multiple jobs of this typed were queued. Suppose three merges to main made extremely close together, and the first set of jobs start normally. The first one, currently executing, continued, but the second was cancelled, and the third was made "pending", waiting for the first to finish. This PR finally makes use of the same known pattern.

@echoix echoix added the CI Continuous integration label Jun 19, 2024
@echoix echoix added this to the 8.5.0 milestone Jun 19, 2024
@echoix echoix requested a review from wenzeslaus June 21, 2024 19:55
@echoix
Copy link
Member Author

echoix commented Jun 21, 2024

This is quite trivial (simple) to review. Almost anybody can review it right away (it applies the existing pattern in the repo to other files). I can't approve my own PRs, even if I try to take good care of CI.

@echoix echoix merged commit acee505 into OSGeo:main Jun 22, 2024
25 checks passed
@echoix echoix deleted the cancel-in-progress-workflow branch June 22, 2024 08:35
@a0x8o a0x8o mentioned this pull request Jun 27, 2024
kritibirda26 pushed a commit to kritibirda26/grass that referenced this pull request Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants