Skip to content

ci(actions): scoped concurrency + dependabot batching - #98

Merged
kyle-sexton merged 3 commits into
mainfrom
w4-volume-controls
Jul 13, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
w4-volume-controls

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Applies the Epic W4 Actions volume controls to this repo.

What / why

  • PR-scoped concurrency (${{ 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_ref is only set for pull_request events, so main pushes fall back to the unique run_id and are never cancelled — the previous github.ref groups in ci.yml / pr-title.yml could cancel default-branch runs. claude-review.yml gains a block so a new push stops the in-flight review of an outdated diff.
  • Dead merge_group trigger removed from ci.yml (with its stale comment mention): merge queue is Enterprise-only and the org is on Team, so it never fires.
  • Dependabot batching in .github/dependabot.yml: open-pull-requests-limit: 5 on all three update entries, plus an npm-minor-patch group (update-types: minor, patch) for both npm dependency roots so routine bumps land as one PR per root while majors stay individual. The github-actions entry 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 with cancel-in-progress: false.
  • link-check.yml: schedule + dispatch only — no PR/push volume to control.
  • setup-node caching: every npm ci job already has cache: 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.
  • No changes to jobs, lanes, select-runner, runs-on, components/, or distribution/.

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.yml and pr-title.yml now key workflow concurrency on ${{ github.event.pull_request.number || github.run_id }} with cancel-in-progress: true, so rapid pushes on one PR cancel stale runs without grouping unrelated branches; main pushes keep a unique group via run_id. The unused merge_group trigger is removed from ci.yml.

Claude review: Caller workflow stays without its own concurrency block; comments document that superseding in-flight reviews is handled inside the reusable ci-workflows job (adding a matching caller group would deadlock).

Dependabot: All three update entries get open-pull-requests-limit: 5. Root and components/runner-policy npm configs add an npm-minor-patch group 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.

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
@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_4f9af779-bea5-40c1-979b-2fe4ef08a38d)

@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.

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.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread .github/workflows/ci.yml Resolved
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
@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_6a764400-a734-4642-8c60-e1e723260521)

@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.

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.

Open in Web View Automation 

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
@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_6acd3717-0837-47a5-afd9-cb185fe7b415)

@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: 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.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit bcc7ea9 into main Jul 13, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the w4-volume-controls branch July 13, 2026 20:33
kyle-sexton added a commit to melodic-software/claude-code-plugins that referenced this pull request Jul 13, 2026
## 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]>
kyle-sexton added a commit to melodic-software/.github that referenced this pull request Jul 13, 2026
## 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]>
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