CI speed

What the budget is, how it is measured, and the numbers. The measuring tool is replicator ci audit (workflow CI — Audit, manual): it reads this repository’s completed runs and splits every job into waiting (queued for a runner), setup (set up, checkout, setup-*, cache, install, containers) and running (the checks), at p50 and p95, plus the slowest steps. The biggest bucket is the one to fix first. packages/engine/test/ci-audit.test.ts pins the split against a real run. The tool is part of the engine, so every repository runs the same copy from its pinned engine checkout and keeps no script of its own.

Three rules that outrank speed

  1. The full suite runs before anything reaches main (it is the deploy gate).
  2. A failure is never hidden: no retry that turns red into green, no skipped test.
  3. Nothing is checked less: a faster tool replaces a slower one only where it catches the same defects, shown on seeded violations.

Baseline (before any change)

One run of an adopting repository (validate, one sequential chain; the fixture of packages/engine/test/ci-audit.test.ts): waiting 1 s, setup 98 s (install 73 s), running 497 s (tests 261 s, lint 83 s, Expo build 66 s, typecheck 59 s), 604 s in all. Hosted runners queue in 1 to 2 s, so waiting is already inside budget; the time is in running and in setup.

The p50 / p95 table over the last 150 runs is produced by CI — Audit and pasted here once Actions can run it.