-
Notifications
You must be signed in to change notification settings - Fork 76
ci: Fix concurrency settings to allow parallel workflows on develop branch #2391
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: Fix concurrency settings to allow parallel workflows on develop branch #2391
Conversation
…ranch Co-authored-by: kuznetsss <[email protected]>
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.
Pull Request Overview
This PR updates the GitHub Actions workflow concurrency configuration to prevent cancellation of in-progress builds on the develop branch while maintaining cancellation behavior for other branches.
- Modified the
cancel-in-progresssetting to use a conditional expression based on the branch reference - Preserves complete CI coverage on the
developbranch by allowing workflows to run to completion - Maintains efficiency on feature branches and pull requests by continuing to cancel superseded workflows
…l develop runs Co-authored-by: mathbunnyru <[email protected]>
|
@copilot, can you fix all the comments? |
Co-authored-by: kuznetsss <[email protected]>
kuznetsss
left a comment
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.
@copilot, one more comment to fix
Co-authored-by: kuznetsss <[email protected]>
Updates the GitHub Actions workflow concurrency configuration to allow parallel execution of workflows on the
developbranch while maintaining cancellation behavior for other branches.Problem
Previously, all workflow runs were subject to cancellation when new commits were pushed to the same branch (
cancel-in-progress: true). This caused issues on thedevelopbranch where important CI runs could be prematurely cancelled, potentially missing critical feedback on the main development branch.Solution
Modified the
concurrencysettings in.github/workflows/build.ymlto use separate concurrency groups and conditional cancellation:Behavior
developbranch: Each run gets its own concurrency group (usingrun_number), allowing parallel execution without cancellation or queuing delayscancel-in-progress: true- workflows are cancelled when new commits are pushedThis ensures that the
developbranch can run multiple workflows in parallel without interference while still providing the efficiency benefits of workflow cancellation on feature branches and pull requests.💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.