Trevor PaughSystems engineer
Trevor PaughProject Chronicles

Chronicles / The Factory

The merger checks its own work

Progress

The merger now merges the pull request it checked, by number, from the job's own folder, against the exact commit of main it looked at, and confirms the merge happened before it says so. A clash on the plugin version line it settles alone.

The last step of the pipeline had been trusting three things it should have been naming: which pull request, which folder, and which main.

By number, from its own folder

The merger used to let the host pick a pull request from the branch name. A branch with more than one could have had a different one merged than the one that was checked. It now merges by number. It also runs its commands in the job’s own folder: a job started from a session opened in another project had looked at that project’s pull request with the same number and reported a merge that never happened. The merger now checks that its own pull request really merged before it says so.

The main it looked at

A sibling job could fetch in between and move main. The merger now merges exactly the commit of main it noted, so its decision to skip checks is always about the commit it merged.

One line, one answer

Two jobs built at the same time always clash on the plugin’s version line, and the answer is always the same: keep the higher one. The merger no longer stops for a person to say it.