Skip to content

fix(ci): drop caller concurrency that deadlocks claude-review - #168

Merged
kyle-sexton merged 1 commit into
mainfrom
fix-claude-review-concurrency-deadlock
Jul 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix-claude-review-concurrency-deadlock

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Problem

The caller workflow is named claude-review, so its workflow-level concurrency group ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} resolves to claude-review-<pr#> — the exact same group the called reusable workflow (melodic-software/ci-workflows claude-review.yml) hardcodes at job level (claude-review-${{ github.event.pull_request.number || github.sha }}). When the called job tries to enter the concurrency group its own caller already holds, GitHub fails the run instantly as a same-group deadlock.

This is the identical failure class proven in melodic-software/standards#98 (run failed in 0s) and fixed there in melodic-software/standards@f93fb81 by removing the caller-level block.

Fix

Remove the workflow-level concurrency: block (and its comment) from the caller. The reusable workflow's job-level group already owns per-PR review supersession (newest head cancels the in-flight review), so no behavior is lost.

Part of melodic-software/github-iac#82

🤖 Generated with Claude Code

https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw


Note

Low Risk
CI workflow-only change; review cancellation behavior remains in the pinned reusable workflow.

Overview
Removes the workflow-level concurrency block (and its comment) from .github/workflows/claude-review.yml.

That group used ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}, which resolves to claude-review-<pr#> — the same name the called melodic-software/ci-workflows reusable workflow already uses at job level. When both layers tried to enter one group, GitHub failed the run immediately as a same-group deadlock.

Per-PR review supersession (cancel in-flight review on newer pushes) stays owned by the reusable workflow’s job-level concurrency; nothing else in the caller workflow changes.

Reviewed by Cursor Bugbot for commit 8d355b1. Bugbot is set up for automated code reviews on this repo. Configure here.

The workflow is named claude-review, so the caller-level concurrency
group ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
resolves to claude-review-<pr#> — byte-identical to the job-level group
the called reusable workflow (melodic-software/ci-workflows
claude-review.yml) defines. GitHub treats a called job entering the
same concurrency group its caller already holds as a deadlock and
fails the run instantly (proven in melodic-software/standards PR #98,
fixed there in f93fb81 the same way). The reusable's job-level group
already provides per-PR review supersession, so the caller-level block
is removed rather than re-keyed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_4b9302a2-7101-43f3-92b7-a7539401d097)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: low. Cursor Bugbot did not complete successfully (check skipped due to usage limit), so automated review is incomplete and I am not approving. Human review is needed; no reviewers were assigned because the only repo contributor is the PR author.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit e3e8263 into main Jul 13, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the fix-claude-review-concurrency-deadlock branch July 13, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant