Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

Seven agents where there were thirteen

Design

Factory runs had crept from about 8 minutes to as many as 19. A measured run showed where the time went: agents that wrote one record each, and test runs that repeated a result already in hand.

A plain job used to take about eight minutes. By late November the same kind of job took ten to nineteen. Nothing was broken. The pipeline had only grown, one careful step at a time.

Bookkeeping that needed no agent

In a measured run, seven of the thirteen agents did nothing but write one state record each, and the last of them made every job wait after its merge was already done. Now the tester, the doc writer and the merger write the records that sit next to their own work, and the rest share one bookkeeping agent. A plain run starts seven agents.

Tests run once

The code reviewer was running the tests the tester had just run. It no longer does. On the factory’s own repo, a job now tests only what its change touches while it is built and reviewed, and the whole suite runs once at merge. And when the tester has already passed the whole suite on the exact commit that is about to merge, the merger does not run it again, because the second run proved nothing new.