← All posts

Build log

When red CI isn't a code bug

A failing FreeCAD suite on main turned out to have run zero tests.

Why we needed it: Main went red overnight, and the first question was whether code had broken or the run had never really happened.

The hosted FreeCAD suite went red on main one morning. Before touching any code, Claude Code checked whether the tests had run at all.

They hadn’t. Downloading FreeCAD from conda-forge kept failing on dropped connections, so the job died before a single test ran. The same commit had passed on main on the two previous days, and two pull-request runs built on it had passed too.

A quieter gap turned up on the way. Main had since moved on to a Dependabot bump of a GitHub Action that had never been tested, because merges made by Dependabot’s auto-merge don’t start workflows.

Rather than open a fix for a problem that wasn’t in the code, the session asked one question: run the suite on main now, or wait for the nightly? GC said “Run it now.” It passed on main’s newest commit in about two minutes.

The checklist it leaves behind for red CI: check that tests actually ran, compare against the same commit’s earlier runs, and check whether the newest commit was ever tested. Only then go looking for a code fix.