The cloud check: heavy tests off my laptop
The worker runs the focused tests and lint on its own machine. The heavy part runs in Claude Code cloud sessions and comes back as one commit status on the exact head. These numbers are from PostMine. This site runs a local check.


What runs where
This is one mini-guide from my dev workflow System. The check is split in two. The worker runs the focused unit tests and the lint of the files it changed, on its own machine. Everything heavy runs once, in the check command that the repo names in its AGENTS.md: the full typecheck and lint, the whole unit suite, the browser tests and the build.
In PostMine, that command starts cloud sessions in Claude Code and waits for them. There are at least three: two halves of the unit tests and a browser session. They run at the same time. The browser tests are chosen from the change, the critical ones always run, and they split into more sessions when there are many. Each session runs a small Claude model at low effort. That model runs one command and reports its last output line; it does not think about the code.
This site has a different check. It is a local command: it checks the syntax of two scripts, rebuilds the site, and fails if the committed pages differ from the rebuild. Nothing runs in the cloud here.
How the check runs, step by step
Each step has one owner. The worker owns the check it starts. The coordinator owns the gate at the end.
1. Worker: runs the focused unit tests and the lint of its changed files, locally. Nothing heavy runs here.
2. Worker: pushes the head. The check does not run on a head that is not on the remote.
3. Worker: runs the repo's check command on that head. The command posts a pending status, starts the cloud sessions and waits. It fixes nothing itself.
4. Worker, through the check: each cloud session checks out the same commit and runs its part. A part that fails records its failed steps and tests.
5. Worker, through the check: posts one status on the head, once every session has reported or the wait runs out.
6. Coordinator: reads the status on the exact head before the gate. A status on an older head does not count.
7. Worker: if the status is red, reads the kept result, fixes the whole class of the failure inside the contract, pushes to the same branch and runs the check again.
Push, check in the cloud, get one status
Only the files it changed. Nothing heavy here.
Posts a pending status on the head, then starts the cloud sessions. Each session first sets up, about 1.5 minutes.
About 6 minutes, after setup. It sets the wait.
About 5 minutes, after setup.
Build about 2 minutes, then browser tests about 2 minutes.
Green, red or error. Red keeps its result for the owner.
Same branch, inside the contract. Then the check runs again.
Green on the exact head is one condition for the merge.
Only the files it changed. Nothing heavy here.
Posts a pending status on the head, then starts the cloud sessions. Each session first sets up, about 1.5 minutes.
About 6 minutes, after setup. It sets the wait.
About 5 minutes, after setup.
Build about 2 minutes, then browser tests about 2 minutes.
Green, red or error. Red keeps its result for the owner.
Green on the exact head is one condition for the merge.
Same branch, inside the contract. Then the check runs again.
Why the heavy part runs in the cloud
Three reasons, all from our rules:
- Tasks run side by side, up to four at once. On one laptop their heavy runs would collide. PostMine's rule is that two test or build processes never run in parallel on one machine.
- A worker does not start a local database or a browser run unless the coordinator asks. It does not use a port the repo reserves.
- GitHub Actions are off in PostMine. Its free runner minutes ran out, and no paid settings are used. So the check cannot run there.
While the cloud sessions run, the laptop only waits, so it stays free for the next task. The cost of the cloud sessions is not recorded in our files. Codex also has cloud tasks: Codex cloud environments. We do not use it.
What comes back
The check ends with one GitHub commit status on the exact commit it tested. It has one of three results:
- Green: every session passed. The status can say that some tests are quarantined. A quarantined test is listed by its exact name, with a linked issue and an expiry at most 14 days away. Only a test that also fails on the preview branch can be listed.
- Red: a part failed. The status names the part that failed.
- Error: no result came in time, or the cloud infrastructure failed. That is reported as an error, not as a red test.
A red run keeps its result for its owner to read: which part failed, which tests failed with their first error line, and the log of each failed step. A green run deletes its result when it ends, so only the status stays.
What the coordinator gates on
Before it merges, the coordinator reads the status on the exact head. It must be green. A new push needs its own green status, so an earlier green does not carry over. The reviewer reads the same status as the test gate. The merge gate and its other conditions are in their own guide, and what the coordinator does is in another.
How long it takes
PostMine's check took a median of 9 minutes 13 seconds over 32 runs on merged pull request heads, from 28 to 30 November 2026. Nine runs in ten finished within 11 minutes 3 seconds (p90). The fastest run took 6 minutes 59 seconds, and the slowest 20 minutes 55 seconds.
After setup, the unit halves and the browser session run side by side. The slowest one sets the wait:
| Part | Median | When it runs |
|---|---|---|
| Setup | About 1.5 min | First, in every session. Installs the tools and packages, then checks out the commit |
| Unit tests, half one | About 6 min | After setup. Typecheck and lint, then half of the unit tests |
| Unit tests, half two | About 5 min | After setup. The other half of the unit tests |
| Build | About 2 min | After setup, in the browser session |
| Browser tests | About 2 min | After the build, in the same session |
The part times come from 91 kept results. Most of those were red, so the times lean slow. Green runs delete their results, so I have no part times for green runs, only the total.
One red run in 32 merged heads, 3%. That is biased low: a pull request merges only on a green head, so a red that a new commit fixed is not in the count. The true red rate is not recorded.
Where these rules come from
Our roles live in a private repository, so I describe them in words. In short: the heavy check runs once, in the check command the repo names; the status on the exact head is the test evidence the gate reads; a red result stays with its owner; the worker never runs the heavy part on its own machine. What the worker does and what the coordinator does are in their own guides.


