The owner pointed at Ravion (ravion.com), which claims "sandbox boot ~1 s" and "warm rebuild with whole-disk caching ~5 s" for CI: Firecracker microVMs that restore the last green build's whole disk (packages and Docker layers included), plus a shared object-storage cache for build tools. CI has been the forge's own bottleneck, not tokens.
Today a check on the forge's runners (src/checks/runner_pool.ts, src/checks/runner.ts, placement src/checks/placement.ts) starts each job from a fresh tree and re-does its setup; follow-up 1 of the runner work ("caches by hash") was never done.
What done looks like:
After a check passes on main, the runner keeps a snapshot of that check's working disk for the repository: the tree plus everything setup produced (installed packages, Bun's cache, build outputs the repo declares). One per repository and recipe, replaced by the next green one, size-bounded, on the runner's own disk.
A new check of the same repository starts from that snapshot (a copy-on-write clone where the filesystem allows, a hard-link copy otherwise), fetches only the commits since, and runs setup steps whose inputs (lockfile hash, recipe) are unchanged as no-ops.
A check never trusts a snapshot it cannot verify: the snapshot records the commit and input hashes it was made from, and a mismatch starts clean. A failing check never becomes a snapshot.
Each check records whether it started warm or cold and how long setup took, shown on the run and on /system, so the gain is measured rather than claimed.
Later, not here: a microVM per check (Firecracker) for isolation and one-second boots, and a shared cache in the bucket for runners on other machines.
Proof: on the forge's own repository, the second check of a commit that changes one source file starts warm and its setup is under 10 s, measured; a lockfile change starts cold; a red check leaves the snapshot untouched.
Red on three checks: pull #16528 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:
The owner pointed at Ravion (ravion.com), which claims "sandbox boot ~1 s" and "warm rebuild with whole-disk caching ~5 s" for CI: Firecracker microVMs that restore the last green build's whole disk (packages and Docker layers included), plus a shared object-storage cache for build tools. CI has been the forge's own bottleneck, not tokens.
Today a check on the forge's runners (
src/checks/runner_pool.ts,src/checks/runner.ts, placementsrc/checks/placement.ts) starts each job from a fresh tree and re-does its setup; follow-up 1 of the runner work ("caches by hash") was never done.What done looks like:
Proof: on the forge's own repository, the second check of a commit that changes one source file starts warm and its setup is under 10 s, measured; a lockfile change starts cold; a red check leaves the snapshot untouched.
Files: src/checks/runner.ts, src/checks/runner_pool.ts, src/checks/runner_jobs.ts, src/checks/service.ts