An updated front is judged on its new head, not the old one's late runs (MQ-4) #29

Merged
merge-queue merged 1 commit from mq-4-fresh-head-after-update into main 2026-11-29 09:50:07 -08:00
Owner

After the queue brings the front up to date, it now re-reads that pull request at once and keeps its new head. Before this, it held the old head until Forgejo's pull_request synchronized delivery arrived. Run and job deliveries on the old head came first and brought looks that judged the old head.

Seen on nelsong6/at-tmux, 2026-11-28 at 1:37 PM: the queue updated the crash-log PR. Two seconds later it stepped that PR aside on a failure reported on its old head, and merged master into the Ctrl+Win PR behind it. A second after that, the crash-log PR was back at the front on its new head, so Ctrl+Win's CI run was wasted. The same window explains the two or three updated lines within seconds seen across repositories. Forgejo made one merge commit from those calls, so no extra CI ran.

  • Added: in front, after a successful UpdateBranch, one PR read kept with model.reread. This is the same re-read a refused merge already does.
  • Added: TestAnUpdatedFrontIsJudgedOnItsNewHead. A failed status and a job delivery on the old head arrive after the update; the test asserts no step-aside and no second update. It fails on main.
  • Unchanged: the ordering and hand-back rules. A PR handed back after a CI failure still retakes its place by label time, and is brought up to date if its base moved.

Work package: https://openproject.home.romaine.life/wp/MQ-4

🤖 Generated with Claude Code

After the queue brings the front up to date, it now re-reads that pull request at once and keeps its new head. Before this, it held the old head until Forgejo's `pull_request` synchronized delivery arrived. Run and job deliveries on the old head came first and brought looks that judged the old head. Seen on nelsong6/at-tmux, 2026-11-28 at 1:37 PM: the queue updated the crash-log PR. Two seconds later it stepped that PR aside on a failure reported on its old head, and merged master into the Ctrl+Win PR behind it. A second after that, the crash-log PR was back at the front on its new head, so Ctrl+Win's CI run was wasted. The same window explains the two or three `updated` lines within seconds seen across repositories. Forgejo made one merge commit from those calls, so no extra CI ran. - Added: in `front`, after a successful `UpdateBranch`, one `PR` read kept with `model.reread`. This is the same re-read a refused merge already does. - Added: `TestAnUpdatedFrontIsJudgedOnItsNewHead`. A failed status and a job delivery on the old head arrive after the update; the test asserts no step-aside and no second update. It fails on main. - Unchanged: the ordering and hand-back rules. A PR handed back after a CI failure still retakes its place by label time, and is brought up to date if its base moved. Work package: https://openproject.home.romaine.life/wp/MQ-4 🤖 Generated with [Claude Code](https://claude.com/claude-code)
An updated front is judged on its new head, not the old one's late runs (MQ-4)
All checks were successful
Suite cluster-service / scope (push) Has been skipped
Suite cluster-service / check-manifests (push) Has been skipped
Suite cluster-service / check-image (push) Has been skipped
Suite cluster-service / publish (push) Has been skipped
Suite go / scope (pull_request) Successful in 4s
Suite cluster-service / scope (pull_request) Successful in 4s
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 4s
Suite default / check-rules (pull_request) Successful in 5s
Suite go / check-test-linux (pull_request) Successful in 11s
Suite default / reused-checks (pull_request) Successful in 5s
Suite cluster-service / reused-checks (pull_request) Successful in 3s
merge-queue landed on main
Suite default / scope (pull_request) Successful in 4s
Suite cluster-service / publish (pull_request) Has been skipped
Suite cluster-service / check-manifests (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 6s
Suite cluster-service / reused-checks (push) Has been skipped
Suite go / check-test-windows (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite cluster-service / check-image (pull_request) Successful in 16s
Suite go / reused-checks (pull_request) Successful in 4s
94ea81f628
merge-queue deleted branch mq-4-fresh-head-after-update 2026-11-29 09:50:07 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/merge-queue!29
No description provided.