Repository navigation
ci(actions): scoped concurrency + dependabot batching - #98
Conversation
Scope workflow concurrency to the PR head branch so superseded PR runs are cancelled while main pushes (unique run_id fallback) never are; claude-review gains a concurrency block, ci and pr-title drop the github.ref group that could cancel default-branch runs. Remove the dead merge_group trigger (merge queue is Enterprise-only; org is on Team). Batch Dependabot npm minor+patch bumps into one PR per dependency root and cap open PRs at 5 per ecosystem. 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_4f9af779-bea5-40c1-979b-2fe4ef08a38d) |
There was a problem hiding this comment.
Stale comment
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 non-author reviewers were available to assign.
Sent by Cursor Approval Agent: Pull Request Router and Approver
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 55d4fd5740
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
head_ref is just the source branch name, so two PRs from different head repos with the same branch name would share a concurrency group and cancel each other's runs. The PR number is unique per PR; push events keep the never-cancelled run_id fallback. 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_6a764400-a734-4642-8c60-e1e723260521) |
There was a problem hiding this comment.
Stale comment
Risk: medium. 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 non-author reviewers were available to assign.
Sent by Cursor Approval Agent: Pull Request Router and Approver
The reusable claude-review workflow already supersedes in-flight reviews per PR via job-level concurrency group claude-review-<pr-number>. Keying the caller's workflow-level group by PR number produced the identical group name, and GitHub fails the called job instantly as a concurrency deadlock. The job-level group in the called workflow is the single owner of this concern. 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_6acd3717-0837-47a5-afd9-cb185fe7b415) |
## 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`](https://github.com/melodic-software/ci-workflows/blob/99ac2f8c5b09dbb785d4eaf18465cbd96c30290c/.github/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.com/claude-code)
https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
<!-- CURSOR_SUMMARY -->
---
> [!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.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
8d355b1. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Claude Fable 5 <[email protected]>
## 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 named `patch-1`) resolve to the same concurrency group and cancel each other's in-flight runs. ## Fix Re-key the `ci` and `pr-title` groups to `${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}`. The PR number is unique per PR; `run_id` is the fallback for non-PR events (pushes to `main`). Checked for the caller/called same-group deadlock class (melodic-software/standards#98): `pr-title.yml` calls the reusable `semantic-pr.yml`, which defines no job-level concurrency, and `ci.yml` uses 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.com/claude-code) https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw <!-- CURSOR_SUMMARY --> --- > [!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 like `patch-1` collide across forks) to **`github.event.pull_request.number`**, with **`github.run_id`** still used for non-PR runs (e.g. pushes to `main`). > > Applies the same group expression and inline rationale in **`ci`** and **`pr-title`**; behavior is still **cancel-in-progress** per group, but each PR now gets an isolated cancellation scope. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 03fc8c7. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Fable 5 <[email protected]>


Applies the Epic W4 Actions volume controls to this repo.
What / why
${{ github.workflow }}-${{ github.head_ref || github.run_id }},cancel-in-progress: true): superseded runs on the same PR branch are cancelled instead of burning minutes.head_refis only set forpull_requestevents, somainpushes fall back to the uniquerun_idand are never cancelled — the previousgithub.refgroups inci.yml/pr-title.ymlcould cancel default-branch runs.claude-review.ymlgains a block so a new push stops the in-flight review of an outdated diff.merge_grouptrigger removed fromci.yml(with its stale comment mention): merge queue is Enterprise-only and the org is on Team, so it never fires..github/dependabot.yml:open-pull-requests-limit: 5on all three update entries, plus annpm-minor-patchgroup (update-types: minor, patch) for both npm dependency roots so routine bumps land as one PR per root while majors stay individual. Thegithub-actionsentry already grouped everything; weekly schedule and 7-day cooldown were already in place.Not changed (and why)
publish-packages.yml/sync.yml: release/dispatch/schedule-driven; publish already serializes deliberately withcancel-in-progress: false.link-check.yml: schedule + dispatch only — no PR/push volume to control.setup-nodecaching: everynpm cijob already hascache: npm; the remaining uncached setup-node steps (typescript-fixtures,dotnet-fixtures,publish-packages) install pinned globals not present in the lockfile or run no npm install at all, so the lockfile-keyed cache would add restore overhead with no hit.select-runner,runs-on,components/, ordistribution/.Part of melodic-software/github-iac#82
🤖 Generated with Claude Code
https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw
Note
Low Risk
Workflow and Dependabot config only; no application code, secrets, or required-check job IDs change.
Overview
CI volume controls:
ci.ymlandpr-title.ymlnow key workflow concurrency on${{ github.event.pull_request.number || github.run_id }}withcancel-in-progress: true, so rapid pushes on one PR cancel stale runs without grouping unrelated branches;mainpushes keep a unique group viarun_id. The unusedmerge_grouptrigger is removed fromci.yml.Claude review: Caller workflow stays without its own
concurrencyblock; comments document that superseding in-flight reviews is handled inside the reusableci-workflowsjob (adding a matching caller group would deadlock).Dependabot: All three update entries get
open-pull-requests-limit: 5. Root andcomponents/runner-policynpm configs add annpm-minor-patchgroup so minor/patch bumps batch per directory while majors stay separate; github-actions grouping is unchanged.Reviewed by Cursor Bugbot for commit f93fb81. Bugbot is set up for automated code reviews on this repo. Configure here.