Skip to content

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

Merged
kyle-sexton merged 1 commit into
mainfrom
w4-volume-controls
Jul 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
w4-volume-controls

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

What

  • Scope the concurrency.group in ci.yml and pr-title.yml to ${{ github.workflow }}-${{ github.head_ref || github.run_id }} (was github.ref).
  • Lower Dependabot open-pull-requests-limit from 10 to 5.

Why

github.head_ref is only set for pull requests, so superseded PR runs are cancelled while pushes to main fall back to a unique run_id group and are never cancelled mid-run — the github.ref grouping could cancel in-progress default-branch runs. The lower Dependabot cap bounds concurrent update-PR volume; batching (weekly schedule, a single github-actions group, 7-day cooldown) was already in place.

Not applicable here: no merge_group triggers, no matrix strategies, no setup-node/dotnet/python steps, and link-check.yml runs only on schedule/dispatch so it needs no concurrency control.

Part of melodic-software/github-iac#82

🤖 Generated with Claude Code

https://claude.ai/code/session_01EPDbXgonTuFwFwdTtHaCmw


Note

Low Risk
GitHub Actions and Dependabot config only; no application code, auth, or data paths.

Overview
Workflow concurrency in ci.yml and pr-title.yml now keys the cancel group on ${{ github.workflow }}-${{ github.head_ref || github.run_id }} instead of github.ref. PR runs still cancel superseded work per branch; main pushes use a per-run run_id group so in-progress default-branch jobs are not cancelled by another push on the same ref.

Dependabot lowers open-pull-requests-limit for github-actions updates from 10 to 5, keeping the existing weekly schedule, grouped bumps, and cooldown.

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

Scope workflow concurrency groups to github.head_ref || github.run_id so
superseded PR runs are cancelled while push runs on main (unique run_id)
are never cancelled, and lower the Dependabot open-PR cap from 10 to 5.

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_a08653ea-d18b-4bfc-9a5e-717bc6b3f51c)

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

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit 68f1642 into main Jul 13, 2026
13 checks passed
@kyle-sexton
kyle-sexton deleted the w4-volume-controls branch July 13, 2026 18:03
kyle-sexton added a commit 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