From eec9517c87b2671842bcb91bf66aeaf1a7464331 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 5 Dec 2026 04:07:30 -0800 Subject: [PATCH] block-ci: give each master push its own Block Test concurrency group A group admits one running and one pending run; a newer push cancels the pending one even with cancel-in-progress off, so a burst of merges left some without a post-merge result. Key pushes on the commit. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/block-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/block-test.yml b/.github/workflows/block-test.yml index e8424275e4..39c1d55651 100644 --- a/.github/workflows/block-test.yml +++ b/.github/workflows/block-test.yml @@ -25,10 +25,11 @@ defaults: permissions: contents: read -# One run per PR (or per branch for pushes). A new push to a PR cancels the -# superseded run; runs on main are never cancelled so every merge gets a result. +# One run per PR (or per commit for pushes). A new push to a PR cancels the +# superseded run; a queued master run would be replaced by a newer one in a +# shared group, so each merge gets its own group and its own result. concurrency: - group: block-test-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: block-test-${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: