Skip to content

Commit 014b6c3

Browse files
committed
ci: exit seed-only legs at the test step's top, keep AGENTS.md at its line ceiling
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jQztfi9hnsaBeBVcCU
1 parent e236ef6 commit 014b6c3

2 files changed

Lines changed: 37 additions & 24 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,17 +1335,23 @@ jobs:
13351335
# On a push whose every commit the queue ran green (`queue-verdict`), this
13361336
# shard keeps its seed and runs no test: the plan and the closure build
13371337
# above (replayed from the remote cache the queue wrote under the same
1338-
# task hashes), then the prune and the save. The three steps that carry
1339-
# `needs.queue-verdict.outputs.covered != 'true'` are skipped: this slice
1340-
# build (its own build is not in the closure seed), the tests, and the
1341-
# attestation pair, so no credential says a test ran. The report steps
1342-
# between them find no test log and no run summary and say so. `Test
1343-
# Core` skips on that push too, so nothing counts the missing credential.
1338+
# task hashes), then the prune and the save. This slice build (its own
1339+
# build is not in the closure seed) and the tests exit at their top on
1340+
# `OS_SEED_ONLY`, as an empty shard does, and the attestation pair is
1341+
# skipped, so no credential says a test ran. The report steps between
1342+
# them find no test log and no run summary and say so. `Test Core` skips
1343+
# on that push too, so nothing counts the missing credential. An exit
1344+
# rather than a step `if:`, so the step stays the one CI and the gate
1345+
# derivation read for this shard's suite.
13441346
- name: Build the sliced package's dependency closure
1345-
if: needs.queue-verdict.outputs.covered != 'true'
13461347
env:
1348+
OS_SEED_ONLY: ${{ needs.queue-verdict.outputs.covered == 'true' }}
13471349
NODE_OPTIONS: --report-on-signal --report-signal=SIGUSR2 --report-directory=${{ runner.temp }}/stall-reports
13481350
run: |
1351+
if [ "$OS_SEED_ONLY" = 'true' ]; then
1352+
echo "Seed-only leg (#31519): the queue ran this push's tests green — no slice build."
1353+
exit 0
1354+
fi
13491355
if [ ! -s "$RUNNER_TEMP/shard-packages.txt" ]; then
13501356
echo "No packages on this shard — nothing to build."
13511357
exit 0
@@ -1410,8 +1416,8 @@ jobs:
14101416
# `<pkg>:test:` prefixes stream order emits (a pinned parseSummaries
14111417
# branch), so attribution survives.
14121418
- name: Run this shard's tests
1413-
if: needs.queue-verdict.outputs.covered != 'true'
14141419
env:
1420+
OS_SEED_ONLY: ${{ needs.queue-verdict.outputs.covered == 'true' }}
14151421
NODE_OPTIONS: --report-on-signal --report-signal=SIGUSR2 --report-directory=${{ runner.temp }}/stall-reports
14161422
# The `e2e` and `live` filename tiers run NIGHTLY on main
14171423
# (test-nightly-tiers.yml), not here: `queue` is the per-PR and
@@ -1422,6 +1428,10 @@ jobs:
14221428
# it reach vitest under strict env mode at all.
14231429
OS_TEST_TIERS: queue
14241430
run: |
1431+
if [ "$OS_SEED_ONLY" = 'true' ]; then
1432+
echo "Seed-only leg (#31519): the queue ran this push's tests green — nothing to test."
1433+
exit 0
1434+
fi
14251435
if [ ! -s "$RUNNER_TEMP/shard-packages.txt" ]; then
14261436
echo "No packages on this shard — nothing to test."
14271437
exit 0
@@ -2735,12 +2745,16 @@ jobs:
27352745
# Dogfood boots real engines in-process — exactly the population #4250's
27362746
# stalls came from. NODE_OPTIONS + --report-dir arm the stall forensics
27372747
# (SIGUSR2 stack harvest) — see the Test Core comment.
2738-
# Skipped on a seed-only leg (#31519); see Test Core's.
2748+
# Exits at its top on a seed-only leg (#31519); see Test Core's.
27392749
- name: Boot example apps and exercise real user flows
2740-
if: needs.queue-verdict.outputs.covered != 'true'
27412750
env:
2751+
OS_SEED_ONLY: ${{ needs.queue-verdict.outputs.covered == 'true' }}
27422752
NODE_OPTIONS: --report-on-signal --report-signal=SIGUSR2 --report-directory=${{ runner.temp }}/stall-reports
27432753
run: |
2754+
if [ "$OS_SEED_ONLY" = 'true' ]; then
2755+
echo "Seed-only leg (#31519): the queue ran this push's dogfood tests green — nothing to test."
2756+
exit 0
2757+
fi
27442758
# Bound vitest's INNER worker pool (#11958). A no-op on a runner with
27452759
# <= 5 cores (it only ever LOWERS vitest's own `cores - 1` default);
27462760
# it exists so a larger runner cannot multiply turbo's outer

‎AGENTS.md‎

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -501,20 +501,19 @@ Even inside your own worktree, operate defensively:
501501
the owning seat, or the maintainer's merge or enqueue. Read the PR's file list (`get_files`), **its author and
502502
its size** before you arm anything.
503503

504-
**Green means the gate-carrying jobs' `conclusion` is `success`** — not "no failure
505-
yet"; `in_progress` is not a pass, and arming a red PR hides it
506-
([why](docs/agents/multi-agent-discipline.md#arming-a-red-pr-hides-it)). Always read *two* things:
507-
the queue branch **and** `origin/main`. And **the queue enforces only the required
508-
set** — eleven contexts block: `Lint & Repo Gates` (all `check:*` gates), `TypeScript Type Check`,
509-
`Test Core`, `Build Core`, `Governed Surface Queue Guard`, `Lint UI`, `Type Check UI`, `Test UI`,
510-
`Build & E2E UI`, `Live E2E UI` and `Dogfood Regression Gate`; a check outside those eleven is advisory
511-
([why that matters](docs/agents/multi-agent-discipline.md#advisory-checks-ride-through)). A required context is
512-
matched by check-run name, so a rename detaches its gate silently — treat those eleven names as contract.
513-
**Two speeds** — PR runs carry the fast set, queue runs add the dogfood shards; `main`'s scheduled runs carry the
514-
full battery, and a push run carries it by running the main-only jobs and borrowing the rest from the green queue
515-
runs of its commits ([detail](docs/agents/multi-agent-discipline.md#two-speeds-which-runs-carry-which-battery)).
516-
**Main-red:** a full-battery red is its lane's first work — triage files it under
517-
the main-red convention, the lane's next PR fixes it, and ⛔ no lane PR arms the queue meanwhile.
504+
**Green means the gate-carrying jobs' `conclusion` is `success`** — not "no failure yet"; `in_progress` is not a
505+
pass, and arming a red PR hides it ([why](docs/agents/multi-agent-discipline.md#arming-a-red-pr-hides-it)). Always
506+
read *two* things: the queue branch **and** `origin/main`. And **the queue enforces only the required set** —
507+
eleven contexts block: `Lint & Repo Gates` (all `check:*` gates), `TypeScript Type Check`, `Test Core`, `Build
508+
Core`, `Governed Surface Queue Guard`, `Lint UI`, `Type Check UI`, `Test UI`, `Build & E2E UI`, `Live E2E UI` and
509+
`Dogfood Regression Gate`; a check outside those eleven is advisory ([why that
510+
matters](docs/agents/multi-agent-discipline.md#advisory-checks-ride-through)). A required context is matched by
511+
check-run name, so a rename detaches its gate silently — treat those eleven names as contract. **Two speeds** — PR
512+
runs carry the fast set, queue runs add the dogfood shards; `main`'s scheduled runs carry the full battery, and a
513+
push run carries it by running the main-only jobs and borrowing the rest from the green queue runs of its commits
514+
([detail](docs/agents/multi-agent-discipline.md#two-speeds-which-runs-carry-which-battery)). **Main-red:** a
515+
full-battery red is its lane's first work — triage files it under the main-red convention, the lane's next PR fixes
516+
it, and ⛔ no lane PR arms the queue meanwhile.
518517

519518
**Re-arm awareness** ([measured](docs/agents/multi-agent-discipline.md#re-arm-awareness)): a red queue build
520519
ejects your entry and drops auto-merge, and collateral eviction is silent — neither on `main` nor in the

0 commit comments

Comments
 (0)