CI and ci:local
CI is the set of checks GitHub runs on every pull request, and pnpm ci:local runs the same commands on your machine.
$ pnpm ci:local --fast
ci.yml local run (fast)
passed agent-files 0s
passed typecheck 17s
passed typecheck-ts7 6s
passed unit 160s
not run browser [full]
…
--fast runs the four fast jobs, the ones the pre-commit hook runs too. not run marks the heavier jobs, which run on GitHub, where the pull request's green run is the proof.
Each step lands in one of three groups
A job is one named block in .github/workflows/ci.yml, and a step is one command in it. scripts/ci/local.mjs reads every job's steps and puts each one in a group:
- check: a
run:step that tests something. It runs. - setup:
pnpm install,corepack enableand the Playwright installs. They run only with--install. - skip:
uses:actions, lane cache markers, and steps that read GitHub's own context.
A new job with check steps but no entry in the script's mode table makes it stop with an error naming the job.
Every check runs at home, with the same command
The merge queue tests the exact commit it lands on main. Click a check to make it fail, press its ›_ to run that job at home, then press Merge when ready:
- The hook marks the fast jobs, which also run before every commit. The cloud marks jobs that run on GitHub.
maintakes a change only from the merge queue, oncetest,typecheckandagent-filespass.- At home,
testchecks only the analyzer receipts. On GitHub it is the gate, and it fails when any lane fails.
ci:local sorts every job into a mode:
- fast:
agent-files,typecheck,typecheck-ts7andunit. - full: the browser, box, build and perf jobs, and
test. - CI only:
benchmarkandbenchmark-guard.
You pick which jobs run
pnpm ci:local --list # every job and step, and its mode
pnpm ci:local --job browser --job boxes-router # only these jobs
pnpm ci:local --fast --clean # in a throwaway worktree of HEAD
pnpm ci:local --dry-run # print the commands, run nothing--cleanuses the committed tree, so an untracked file can't make a check pass.--fullruns every job this machine can run. Use it to debug, not as proof.
A failing check gets fixed, never weakened
When a check fails, sort the failure first: environment drift, your regression, an older failure, or a flaky test. Then fix the cause.
- Don't skip, delete or loosen a test to make it pass.
- Don't add retries to Vitest, Playwright or the workflow.
- Move a perf guard's anchor only with
pnpm perf:guard:accept <guard> "<subject>" --reason "<one line>".
A flaky test that you can't fix now goes into the quarantine in docs/ci-process.md, with an owner and an expiry date. Specs and rules covers what the code must do in the first place.