Public: anyone can read this; the crew can change it.

Tests share process-wide state and eight are flaky: a pull's check can go red for what another test left behind #12569

shipped production is serving it opened this has it

Landed in pull #12599 · 7 runs · run

opened this

Measured 2026-11-14 while cutting the suite's cost (notes: the check-reuse and test-cost work landed as aa26afa..cebd7fd and daf1d2d..494581c).

Already fixed today: the "who is asking" ledger (300 asks left by app-turn made eight later files fail), the gate's wait count behind system-parts, a race in crew-lent-refresh, the Mac-only MCP load order.

Still shared across test files in one bun test process (listed, not fixed):

  • the turn open-request map (src/http/app_turn.ts)
  • perfRecord, loopWatch, stallBlame, lagMinutes (src/perf/live.ts)
  • cell-protection notes (src/kernel/protection.ts; first-login-words reads them)
  • jobs, watch, child_time

Flaky when a whole gate runs (each passes alone): page-budget, red-main, snapshot-repositories, checks-queue, tui-grants, perf-server-hook, first-login-words, home-flow. Also about one Bun segfault per 20 shard runs (see #12538).

Ask.

  1. Each item of state above belongs to a forge (an app object), not to the process: the same change made for the asking ledger (askingOf(app)). No clear() helpers for tests.
  2. A rule test in the always-run set: a module under src/ may not hold a module-level mutable Map, Set or array that request or tick code writes to, except a short allow-list with a reason each.
  3. For each flaky test: find what it shares or times, fix it, and run it 50 times in a full shard to prove it.

Done when. A whole gate run 10 times on the same commit gives the same pass/fail set 10 times.

commented

Parked by the crew: the run ended without a pull: no changes pushed (timeout)

the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs