Skip to content

* a superseded run stops holding a runner - #12

Merged
Hawkynt merged 1 commit into
mainfrom
ci/supersede-runs
Sep 2, 2026
Merged

* a superseded run stops holding a runner#12
Hawkynt merged 1 commit into
mainfrom
ci/supersede-runs

Conversation

@Hawkynt

@Hawkynt Hawkynt commented Sep 2, 2026

Copy link
Copy Markdown
Owner

ci.yml had no concurrency group, so pushing three times to a branch queued three full matrices and ran all of them. With the runner pool as the bottleneck across these repositories, the obsolete copies are what everything else waits behind.

A newer pull-request run now supersedes the older one. A push to main is deliberately not cancelled — main wants a recorded result for every commit, not only for the newest. This is the pattern the shared dotnet-ci.yml already uses; this repo keeps one inline job alongside the delegated ones, and that job was uncovered.

ci.yml had no concurrency group, so pushing three times to a branch queued
three full matrices and ran all of them. With the runner pool as the
bottleneck, the two obsolete copies are what everything else waits behind.

A newer pull-request run now supersedes the older one. A push to main is
deliberately not cancelled: main wants a recorded result for every commit,
not only for the newest. This is the pattern the shared dotnet-ci.yml
already uses.

@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: 94e0379e5f

ℹ️ 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
Comment on lines +17 to +18
group: ci-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid dropping queued non-PR runs

When three workflow_dispatch runs target the same ref, GitHub Actions allows only one running and one pending member of a concurrency group; the newest run cancels the existing pending run even when cancel-in-progress is false. Consequently, this configuration can still discard an intermediate main-ref run, contrary to the stated requirement that non-PR runs are preserved. Apply this concurrency group only to PR runs or give non-cancellable runs unique group keys.

Useful? React with 👍 / 👎.

@Hawkynt
Hawkynt merged commit 38cd9f0 into main Sep 2, 2026
6 checks passed
@Hawkynt
Hawkynt deleted the ci/supersede-runs branch September 2, 2026 14:35
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