Skip to content

ci: one live run per PR ref on the four core workflows that had no concurrency group - #3734

Merged
meshweaver-cloud[bot] merged 1 commit into
mainfrom
ci/concurrency-on-every-pr-workflow
Sep 8, 2026
Merged

meshweaver-cloud[bot] merged 1 commit into
mainfrom
ci/concurrency-on-every-pr-workflow

Conversation

@rbuergi

@rbuergi rbuergi commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Measured 2026-09-08 while checking why superseded runs were not self-cancelling fleet-wide: chart-gate.yml, clients.yml, hosting-operator.yml and homebrew.yml are the four PR-triggered core workflows with no concurrency: block, so a push to a PR branch left the previous run burning a runner to completion. Every other PR workflow in the fleet already cancels superseded runs per ref.

Same group shape as dotnet-test.yml: a main push (and a merge-queue ref) is keyed on its own commit and is never cancelled; every other ref cancels in progress.

Pairs-with: none — CI wiring only, no public surface.

…and homebrew

Four PR-triggered workflows carried no concurrency block, so a push to a PR branch never
cancelled the run it superseded — measured 2026-09-08 while auditing why superseded runs were
not self-killing. Same group shape as dotnet-test.yml: main and the merge queue keyed per commit
(never cancelled), every other ref cancels in progress.
Copilot AI lite review requested due to automatic review settings September 8, 2026 13:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new concurrency snippet’s comment and cancellation logic are not aligned with merge-queue and workflow_dispatch semantics (and is misleading in workflows that don’t run on merge_group).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds concurrency groups to the remaining PR-triggered core workflows that weren’t self-cancelling superseded runs, reducing wasted runner time by ensuring only the latest run per PR ref continues while keeping main runs non-cancellable.

Changes:

  • Add a concurrency: block to hosting-operator.yml, homebrew.yml, clients.yml, and chart-gate.yml.
  • Key main pushes by commit SHA to avoid cross-commit cancellation on main.
File summaries
File Description
.github/workflows/hosting-operator.yml Adds concurrency grouping/cancellation for PR refs and main pushes.
.github/workflows/homebrew.yml Adds concurrency grouping/cancellation for PR refs and main pushes.
.github/workflows/clients.yml Adds concurrency grouping/cancellation for PR refs and main pushes.
.github/workflows/chart-gate.yml Adds concurrency grouping/cancellation for PR refs and main pushes.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +30 to +34
# One live run per ref: a newer push to the same PR branch cancels the run it supersedes; main and
# the merge queue never cancel (each main push is its own group, keyed on the commit).
concurrency:
group: hosting-operator-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Comment on lines +52 to +56
# One live run per ref: a newer push to the same PR branch cancels the run it supersedes; main and
# the merge queue never cancel (each main push is its own group, keyed on the commit).
concurrency:
group: chart-gate-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Comment on lines +75 to +79
# One live run per ref: a newer push to the same PR branch cancels the run it supersedes; main and
# the merge queue never cancel (each main push is its own group, keyed on the commit).
concurrency:
group: clients-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
Comment on lines +51 to +55
# One live run per ref: a newer push to the same PR branch cancels the run it supersedes; main and
# the merge queue never cancel (each main push is its own group, keyed on the commit).
concurrency:
group: homebrew-${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.sha || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 1)

494 tests   494 ✅  35s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 3)

1 079 tests   1 079 ✅  1m 36s ⏱️
    2 suites      0 💤
    2 files        0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 0)

254 tests   254 ✅  2m 18s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 4)

1 669 tests   1 475 ✅  2m 7s ⏱️
    4 suites    194 💤
    4 files        0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 5)

    5 files      5 suites   2m 57s ⏱️
1 738 tests 1 738 ✅ 0 💤 0 ❌
1 739 runs  1 739 ✅ 0 💤 0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 2)

1 208 tests   1 208 ✅  4m 20s ⏱️
    3 suites      0 💤
    3 files        0 ❌

Results for commit 6120a5e.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Test Results

   16 files     16 suites   13m 55s ⏱️
6 442 tests 6 248 ✅ 194 💤 0 ❌
6 443 runs  6 249 ✅ 194 💤 0 ❌

Results for commit 6120a5e.

@rbuergi
rbuergi marked this pull request as ready for review September 8, 2026 17:47
@meshweaver-cloud
meshweaver-cloud Bot added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit 3853374 Sep 8, 2026
38 checks passed
@rbuergi
rbuergi deleted the ci/concurrency-on-every-pr-workflow branch September 13, 2026 10: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.

2 participants