Repository navigation
fix(ci): key PR concurrency by pull request number - #20
Merged
Merged
Conversation
head_ref is the bare branch name, which is not unique across fork PRs: two forks opening PRs from same-named branches resolve to the same concurrency group and cancel each other's runs. The pull request number is unique per PR, so key the ci and pr-title groups by it, falling back to run_id for non-PR events (pushes to main). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_5c33fc8f-9f67-49e1-accf-9b7af068cbe9) |
There was a problem hiding this comment.
Risk: low. Not approving because Cursor Bugbot completed as skipped (usage limit reached) and did not produce a clean automated review. Human review is still needed before merge; no reviewers assigned because the sole maintainer is the PR author.
Sent by Cursor Approval Agent: Pull Request Router and Approver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Problem
The concurrency groups added in #19 key on
github.head_ref, which is the bare branch name — not unique across fork PRs. Two forks opening PRs from same-named branches (e.g. both namedpatch-1) resolve to the same concurrency group and cancel each other's in-flight runs.Fix
Re-key the
ciandpr-titlegroups to${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}. The PR number is unique per PR;run_idis the fallback for non-PR events (pushes tomain).Checked for the caller/called same-group deadlock class (melodic-software/standards#98):
pr-title.ymlcalls the reusablesemantic-pr.yml, which defines no job-level concurrency, andci.ymluses composite actions only — so a plain re-key is safe in both.Part of melodic-software/github-iac#82
🤖 Generated with Claude Code
https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
Note
Low Risk
Workflow-only concurrency key change with no application or security logic; low risk aside from slightly different cancel behavior per PR.
Overview
Fixes fork PRs cancelling each other's CI by re-keying workflow concurrency groups away from
github.head_ref(bare branch names likepatch-1collide across forks) togithub.event.pull_request.number, withgithub.run_idstill used for non-PR runs (e.g. pushes tomain).Applies the same group expression and inline rationale in
ciandpr-title; behavior is still cancel-in-progress per group, but each PR now gets an isolated cancellation scope.Reviewed by Cursor Bugbot for commit 03fc8c7. Bugbot is set up for automated code reviews on this repo. Configure here.