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

Two timing flakes measured against load: page budgets scale by a same-run calibration; review budget is event-driven #16879

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Two timing tests red random pull checks on loaded runners, each costing a full re-check.

Notes

opened this

Two timing tests red random pull checks on loaded runners, each costing a full re-check.

  • test/page-budget.test.ts ("each first page answers under its median warm…", in 9 of the last 100 failed pull checks): CPU time per request itself stretches under load (the app page 4.4 → 11.3 ms with 64 busy processes, against budgets as low as 12.5). Each request is now paired with a fixed calibration workload (a JSON round trip) timed just before it, and its CPU and wall time are divided by how much slower that workload ran than quiet. Never scaled up, so a quiet host is judged exactly as before; budgets unchanged. Under 96 busy processes the app page reads 3.2–4.7 ms against 3.5 quiet. Assumption: the quiet reference (1.07 ms) was measured on a Mac; on slower hardware the scaling also absorbs the hardware difference.
  • test/crew-review-budget.test.ts ("a review run past its budget is queued again once"): a 300 ms wall-time budget ran out before the reviewer started (reproduced 3/3 under load). The crew runner takes an injected reviewClock (production keeps the same timer); the stand-in spends the budget when its slow reviewer has actually started. The 10 s timeout is now a 60 s hang guard.

Mixed orders under load and quiet all pass (one load run failed job-alloc's old measure, which #16875 replaces). Gate and typecheck pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs