diff --git a/.github/workflows/auto-tag-on-merge.yml b/.github/workflows/auto-tag-on-merge.yml index db31e58b6b..91bb09c3ac 100644 --- a/.github/workflows/auto-tag-on-merge.yml +++ b/.github/workflows/auto-tag-on-merge.yml @@ -4,6 +4,12 @@ on: pull_request: types: [closed] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + # OMN-18658: this job used to delegate to the shared # `auto-tag-reusable.yml@main`, which pushed the release tag with the job's # default workflow GITHUB_TOKEN. A GITHUB_TOKEN push delivers no push event, so diff --git a/.github/workflows/call-occ-preflight.yml b/.github/workflows/call-occ-preflight.yml index e78a7c5c80..e9ae1e67d7 100644 --- a/.github/workflows/call-occ-preflight.yml +++ b/.github/workflows/call-occ-preflight.yml @@ -22,6 +22,12 @@ on: branches: [main, dev, "hotfix/**"] types: [opened, synchronize, reopened, ready_for_review] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read pull-requests: read diff --git a/.github/workflows/call-receipt-gate.yml b/.github/workflows/call-receipt-gate.yml index f4c82bd5f0..7c2a56575e 100644 --- a/.github/workflows/call-receipt-gate.yml +++ b/.github/workflows/call-receipt-gate.yml @@ -26,6 +26,12 @@ on: merge_group: branches: [main, dev] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read pull-requests: read diff --git a/.github/workflows/call-reject-skip.yml b/.github/workflows/call-reject-skip.yml index e017ebd434..3b55f04aa4 100644 --- a/.github/workflows/call-reject-skip.yml +++ b/.github/workflows/call-reject-skip.yml @@ -19,6 +19,12 @@ on: merge_group: branches: [main, dev] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read pull-requests: read diff --git a/.github/workflows/canonical-inference-gate.yml b/.github/workflows/canonical-inference-gate.yml index 2c5d324475..0f0d2e4878 100644 --- a/.github/workflows/canonical-inference-gate.yml +++ b/.github/workflows/canonical-inference-gate.yml @@ -35,6 +35,12 @@ on: branches: [main, dev] merge_group: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read diff --git a/.github/workflows/check-db-ownership.yml b/.github/workflows/check-db-ownership.yml index 5a0ee8f070..a756d85c02 100644 --- a/.github/workflows/check-db-ownership.yml +++ b/.github/workflows/check-db-ownership.yml @@ -21,6 +21,12 @@ on: types: [opened, edited, synchronize, reopened] workflow_dispatch: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + env: UV_VERSION: "0.8.3" PYTHON_VERSION: "3.12" @@ -116,14 +122,16 @@ jobs: - name: DB ownership summary if: always() && steps.changed.outputs.run_full == 'true' run: | - echo "## DB Ownership CI Twin (OMN-2150)" >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - echo "Mirrors runtime assertion B1:" >> "$GITHUB_STEP_SUMMARY" - echo "- Provisions temp SQLite database" >> "$GITHUB_STEP_SUMMARY" - echo "- Runs db_metadata migration" >> "$GITHUB_STEP_SUMMARY" - echo "- Verifies owner_service matches expected value" >> "$GITHUB_STEP_SUMMARY" - echo "- Validates Pydantic model roundtrip" >> "$GITHUB_STEP_SUMMARY" - echo "- Detects wrong ownership and missing table" >> "$GITHUB_STEP_SUMMARY" + { + echo "## DB Ownership CI Twin (OMN-2150)" + echo "" + echo "Mirrors runtime assertion B1:" + echo "- Provisions temp SQLite database" + echo "- Runs db_metadata migration" + echo "- Verifies owner_service matches expected value" + echo "- Validates Pydantic model roundtrip" + echo "- Detects wrong ownership and missing table" + } >> "$GITHUB_STEP_SUMMARY" - name: Short-circuit summary (no relevant changes) if: steps.changed.outputs.run_full != 'true' diff --git a/.github/workflows/check-handshake.yml b/.github/workflows/check-handshake.yml index bb87110608..273b785c77 100644 --- a/.github/workflows/check-handshake.yml +++ b/.github/workflows/check-handshake.yml @@ -10,6 +10,12 @@ on: branches: [main, develop, dev] workflow_dispatch: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/cr-thread-gate-caller.yml b/.github/workflows/cr-thread-gate-caller.yml index d563df8ff8..947d346a97 100644 --- a/.github/workflows/cr-thread-gate-caller.yml +++ b/.github/workflows/cr-thread-gate-caller.yml @@ -14,6 +14,12 @@ on: types: [checks_requested] branches: [main, dev] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/dep-provenance-gate.yml b/.github/workflows/dep-provenance-gate.yml index f2488a350b..0d3f00b02d 100644 --- a/.github/workflows/dep-provenance-gate.yml +++ b/.github/workflows/dep-provenance-gate.yml @@ -36,6 +36,12 @@ on: branches: [main, dev] merge_group: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read diff --git a/.github/workflows/main-target-guard.yml b/.github/workflows/main-target-guard.yml index 1e38f01f91..a201050e3d 100644 --- a/.github/workflows/main-target-guard.yml +++ b/.github/workflows/main-target-guard.yml @@ -11,6 +11,12 @@ on: pull_request: types: [opened, edited, synchronize] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/no-faked-boundary.yml b/.github/workflows/no-faked-boundary.yml index 3126c0952e..49102ab970 100644 --- a/.github/workflows/no-faked-boundary.yml +++ b/.github/workflows/no-faked-boundary.yml @@ -33,6 +33,12 @@ on: branches: [main, dev] merge_group: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read diff --git a/.github/workflows/omni-standards-compliance.yml b/.github/workflows/omni-standards-compliance.yml index 952e211f3c..24189121cc 100644 --- a/.github/workflows/omni-standards-compliance.yml +++ b/.github/workflows/omni-standards-compliance.yml @@ -22,6 +22,12 @@ on: pull_request: branches: [main, develop, dev] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + env: PYTHON_VERSION: "3.12" UV_VERSION: "0.8.3" diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index 9a662e6d4c..ef6022fdaf 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -8,6 +8,12 @@ on: pull_request: types: [opened, edited, synchronize, reopened] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/precommit-parity-gate.yml b/.github/workflows/precommit-parity-gate.yml index 54ba527052..76f87b953a 100644 --- a/.github/workflows/precommit-parity-gate.yml +++ b/.github/workflows/precommit-parity-gate.yml @@ -48,6 +48,12 @@ on: merge_group: workflow_dispatch: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read diff --git a/.github/workflows/required-check-skip-guard-caller.yml b/.github/workflows/required-check-skip-guard-caller.yml index dd88b0c1af..69fe75335d 100644 --- a/.github/workflows/required-check-skip-guard-caller.yml +++ b/.github/workflows/required-check-skip-guard-caller.yml @@ -33,6 +33,12 @@ on: merge_group: types: [checks_requested] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index b8cd2c09bc..92daec4363 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -16,6 +16,12 @@ on: # Run weekly on Monday at 06:00 UTC - cron: "0 6 * * 1" +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/semantic-diff-labeler.yml b/.github/workflows/semantic-diff-labeler.yml index 2b26279210..8359a9ad34 100644 --- a/.github/workflows/semantic-diff-labeler.yml +++ b/.github/workflows/semantic-diff-labeler.yml @@ -4,6 +4,12 @@ on: pull_request: types: [opened, synchronize, reopened] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/stale-todo-gate.yml b/.github/workflows/stale-todo-gate.yml index 7dc502cd22..3622342476 100644 --- a/.github/workflows/stale-todo-gate.yml +++ b/.github/workflows/stale-todo-gate.yml @@ -22,6 +22,12 @@ on: pull_request: branches: [main, dev] +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: occ-preflight: uses: ./.github/workflows/occ-preflight.yml diff --git a/.github/workflows/todo-audit-on-merge.yml b/.github/workflows/todo-audit-on-merge.yml index 7a020248f9..f445f8c374 100644 --- a/.github/workflows/todo-audit-on-merge.yml +++ b/.github/workflows/todo-audit-on-merge.yml @@ -31,6 +31,12 @@ on: - main - dev +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + jobs: todo-audit: name: TODO Audit diff --git a/.github/workflows/url-authority-gate.yml b/.github/workflows/url-authority-gate.yml index 732a1c6e96..931ddf8232 100644 --- a/.github/workflows/url-authority-gate.yml +++ b/.github/workflows/url-authority-gate.yml @@ -32,6 +32,12 @@ on: branches: [main, dev] merge_group: +# OMN-19639: cancel only superseded pull request runs. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + + permissions: contents: read