Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

A conflict is not a rebuild

Decision

Approving a job stuck on a merge conflict now resolves the conflict, runs the suite once and has the code reviewer read only the resolution. Six follow-up jobs then made sure that shortcut cannot merge work nobody reviewed.

Six jobs had parked on merge conflicts, and each park cost a full rebuild and a full review of work that had already passed both. That came to 390 minutes. The owner wanted it fixed with no loss of review quality.

Review the resolution, not the job

A conflict changes a few lines where two jobs met. The factory now resolves it, runs the whole suite once, and sends the code reviewer only the resolution. Everything else on the branch keeps the review it already had.

Not on an agent’s word

Reviewing that change showed where it leaned on trust. The factory no longer accepts an agent’s word that nothing unreviewed is left on the branch: it needs matching commits, and late commits go back to review. A merge retried after a failed attempt runs the same check, because the first version only checked in the run that did the review. Once a job turns on its security review, every later update to its record says so, after one lost write let a resolution skip it. A rework forgets an earlier resolution review, so the job is not sent through a second, needless one.

Nothing lost on an abort

When the factory aborts a half-finished merge it saves the work under a new name each time and says where. A second abort used to overwrite the first save, which could lose a resolution done by hand. The saved patches are cleaned up when the job is merged or deleted.