Skip to content

Scope CI-integ-test concurrency groups per-branch - #983

Merged
bigdaz merged 1 commit into
mainfrom
queue-per-branch-concurrency
Jun 10, 2026
Merged

bigdaz merged 1 commit into
mainfrom
queue-per-branch-concurrency

Conversation

@bigdaz

@bigdaz bigdaz commented Jun 10, 2026

Copy link
Copy Markdown
Member

Problem

The ci-integ-test.yml workflow uses concurrency groups to limit parallel test runs. The groups used fixed names (CI-integ-test-caching, etc.) with no branch component, so every run across every branch shared a group. With cancel-in-progress: false, GitHub keeps one in-progress + one pending run per group and cancels the previously-pending run when a new one arrives — regardless of branch. The side effect: a push to main could cancel a pending PR run (and vice versa), leaving PRs not fully tested.

Change

  • Append ${{ github.ref }} to each concurrency group. Runs now only supersede pending runs on the same branch; different branches get independent groups and run in parallel.
  • Drop the queue: max key — it's not a valid GitHub Actions concurrency option (only group and cancel-in-progress are honored) and was being ignored.

Behaviour after this change

  • Same branch: a new run supersedes the pending run; the in-progress run finishes.
  • Different branches: fully independent, run in parallel — main no longer disturbs a PR run.

Note: per-ref scoping means the pull_request and push events for a PR branch (different github.ref) won't dedupe against each other; this is intentional per the requested approach.

🤖 Generated with Claude Code

The concurrency groups used fixed names spanning all branches, so a push
to main could cancel a pending PR run (and vice versa), leaving PRs not
fully tested.

Append ${{ github.ref }} to each group so runs only supersede pending
runs on the same branch, while different branches run in parallel. Also
drop the `queue: max` key, which is not a valid GitHub Actions
concurrency option and was ignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bigdaz
bigdaz merged commit e473973 into main Jun 10, 2026
97 of 98 checks passed
@bigdaz
bigdaz deleted the queue-per-branch-concurrency branch June 10, 2026 14:38
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