Repository navigation
ci: cancel superseded pull request runs - #37
Conversation
A newer push to a PR left the older run holding a runner until it finished; the org shares a 60-job hosted-runner cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe workflow groups runs by pull request number, or by Git ref when a pull request number is unavailable. It cancels an in-progress run when a newer run starts in the same group. Merge Risk:
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the single workflow change in .github/workflows/check.yml.
- Concurrency group: adds a top-level
concurrencyblock keyed oncheck-${{ github.event.pull_request.number || github.ref }}withcancel-in-progress: true, so a newer push cancels the superseded run of the same PR.
The group is scoped per PR, so runs for different PRs don't cancel each other. The only trigger is pull_request, so the github.ref fallback is never used. The ready_for_review and draft interplay is unaffected.
claude-sonnet-5-5 | 𝕏

Problem
A newer push to a PR leaves the older
Checkrun holding a runner until it finishes, and the org shares a 60-job hosted-runner cap.Approach
Give
check.ymla top-level concurrency group per PR withcancel-in-progress: true, so a new push cancels the superseded run.Impact
No public API or wire impact. Only runs of the same PR cancel each other.
Alternatives
A job-level group: the workflow has one job, so the top-level group is simpler and also covers jobs added later.
Follow-ups
None.
Validation
check.yml: no findings.just check: passes.Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, high effort
(Written by Claude Opus 5.5 with high)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.01a1d21b-2f44-7d63-a910-f09fe903baca, round 1The concurrency group isolates pull requests and cancels superseded runs without changing check behavior; code inspection found no actionable issues, and builds and tests were not run as instructed.