Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

A flake should not need a person

Decision

A test that fails at merge is now run again by itself. If it passes alone the job merges and the record names the flake; if it fails alone the job waits for a person, and says why.

On 24 November four approved jobs in one project parked at the last step. Their browser tests had timed out while several full suites ran on the same PC at once. Nothing was wrong with the work.

Run it alone

The merger now reruns a failing test on its own. A pass means the first failure was load, so the job merges and the flake is written into the record where it can be counted. A second failure is real, and the job stops for the owner with that stated.

Take turns

The cause is treated as well as the symptom. Mergers now take turns running the full suite, so two jobs no longer starve each other at the moment both are closest to done.