Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

Waiting on the suite

Design

On one repo every merge waited on a ten-minute test suite that needs most of the PC's memory. Four changes let the factory run it less often, run it alone, and say plainly when memory is what it is waiting for.

One repo’s whole test suite takes ten minutes and more than sixteen gigabytes of memory. Every merge ran it, even a merge that changed only scripts the suite never touches.

Only when it matters

A repo can now list the paths its whole suite covers. A merge that touches none of them runs the fast check, and the whole suite runs at the next merge that does. The cost is that two changes which only break together are found one merge late. The owner accepted that.

Not beside another run

A merger’s whole suite beside a tester’s fast run took more than twice as long as alone, and failed; alone it passed. Crowding was sending good jobs back for rework. A tester’s fast check now takes the shared suite lock as a light run: it waits while a merger runs the whole suite, and still runs beside other testers.

Say what it is waiting for

Two mergers once waited ninety minutes beside a large picture batch and parked as out of time, which hid the cause. A job that cannot take the lock because memory is short now parks as “Waiting on memory.”, with the free gigabytes and the floor, and retries once by itself.

Known-flaky is not a failure

A repo can list test files known to fail now and then, each with the job that owns fixing it. A merge that fails only on those goes through and says so in the job’s history, where a runner used to approve it by hand.