From fce369f6171784b2837f118a1e7c308e62624a93 Mon Sep 17 00:00:00 2001 From: Saurabh Jain Date: Sun, 10 May 2026 21:20:33 +0200 Subject: [PATCH] chore(ci): cancel orphaned PR runs across 5 plugin workflows Mirrors axonflow-claude-plugin#81 + axonflow-codex-plugin#68. Same canonical concurrency block already used by host-cli-shim.yml in this repo, propagated to test, install-smoke, heartbeat-real-stack, wire-shape-contract, definition-of-done. Plus drop `edited` PR event type from definition-of-done. Signed-off-by: Saurabh Jain --- .github/workflows/definition-of-done.yml | 7 ++++++- .github/workflows/heartbeat-real-stack.yml | 4 ++++ .github/workflows/install-smoke.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ .github/workflows/wire-shape-contract.yml | 4 ++++ 5 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/definition-of-done.yml b/.github/workflows/definition-of-done.yml index 4e9c231..3b8245b 100644 --- a/.github/workflows/definition-of-done.yml +++ b/.github/workflows/definition-of-done.yml @@ -6,12 +6,17 @@ name: Definition of Done on: pull_request: - types: [opened, synchronize, reopened, edited] + # Drop `edited` — re-runs the gate on title/body edits without any code change. + types: [opened, synchronize, reopened] permissions: contents: read pull-requests: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: lint-no-mocks-in-runtime-e2e: name: Lint — no mocks in runtime-e2e/ diff --git a/.github/workflows/heartbeat-real-stack.yml b/.github/workflows/heartbeat-real-stack.yml index c1a3fa2..f4e1694 100644 --- a/.github/workflows/heartbeat-real-stack.yml +++ b/.github/workflows/heartbeat-real-stack.yml @@ -27,6 +27,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: real-stack: name: Real-stack E2E (${{ matrix.os }}) diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml index 772c723..cfbf1c3 100644 --- a/.github/workflows/install-smoke.yml +++ b/.github/workflows/install-smoke.yml @@ -25,6 +25,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: smoke: name: Install-to-use smoke diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c109cb..88eb5d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/wire-shape-contract.yml b/.github/workflows/wire-shape-contract.yml index 372159f..dcbb12d 100644 --- a/.github/workflows/wire-shape-contract.yml +++ b/.github/workflows/wire-shape-contract.yml @@ -30,6 +30,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: wire-shape: name: Validate Wire Shape