Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

Three at a time

Milestone

The queue can now keep up to three jobs of one repo running at once, each in its own session. Memory, not the lock, is what limits the PC, so the factory started measuring it.

On 28 November the jobs of one repo were built in parallel by hand, one session per job, and the wait per job dropped. The queue now does that itself, up to three at once, with a setting to change the number.

Numbers to size the limits from

Running more at once is only safe if the machine can take it, and there were no numbers. The factory now records how long each suite ran and how much memory it used, and it waits to start a suite while the PC is short of free memory. A tester’s whole-suite run queues on the same lock as the merges do.

Light and heavy

Every run used to wait for one exclusive lock whatever it cost, so a three-minute suite queued behind another three-minute suite. A repo can now mark its test run as light. Two light runs share the lock; a heavy run still has it alone, and a run that holds a light slot waits like anyone else when it asks for the heavy one.