I spent seven weeks thinking my CI was flaky
Starwright’s CI was red for seven weeks and I spent most of that time assuming it was flaky.
Here’s what it looked like. The job starts, runs for fifteen minutes, gets killed by its own timeout. Zero failures reported. No stack trace, no failing assertion, nothing in the output pointing anywhere. Re-run it and the same thing happens. That is exactly what an overloaded runner looks like, so every time I glanced at it I thought “infrastructure” and went back to what I was doing.
The cause was a line I edited in August and a line I didn’t.
On August 25th I upgraded the engine to Godot 4.7 and the test framework to 6.2.1 because I wanted abstract classes. I updated the project. I didn’t update the engine version pinned in the CI workflow, which was still on 4.4.1 from the very first milestone.
The new test framework needs 4.5 or later. On 4.4.1 it doesn’t throw a version error — it fails to compile, and then instead of exiting it hangs. So the job sat there doing nothing until the timeout fired, with no failures to report, because it never got as far as running a test.
A red that looks like nothing
This is the bit I want to write down properly, because the lesson isn’t “keep your versions in sync.”
A failing test tells you something. A crashing job tells you something. A job that hangs until its timeout with zero failures tells you less than nothing, because it looks identical to the most common harmless explanation. So your brain files it under “known annoyance” and stops looking. It was red every single time and I read it as noise for seven weeks.
The fix ties the three places that engine version appears to one variable so they can’t drift apart again. More useful than that: the import step greps its own log for parse errors now and fails in seconds. A fast, loud failure is worth more than a correct one that takes fifteen minutes to say nothing.
That immediately uncovered a second hang sitting underneath the first — the test runner failing an entire run over a single orphan node — which had been invisible behind the version problem the whole time.
What had been merging
Seven weeks of work went in on a check that never ran. When it started running, three real bugs fell straight out.
Twelve planet sprites missing. Three theme textures missing. And a worldgen test comparing rocks by serialising them to JSON strings instead of comparing numbers, so it passed or failed on key order rather than on whether the values matched.
None of those are disasters. All three had been in the repo for weeks, and the only reason they survived is that nothing was looking. That’s the real cost of a broken gate — not the bug it lets through, but the confidence you keep spending while it isn’t working.
The rest of October
Which was a lot, because once the gate worked I trusted it again.
Supply lines got modelled properly — span, leg time, cycle time, throughput — with commands to create, commission, decommission and recall them, catch-up for sectors you aren’t looking at, and balance gates for carrier ratios and tick budget. Comets with tails that point away from the sun. Gas and dust clouds. Signposted radiation, debris and EM hazards, and anomaly markers worth flying to.
Research, crew with morale, away missions with real odds, enemy variety with distinct doctrines so raiders behave differently to berserkers, and nine locked equipment slots resolved through a single resolver instead of ad hoc checks.
And a performance fix I’m pleased with: the belt’s broad-phase collision went from 12.8ms to 3.3ms, which puts the whole tick back inside the 60Hz budget.
One more thing. The game has a written layer of peoples now — 22 races, 26 roster entries — held to a grammar checked by a script with twenty rules. No reused sentence frames, no uniform severity, length caps, and a hard rule against coding any of them as a thinly disguised real-world culture. Writing a lint pass for your own fiction sounds absurd until you read back twenty-six entries you wrote in one sitting and notice they all run to the same rhythm.
— Bruno