Local verification as the gate while GitHub Actions is down
Context and problem
On the morning of day 2, every GitHub Actions job started failing within two seconds. GitHub’s message pointed to billing: “recent account payments have failed or your spending limit needs to be increased”. From then on no checks ran on any pull request, while five or six agents were opening them in parallel. CI had been the gate since the repo skeleton (#9).
Options considered
- Wait for the minutes to come back, at the monthly reset, and merge nothing until then.
- Fix billing (a spending limit or a working payment) and keep CI as the gate.
- Make local verification the gate in the meantime.
Issue #53 still asks Eduardo to choose between options 1 and 2 for the long run.
Decision
We chose option 3, rather than wait:
bin/testruns every rules engine and every command-line tool the way CI does, in about 80 seconds;bin/test <platform>runs one.- The server’s database tests run against a local Postgres (
bin/dev test). Postgres.app is used on this Mac because Homebrew’s Postgres install kept hanging. - Every pull request lists the exact commands it ran and their results under “Verified locally”.
AGENTS.mdmakes that a rule for as long as #53 is open. - This applies to Dependabot’s pull requests too: they are installed and tested locally before merging.
Consequences
Good
- Work didn’t stop. About 50 pull requests merged in the first two days.
- Running the real thing locally finds what CI never did. The first run of the iPhone app on a simulator found six bugs, because CI had only built it.
- Each pull request body is a record of exactly what was checked.
Bad
- “No failing checks” means nothing. A pull request with no checks looks exactly like one that passed them. Dependabot’s TypeScript 7 upgrade for the site (#122) looked mergeable; installed locally, it failed, because Astro’s type checker supports only TypeScript 5 and 6.
- The gate is only as good as the agent’s report. Nothing outside the Mac reruns the commands, and a step can be skipped and listed as “not run” (low disk, a platform the branch doesn’t touch).
- Every check competes for the Mac’s disk and time with the agents building in parallel. Free space fell to 150 MB on day 2 and 143 MB on day 3.
- The CI jobs still in the repo go unexercised and can drift from
bin/testwithout anyone noticing.