-
-
Couldn't load subscription status.
- Fork 38
ci: add concurrency groups to prevent duplicate workflow runs #807
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
base: master
Are you sure you want to change the base?
ci: add concurrency groups to prevent duplicate workflow runs #807
Conversation
Add concurrency groups with cancel-in-progress to both tests and release workflows to prevent multiple runs when pushing to a branch, creating a PR, and merging the PR. This will cancel in-progress runs when new commits are pushed to the same branch/PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request ReviewSummaryThis PR adds concurrency groups to the GitHub Actions workflows to prevent duplicate workflow runs. The implementation is clean and follows GitHub Actions best practices. ✅ Positives1. Correct Implementation
2. Resource Optimization
3. Configuration Choice
|
Pull Request Review: CI Concurrency GroupsSummaryThis PR adds concurrency groups to prevent duplicate workflow runs in both Code Quality: ✅ GoodPositive Aspects:
Implementation Details:The changes add this configuration to both workflows: concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: trueThis means:
Potential Issues:
|
028b7a0 to
a85b1db
Compare
Code Review SummaryThis PR adds concurrency groups to the ✅ Strengths
🔍 AnalysisConfiguration Reviewtests.yml:7-9 and release.yml:9-11 concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: trueBehavior:
|
Security ReviewCritical Issue FoundDangerous use of Problem: The release workflow uses Impact: This can cause partial releases where:
Recommendation: Remove Suggested fix: Set Note: The |
Problem
The test and release workflows were executed multiple times:
This led to unnecessary resource waste and longer CI run times.
Solution
Add concurrency groups with
cancel-in-progress: trueto both workflows:tests.ymlrelease.yml