Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

A little on every change, everything once

Decision

The factory stopped running a project's whole test suite four times per job. It runs a short check while a job is built and tested, and the whole suite once, at the merge that protects main.

An audit of the factory’s own runs found a job running one project’s 14-minute suite about four times, 230 minutes of re-runs that proved nothing new, and a job that lost 90 minutes when a tool limit cut a suite off. The owner asked for fewer runs with no loss of review quality.

Near the change first

The builder now runs only the tests near its change. The tester’s second round re-runs what failed or what the fix touched, plus the whole suite once. The merger no longer re-runs the suite when main only gained job records or docs.

The gate that matters

The last step settles it: a short check on every change while a job is in the works, and the whole suite once, when the job merges. The factory’s own suite got the same treatment and runs its test files side by side in about half the time, because every factory job runs it twice and the owner wanted it shorter even at three minutes.

Long runs, kept tidy

The suite now runs in the background, so a tool limit cannot cut it off, and a leftover process from one run no longer blocks the next. When main itself is broken the merger says “Main is failing” once instead of parking job after job. Suite logs are deleted after seven days.