-
Notifications
You must be signed in to change notification settings - Fork 694
chore: add concurrent workflow rules #4855
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
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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 adds concurrency controls to 12 GitHub Actions workflow files to prevent multiple runs of the same workflow on the same branch/ref from executing simultaneously.
- Adds concurrency groups using
${{ github.workflow }}-${{ github.ref }}pattern to most workflows - Sets
cancel-in-progress: truefor CI/validation workflows to save resources - Sets
cancel-in-progress: falsefor release and stale workflows to ensure completion
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/zizmor.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/update-docs.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/terraform.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/stale.yml |
Adds concurrency control without auto-cancellation; uses workflow-only group |
.github/workflows/semantic-check.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/release.yml |
Adds concurrency control without auto-cancellation |
.github/workflows/packer-build.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/ovs.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/ossf-scorecard.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/lambda.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/dependency-review.yml |
Adds concurrency control with auto-cancellation |
.github/workflows/codeql.yml |
Adds concurrency control with auto-cancellation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[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
Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request updates several GitHub Actions workflow files to add concurrency controls. The main goal is to prevent multiple runs of the same workflow from executing simultaneously on the same branch or ref, which helps reduce unnecessary resource usage and ensures that only the latest workflow run is active. Most workflows now use a concurrency group based on the workflow name and branch/ref, with
cancel-in-progressset totrueso that in-progress runs are canceled when a new run is triggered. Two workflows (release.ymlandstale.yml) use a different concurrency configuration.Concurrency configuration added to workflows:
General concurrency improvements
concurrencyblocks to.github/workflows/codeql.yml,.github/workflows/dependency-review.yml,.github/workflows/lambda.yml,.github/workflows/ossf-scorecard.yml,.github/workflows/ovs.yml,.github/workflows/packer-build.yml,.github/workflows/semantic-check.yml,.github/workflows/terraform.yml,.github/workflows/update-docs.yml, and.github/workflows/zizmor.ymlto group runs by workflow name and branch/ref and cancel in-progress runs (cancel-in-progress: true). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Special concurrency configuration
.github/workflows/release.yml, added a concurrency group by workflow name and branch/ref, but setcancel-in-progress: falseto allow multiple runs to proceed..github/workflows/stale.yml, added a concurrency group by workflow name only, withcancel-in-progress: false.