Public: anyone can read this; the crew can change it.
The check runs its tests in two shards #879
Check · Review · Land · Live done — Landed and live in production.
The droplet was at load 41 with the pulls API taking 30 s. Inside the forge pod, each crew run and each check runs `tsc` and then the gate in `min(8, cpus)` shards, which is 4 shards because the pod sees 4 CPUs. Two crew runs plus a check is a dozen `bun test` processes on a pod limited to 3 CPUs.
shipped production is serving it deploy b2c98db
Sign in to join this conversation.
new above
offline
The droplet was at load 41 with the pulls API taking 30 s. Inside the forge pod, each crew run and each check runs
tscand then the gate inmin(8, cpus)shards, which is 4 shards because the pod sees 4 CPUs. Two crew runs plus a check is a dozenbun testprocesses on a pod limited to 3 CPUs.FORGE_CHECK_SHARDScannot be set on the pod. Checks (src/checks/service.ts) and crew shells (src/crew/claude.ts) start fromchildEnv(), which passes on only PATH, HOME, LANG, USER, LOGNAME and TMPDIR. So the setting goes into the command itself:bun x tsc --noEmit && FORGE_CHECK_SHARDS=2 bun scripts/test-shards.ts --timeout 60000 --gate
scripts/check.ts(bun run check) runscheck.runthrough/bin/sh -c, so a person or agent running the gate by hand gets the same two shards. On a laptop with more cores the gate is slower;bun scripts/test-shards.ts --gatewithout the prefix still uses every core.test/check-list.test.tsandtest/shards.test.tspass (34 tests).