Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

Read the output

Progress

A day of small corrections to how the factory treats its own test results: read what the suite already printed, rerun a lone failure before sending a job back, and never take a leftover result for a fresh one.

About one job in eight needed a second round, and the record did not say why. One known case was a test that failed only because the machine was busy.

Once is enough, twice when it fails

In one job, 280 of the tester’s 434 seconds repeated a test file the suite had just passed. The tester and the builder now read the suite’s output instead of running those files again. A failing file is the exception: it is rerun alone before the job goes back, a rerun that hangs is stopped after five minutes and named, and the job history now says why a reviewer asked for changes.

Results that can be trusted

The suite runner no longer mistakes a leftover result for its own, and a checks call with nothing in it fails instead of passing. The factory repo’s own suite now passes on main itself, so the merger can tell whether main is red, and its fast check runs every test that uses a changed script. A text check that had failed on an untracked scratch note now reads only the files git tracks.

Found while running in parallel

A code audit and the first parallel day turned up the rest. Claiming a job no longer checks out the whole repo. A slow launch gets ten minutes and says how to release the job if it still runs out. One hook process runs per tool call instead of two. And the tester no longer fails a job over a version number that a sibling’s merge overtook, which had cost one job a whole build round.