Merge up a Go PR whose go.mod or go.sum conflicts with main instead of stopping it #27

Merged
merge-queue merged 2 commits from MQ-3-go-merge-up into main 2026-11-28 17:35:33 -08:00
Owner

A Go PR that takes a module's new release itself conflicts on go.mod/go.sum once the automatic "Take Go dependencies" PR for the same module lands first, and the queue stopped it with "conflicts with main" until someone merged main in by hand.

Changed

  • At the front, a conflict refused by Forgejo's update in a repository with the ci-go topic no longer steps the PR aside. The queue dispatches pipeline-templates' go/dependencies.yml on the default branch with the PR's number and head (romaine-life/pipeline-templates#259, PIPT-66), writes pending "merging in main, settling go.mod and go.sum", and keeps the PR at the front. The job's push is a new head, handled like any update.
  • What the job can't settle comes back as a failed go.mod merge status on the head. That status is never counted as CI; the queue steps the PR aside with "conflicts with main: <the job's reason>", linking the run. A dispatch Forgejo refuses steps it aside with Forgejo's message. Adding the label again starts another merge-up.
  • mergeable_checked: false no longer steps a Go repository's PR aside; it stays in line and is merged up when it reaches the front.
  • New counter merge_queue_merge_ups_total by repository; README describes the merge-up.

Unchanged: repositories without ci-go behave exactly as before. No new webhook events: the job's status write already arrives as a pull request event.

Order: held until romaine-life/pipeline-templates#259 lands, since the workflow needs its new inputs first.

https://openproject.home.romaine.life/wp/MQ-3

🤖 Generated with Claude Code

A Go PR that takes a module's new release itself conflicts on `go.mod`/`go.sum` once the automatic "Take Go dependencies" PR for the same module lands first, and the queue stopped it with "conflicts with main" until someone merged main in by hand. **Changed** - At the front, a conflict refused by Forgejo's update in a repository with the `ci-go` topic no longer steps the PR aside. The queue dispatches pipeline-templates' `go/dependencies.yml` on the default branch with the PR's number and head (romaine-life/pipeline-templates#259, PIPT-66), writes `pending` "merging in main, settling go.mod and go.sum", and keeps the PR at the front. The job's push is a new head, handled like any update. - What the job can't settle comes back as a failed `go.mod merge` status on the head. That status is never counted as CI; the queue steps the PR aside with "conflicts with main: <the job's reason>", linking the run. A dispatch Forgejo refuses steps it aside with Forgejo's message. Adding the label again starts another merge-up. - `mergeable_checked: false` no longer steps a Go repository's PR aside; it stays in line and is merged up when it reaches the front. - New counter `merge_queue_merge_ups_total` by repository; README describes the merge-up. **Unchanged**: repositories without `ci-go` behave exactly as before. No new webhook events: the job's status write already arrives as a pull request event. **Order**: held until romaine-life/pipeline-templates#259 lands, since the workflow needs its new inputs first. https://openproject.home.romaine.life/wp/MQ-3 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gofmt the fake's new fields
All checks were successful
Suite cluster-service / publish (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 28s
Suite default / check-logs (pull_request) Successful in 25s
Suite go / reused-checks (pull_request) Successful in 20s
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 cluster-service / reused-checks (push) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite cluster-service / scope (pull_request) Successful in 28s
Suite cluster-service / check-manifests (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 22s
Suite go / check-test-linux (pull_request) Successful in 40s
Suite cluster-service / check-image (pull_request) Successful in 1m17s
Suite default / scope (pull_request) Successful in 23s
Suite go / scope (pull_request) Successful in 26s
Suite default / reused-checks (pull_request) Successful in 18s
Suite cluster-service / reused-checks (pull_request) Successful in 15s
merge-queue landed on main
915acd0937
merge-queue deleted branch MQ-3-go-merge-up 2026-11-28 17:35:33 -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!27
No description provided.