Enable concurrency for each workflow#958
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a concurrency block to each GitHub Actions workflow so that newer runs cancel in-progress runs from the same PR/ref, saving CI minutes and providing faster feedback.
Changes:
- Adds concurrency groups keyed by PR number (falling back to
github.ref) for PR-driven workflows (ci, pre-commit, labeler, label-past-pr). - Adds a
github.workflow+github.refconcurrency group for the release workflow. - Adds a
github.event.schedule-based concurrency group for the scheduled gist-update workflow.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ci.yml | Per-PR concurrency with cancel-in-progress. |
| .github/workflows/pre-commit.yml | Per-PR concurrency with cancel-in-progress. |
| .github/workflows/labeler.yml | Per-PR concurrency with cancel-in-progress. |
| .github/workflows/label-past-pr.yml | Per-PR concurrency with cancel-in-progress. |
| .github/workflows/release.yml | Per-ref concurrency; cancelling release mid-run may be unsafe. |
| .github/workflows/gist-update.yml | Per-schedule concurrency with cancel-in-progress. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughThis pull request adds ChangesWorkflow Concurrency Control
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Warning
CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.
Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 11-14: The release workflow's concurrency block currently sets
cancel-in-progress: true which can abort non-idempotent release steps (e.g.,
Songmu/tagpr runs) and leave tags/PRs in a partial state; update the concurrency
configuration used by the release workflow so that cancel-in-progress is
disabled (set cancel-in-progress: false or remove the cancel-in-progress key)
for the concurrency group defined by group: ${{ github.workflow }}-${{
github.ref }}, ensuring release runs are serialized and not auto-cancelled.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 68c4967f-cfb4-49ba-b51d-dc4c524f45fc
📒 Files selected for processing (6)
.github/workflows/ci.yml.github/workflows/gist-update.yml.github/workflows/label-past-pr.yml.github/workflows/labeler.yml.github/workflows/pre-commit.yml.github/workflows/release.yml
Cancel in-progress jobs when a new commit is pushed to the same PR.
3c983fc to
ffd9e4a
Compare
Cancel in-progress jobs when a new commit is pushed to the same PR.