Guide

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.

30 Nov 2026 · 4 min read
Collage on blue: a worker relaxes with coffee next to a closed laptop while three robot test rigs on clouds run with progress bars; a green check badge hangs down to the laptop. Big word CLOUD and the title.Collage on blue: a worker relaxes with coffee next to a closed laptop while three robot test rigs on clouds run with progress bars; a green check badge hangs down to the laptop. Big word CLOUD and the title.

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

WorkerRuns focused tests and lint

Only the files it changed. Nothing heavy here.

WorkerPushes and starts the check

Posts a pending status on the head, then starts the cloud sessions. Each session first sets up, about 1.5 minutes.

WorkerChecks types and lint, half the tests

About 6 minutes, after setup. It sets the wait.

WorkerRuns the other half of the tests

About 5 minutes, after setup.

WorkerBuilds, then runs the browser tests

Build about 2 minutes, then browser tests about 2 minutes.

WorkerPosts one status on the head

Green, red or error. Red keeps its result for the owner.

REDWorkerFixes the whole class of the failure

Same branch, inside the contract. Then the check runs again.

Green on this head?
GREENCoordinatorReads the status for the gate

Green on the exact head is one condition for the merge.

WorkerRuns focused tests and lint

Only the files it changed. Nothing heavy here.

WorkerPushes and starts the check

Posts a pending status on the head, then starts the cloud sessions. Each session first sets up, about 1.5 minutes.

Three or more sessions at once
WorkerChecks types and lint, half the tests

About 6 minutes, after setup. It sets the wait.

WorkerRuns the other half of the tests

About 5 minutes, after setup.

WorkerBuilds, then runs the browser tests

Build about 2 minutes, then browser tests about 2 minutes.

WorkerPosts one status on the head

Green, red or error. Red keeps its result for the owner.

Green on this head?
GREEN
CoordinatorReads the status for the gate

Green on the exact head is one condition for the merge.

RED
WorkerFixes the whole class of the failure

Same branch, inside the contract. Then the check runs again.

↺ The check runs again on the new head
StepDecisionLoop backCoordinatorWorker
The worker's path from the push to the status. The cloud sessions run side by side. A red status sends the fix back to the same branch, and 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:

PartMedianWhen it runs
SetupAbout 1.5 minFirst, in every session. Installs the tools and packages, then checks out the commit
Unit tests, half oneAbout 6 minAfter setup. Typecheck and lint, then half of the unit tests
Unit tests, half twoAbout 5 minAfter setup. The other half of the unit tests
BuildAbout 2 minAfter setup, in the browser session
Browser testsAbout 2 minAfter 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.