From 656400d08adcf65ec14674a5666fe9825bc292e4 Mon Sep 17 00:00:00 2001 From: ework-agent Date: Sun, 15 Nov 2026 09:02:49 +0800 Subject: [PATCH] fix(ci): hold all PR CI on [ework:ci-held] intermediate pushes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every pull_request-triggered job in all 20 PR workflows now carries `if: !contains(github.event.head_commit.message, '[ework:ci-held]')`, merged with pre-existing job conditions where present. Why: the ci-engineer lane rebase/fix sessions push incrementally, and each push spawned ~13 full workflow runs. Queued runs on the same ref are NOT cancelled by the per-ref concurrency groups (cancel-in-progress only covers in_progress), so a 20-push session queued ~260 runs that starved real work (release CI waited behind 73 queued, #5795 incident lineage). Owner policy 2026-11-15: intermediate pushes must not trigger CI; the verified final head push (marker-free) is the single CI pass. Semantics: marker in the commit MESSAGE (subject or body) — GitHub only exposes head_commit.message at trigger time. Non-PR events are unaffected (schedule/workflow_dispatch/empty head_commit => guard true). A held run completes with all jobs skipped; branch-protection required checks stay unsatisfied until the final unmarked run goes green, which is the intended signal that "CI has not been asked yet". No config surface added (owner policy: marker convention, not a knob). (ework-agent, policy: 推一堆后确定没问题再触发 — m17242) --- .github/workflows/announcements-lint.yml | 1 + .github/workflows/ci-e2e-codex-persona.yml | 3 +- .github/workflows/ci-e2e-dsh-native.yml | 3 +- .github/workflows/ci-e2e-dsh.yml | 3 +- .github/workflows/ci-e2e-fake.yml | 3 +- .github/workflows/ci-e2e-native-opencode.yml | 5 +-- .github/workflows/ci-e2e-native.yml | 3 +- .github/workflows/ci-e2e-pi-ws.yml | 3 +- .github/workflows/ci-e2e.yml | 3 +- .github/workflows/ci-image.yml | 3 +- .github/workflows/ci-janitor.yml | 1 + .github/workflows/ci-registry.yml | 3 +- .github/workflows/ci-theorem.yml | 3 +- .github/workflows/ci-windows-codex.yml | 7 ++-- .github/workflows/ci-zcode-real.yml | 3 +- .github/workflows/ci.yml | 35 +++++++++++++++----- .github/workflows/pr-artifact.yml | 1 + .github/workflows/release-bugfix.yml | 1 + .github/workflows/release-manual.yml | 1 + 19 files changed, 61 insertions(+), 24 deletions(-) diff --git a/.github/workflows/announcements-lint.yml b/.github/workflows/announcements-lint.yml index 3fcf7c720e..070374e7bf 100644 --- a/.github/workflows/announcements-lint.yml +++ b/.github/workflows/announcements-lint.yml @@ -16,6 +16,7 @@ on: jobs: lint: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 10 steps: diff --git a/.github/workflows/ci-e2e-codex-persona.yml b/.github/workflows/ci-e2e-codex-persona.yml index deddf2d053..cb089eaa4b 100644 --- a/.github/workflows/ci-e2e-codex-persona.yml +++ b/.github/workflows/ci-e2e-codex-persona.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-codex-persona: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real codex persona/continuity in BOTH modes (URL + launcher) vs fake upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e-dsh-native.yml b/.github/workflows/ci-e2e-dsh-native.yml index 5c5fd587e5..c9970b6924 100644 --- a/.github/workflows/ci-e2e-dsh-native.yml +++ b/.github/workflows/ci-e2e-dsh-native.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-native-dsh: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real dsh headless profile lane vs deterministic fake upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e-dsh.yml b/.github/workflows/ci-e2e-dsh.yml index 32971d10c1..fa5a50170e 100644 --- a/.github/workflows/ci-e2e-dsh.yml +++ b/.github/workflows/ci-e2e-dsh.yml @@ -40,6 +40,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -69,7 +70,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-dsh-plugin-lane: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: dsh plugin lane (fork adoption + side-request isolation + lane truth tables) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e-fake.yml b/.github/workflows/ci-e2e-fake.yml index 7130dff3bf..c5a4d434e9 100644 --- a/.github/workflows/ci-e2e-fake.yml +++ b/.github/workflows/ci-e2e-fake.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-fake: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real codex vs deterministic fake upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e-native-opencode.yml b/.github/workflows/ci-e2e-native-opencode.yml index 2356ff6c1e..96a00a3df6 100644 --- a/.github/workflows/ci-e2e-native-opencode.yml +++ b/.github/workflows/ci-e2e-native-opencode.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-native-opencode: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real opencode native lane vs deterministic fake upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 @@ -114,7 +115,7 @@ jobs: e2e-opencode-responses-ws: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: OpenCode V2 Responses WebSocket ACP (zero tokens) runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/ci-e2e-native.yml b/.github/workflows/ci-e2e-native.yml index 6ace140dfe..97f8b737c9 100644 --- a/.github/workflows/ci-e2e-native.yml +++ b/.github/workflows/ci-e2e-native.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-native-pi: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real pi package-native lane vs deterministic fake upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e-pi-ws.yml b/.github/workflows/ci-e2e-pi-ws.yml index 6d6dc7ebbb..86f0ddb21b 100644 --- a/.github/workflows/ci-e2e-pi-ws.yml +++ b/.github/workflows/ci-e2e-pi-ws.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-pi-codex-ws: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real pi codex-responses WebSocket lane vs deterministic mock upstream (zero tokens) runs-on: ubuntu-latest timeout-minutes: 15 diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 42f37a26ee..64cd7c22a7 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -53,6 +53,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -82,7 +83,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} runs-on: ubuntu-latest timeout-minutes: 45 # Transient runner↔registry blips (ECONNRESET) must not red a PR (#2611): diff --git a/.github/workflows/ci-image.yml b/.github/workflows/ci-image.yml index f7aa26cfa3..1c15c35654 100644 --- a/.github/workflows/ci-image.yml +++ b/.github/workflows/ci-image.yml @@ -38,6 +38,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -67,7 +68,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" image-billing: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: real-image billing e2e (hermetic corpus, zero tokens) runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/.github/workflows/ci-janitor.yml b/.github/workflows/ci-janitor.yml index a79c22490c..929f20d99b 100644 --- a/.github/workflows/ci-janitor.yml +++ b/.github/workflows/ci-janitor.yml @@ -60,6 +60,7 @@ concurrency: jobs: sweep: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 10 steps: diff --git a/.github/workflows/ci-registry.yml b/.github/workflows/ci-registry.yml index 1748705974..c7c6e07e1f 100644 --- a/.github/workflows/ci-registry.yml +++ b/.github/workflows/ci-registry.yml @@ -28,6 +28,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -57,7 +58,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" e2e-registry: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: hermetic registry e2e (local verdaccio; loopback only, zero secrets) runs-on: ${{ matrix.os }} timeout-minutes: 25 diff --git a/.github/workflows/ci-theorem.yml b/.github/workflows/ci-theorem.yml index 58b58d2ebd..672f25283f 100644 --- a/.github/workflows/ci-theorem.yml +++ b/.github/workflows/ci-theorem.yml @@ -50,6 +50,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 10 permissions: @@ -80,7 +81,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" theorem: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} runs-on: ubuntu-latest timeout-minutes: 45 steps: diff --git a/.github/workflows/ci-windows-codex.yml b/.github/workflows/ci-windows-codex.yml index 6ff3891c2a..0a4f1019a2 100644 --- a/.github/workflows/ci-windows-codex.yml +++ b/.github/workflows/ci-windows-codex.yml @@ -35,6 +35,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -64,7 +65,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" windows-codex-overlay: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: codex accepts CODEX_HOME overlay + registers bili MCP runs-on: windows-latest # Transient runner↔registry blips (ECONNRESET) must not red a PR (#2611): @@ -131,7 +132,7 @@ jobs: # Zero tokens: every model call goes to the local fake upstream. windows-codex-sequential-home: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: sequential bili codex launches keep all threads in the real home (#2195) runs-on: windows-latest # 30 (not 20): the #2222 shared-state lane and the #3203 concurrent lane @@ -194,7 +195,7 @@ jobs: # above: continue-on-error until one clean run proves the lane, then promote. windows-codex-profile-routing: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} name: codex -p profile / CLI provider routes through bili (#2197) runs-on: windows-latest timeout-minutes: 20 diff --git a/.github/workflows/ci-zcode-real.yml b/.github/workflows/ci-zcode-real.yml index f8a5cbf0d9..b62edae436 100644 --- a/.github/workflows/ci-zcode-real.yml +++ b/.github/workflows/ci-zcode-real.yml @@ -58,6 +58,7 @@ jobs: # three-layer CI: this lane only runs on demand (ci:full label / dispatch) # or on the 30-min cron when master moved since the last green scheduled run. gate: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest permissions: contents: read @@ -87,7 +88,7 @@ jobs: echo "run=$run" >> "$GITHUB_OUTPUT" zcode-real: needs: [gate] - if: needs.gate.outputs.run == 'true' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (needs.gate.outputs.run == 'true') }} runs-on: ubuntu-latest timeout-minutes: 15 steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdecc423b7..505bc4dbb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,15 @@ name: CI +# #CI-hold (2026-11-15, ci-flood #5795-era incident): a long CI-fix or +# conflict-rebase session may push MANY intermediate commits. Any commit +# whose message carries the marker line [ework:ci-held] (conventionally in +# the commit BODY) suppresses every PR-triggered job in every workflow of +# this repo — the run completes with all jobs skipped, consuming no runner. +# The session's FINAL head push must NOT carry the marker: that single +# push triggers the one full CI pass the PR needs for merge. If a branch +# ever parks on a marked head, the next wake finishes the work and re-pushes +# the unmarked final commit. + on: push: # Release branches also run CI on push: ref updates made with a real @@ -108,6 +118,7 @@ jobs: # explicit job `name:` keeps check-run names identical to the legacy 12-leg # names (branch protection keys off `test (os, node, shard)`). plan: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 15 permissions: @@ -261,7 +272,7 @@ jobs: # a real post-merge test signal (the missing master-push hole, #3197 era) test: needs: [plan, version-guard, kernel-guard, pi-subagents-guard, lane-guard, docs-sync, docs-coverage, unused-exports, lock-sync, test-import-graph] - if: ${{ !failure() && !cancelled() && needs.plan.outputs.scope != 'skip' }} + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (!failure() && !cancelled() && needs.plan.outputs.scope != 'skip' ) }} name: test (${{ matrix.os }}, ${{ matrix.node-version }}, ${{ matrix.shard }}) # #3143: the suite outgrew one runner — ~656 top-level files (~190k LOC) now # serialize through c=4 on a single 4-core leg for ~17-20 min (windows slowest; @@ -332,7 +343,7 @@ jobs: # mysql backend still satisfies the operation contract. mysql-contract: needs: [plan] - if: ${{ !failure() && !cancelled() && needs.plan.outputs.scope != 'skip' }} + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (!failure() && !cancelled() && needs.plan.outputs.scope != 'skip' ) }} runs-on: ubuntu-latest timeout-minutes: 30 services: @@ -376,7 +387,7 @@ jobs: # parallel legs on the same matrix — same commands, off the critical path. static-gates: needs: [plan, version-guard, kernel-guard, pi-subagents-guard, lane-guard, docs-sync, docs-coverage, unused-exports, lock-sync, test-import-graph] - if: ${{ !failure() && !cancelled() && needs.plan.outputs.scope != 'skip' }} + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (!failure() && !cancelled() && needs.plan.outputs.scope != 'skip' ) }} name: static-gates (${{ matrix.os }}, ${{ matrix.node-version }}) strategy: fail-fast: false @@ -407,7 +418,7 @@ jobs: version-guard: runs-on: ubuntu-latest timeout-minutes: 20 - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') }} steps: - uses: actions/checkout@v4 with: @@ -439,7 +450,7 @@ jobs: kernel-guard: runs-on: ubuntu-latest timeout-minutes: 20 - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') }} steps: - uses: actions/checkout@v4 with: @@ -509,7 +520,7 @@ jobs: pi-subagents-guard: runs-on: ubuntu-latest timeout-minutes: 20 - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') }} steps: - uses: actions/checkout@v4 with: @@ -541,6 +552,7 @@ jobs: # the committed artifacts differ — a schema edit without re-running the # generator goes red here. Zero-dep script: no npm install needed. docs-sync: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -556,6 +568,7 @@ jobs: # FileConfig top-level key must have a seed entry — an undocumented param # added to src goes red here with the missing names listed. docs-coverage: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -574,6 +587,7 @@ jobs: # by an unescaped '&'). Visual freshness is enforced by the same-PR rule in # AGENTS.md + review, not here. Zero-dep: plain node, no install step. architecture-docs: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -589,6 +603,7 @@ jobs: # here with the missing names listed. Zero-dep: plain node, no install step. # Not gated to pull_request so master pushes are held to the same surface. config-surface-guard: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -604,6 +619,7 @@ jobs: # Stale entries (dynamic/unmerged/retired names) notice only. Zero-dep: plain # node, no install step. Not gated to pull_request, same as the guards above. lifecycle-ledger-guard: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -622,7 +638,7 @@ jobs: lane-guard: runs-on: ubuntu-latest timeout-minutes: 20 - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') }} steps: - uses: actions/checkout@v4 with: @@ -663,6 +679,7 @@ jobs: # (DEAD = definition line only; INTERNAL_ONLY = own file only). Zero-dep: # plain node, no install step. unused-exports: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -680,6 +697,7 @@ jobs: # "// retired-module pin: " label in the importing test file. # Zero-dep: plain node, no install step. test-import-graph: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -699,6 +717,7 @@ jobs: # and release-branch bumps are held to it too — mechanical enforcement of # AGENTS.md §4 rule 2 ("release commit changes ONLY version + lock if drifts"). lock-sync: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -725,7 +744,7 @@ jobs: # bot does not auto-dispatch titles containing it. red-signal: needs: [test, static-gates] - if: ${{ !cancelled() && github.event_name == 'schedule' }} + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') && (!cancelled() && github.event_name == 'schedule' ) }} runs-on: ubuntu-latest timeout-minutes: 10 permissions: diff --git a/.github/workflows/pr-artifact.yml b/.github/workflows/pr-artifact.yml index 10a5f21d24..723c13fe10 100644 --- a/.github/workflows/pr-artifact.yml +++ b/.github/workflows/pr-artifact.yml @@ -18,6 +18,7 @@ permissions: jobs: build-artifact: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold runs-on: ubuntu-latest timeout-minutes: 20 steps: diff --git a/.github/workflows/release-bugfix.yml b/.github/workflows/release-bugfix.yml index 94995eed76..8d0c323e40 100644 --- a/.github/workflows/release-bugfix.yml +++ b/.github/workflows/release-bugfix.yml @@ -66,6 +66,7 @@ concurrency: jobs: release: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 90 env: diff --git a/.github/workflows/release-manual.yml b/.github/workflows/release-manual.yml index 65d63b84c2..3c0a4ce420 100644 --- a/.github/workflows/release-manual.yml +++ b/.github/workflows/release-manual.yml @@ -24,6 +24,7 @@ concurrency: jobs: release: + if: ${{ !contains(github.event.head_commit.message, '[ework:ci-held]') }} # #CI-hold: [ework:ci-held] in commit message -> hold CI until final unmarked push runs-on: ubuntu-latest timeout-minutes: 90 permissions: