Go suite merges main into a PR whose go.mod or go.sum conflicts with it #259

Merged
merge-queue merged 2 commits from PIPT-66-go-conflicts into main 2026-11-28 17:34:17 -08:00
Owner

A PR that takes a module's new release itself and the automatic "Take Go dependencies" PR change the same go.mod/go.sum lines, so whichever lands second conflicts, and merge-queue stops it until someone merges main in by hand and picks versions.

Added

  • suites/go/conflicts.mjs: merges the default branch into a PR's branch, keeps each module at the newer of the two versions (semver order, pseudo-versions included), keeps what only the PR added or dropped, takes the newer go/toolchain, unions go.sum, runs go mod tidy, and pushes the merge. A conflict it can't settle (another file, or the PR changing replace or other directives) is written to the PR head as a failed go.mod merge status linking the run, and nothing is pushed. A PR that moved or closed meanwhile is left alone.
  • pr and head inputs on go/dependencies.yml: dispatched with them, the job merges up instead of taking up. It stays a dispatch on the default branch, since ci-repo-write's write token is limited to that; its concurrency group includes the PR, so a merge-up never queues behind or replaces a take-up.
  • Tests: version ordering, the go.mod settlement cases, and a real-git merge-up (pushed merge, a conflict outside go files written as a status with nothing pushed, a moved or closed PR left alone).

Unchanged: a take-up, dispatched with no inputs, does exactly what it did. Nothing dispatches a merge-up until merge-queue's companion change (MQ-3) lands after this one.

https://openproject.home.romaine.life/wp/PIPT-66 (for https://openproject.home.romaine.life/wp/MQ-3)

🤖 Generated with Claude Code

A PR that takes a module's new release itself and the automatic "Take Go dependencies" PR change the same `go.mod`/`go.sum` lines, so whichever lands second conflicts, and merge-queue stops it until someone merges main in by hand and picks versions. **Added** - `suites/go/conflicts.mjs`: merges the default branch into a PR's branch, keeps each module at the newer of the two versions (semver order, pseudo-versions included), keeps what only the PR added or dropped, takes the newer `go`/`toolchain`, unions `go.sum`, runs `go mod tidy`, and pushes the merge. A conflict it can't settle (another file, or the PR changing `replace` or other directives) is written to the PR head as a failed `go.mod merge` status linking the run, and nothing is pushed. A PR that moved or closed meanwhile is left alone. - `pr` and `head` inputs on `go/dependencies.yml`: dispatched with them, the job merges up instead of taking up. It stays a dispatch on the default branch, since `ci-repo-write`'s write token is limited to that; its concurrency group includes the PR, so a merge-up never queues behind or replaces a take-up. - Tests: version ordering, the go.mod settlement cases, and a real-git merge-up (pushed merge, a conflict outside go files written as a status with nothing pushed, a moved or closed PR left alone). **Unchanged**: a take-up, dispatched with no inputs, does exactly what it did. Nothing dispatches a merge-up until merge-queue's companion change (MQ-3) lands after this one. https://openproject.home.romaine.life/wp/PIPT-66 (for https://openproject.home.romaine.life/wp/MQ-3) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Go suite merges main into a PR whose go.mod or go.sum conflicts with it (PIPT-66)
Some checks failed
CI / changes (pull_request) Has been cancelled
CI / actionlint (pull_request) Has been cancelled
CI / prune-releases (pull_request) Has been cancelled
CI / release-version (pull_request) Has been cancelled
CI / check-versions (pull_request) Has been cancelled
CI / check-fetches (pull_request) Has been cancelled
CI / check-image-digests (pull_request) Has been cancelled
CI / cached-images (pull_request) Has been cancelled
CI / container-health (pull_request) Has been cancelled
CI / azure-cli (pull_request) Has been cancelled
CI / home-cache-linux (pull_request) Has been cancelled
CI / home-cache-windows (pull_request) Has been cancelled
CI / cache-save (ubuntu-latest) (pull_request) Has been cancelled
CI / cache-save (windows-latest) (pull_request) Has been cancelled
CI / setup-linux (cluster) (pull_request) Has been cancelled
CI / setup-windows (pull_request) Has been cancelled
CI / service-runtime (one) (pull_request) Has been cancelled
CI / service-runtime (two) (pull_request) Has been cancelled
CI / service-cancellation (pull_request) Has been cancelled
CI / suite-tests-linux (pull_request) Has been cancelled
CI / suite-tests-windows (pull_request) Has been cancelled
Fleet / align (pull_request) Has been cancelled
Tofu providers / lock (pull_request) Has been cancelled
Suite default / scope (pull_request) Has been cancelled
Suite default / check-fetches (pull_request) Has been cancelled
Suite default / check-rules (pull_request) Has been cancelled
Suite default / check-logs (pull_request) Has been cancelled
Suite default / reused-checks (pull_request) Has been cancelled
97a539b96a
Merge branch 'main' into PIPT-66-go-conflicts
All checks were successful
Fleet / align (pull_request) Successful in 6s
CI / changes (pull_request) Successful in 9s
CI / prune-releases (pull_request) Has been skipped
CI / release-version (pull_request) Has been skipped
CI / check-versions (pull_request) Has been skipped
CI / check-fetches (pull_request) Has been skipped
CI / check-image-digests (pull_request) Has been skipped
CI / cached-images (pull_request) Has been skipped
CI / container-health (pull_request) Has been skipped
CI / azure-cli (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
CI / home-cache-windows (pull_request) Has been skipped
CI / cache-save (ubuntu-latest) (pull_request) Has been skipped
CI / cache-save (windows-latest) (pull_request) Has been skipped
Tofu providers / lock (pull_request) Successful in 7s
Suite default / scope (pull_request) Successful in 20s
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
CI / actionlint (pull_request) Successful in 28s
CI / service-runtime (one) (pull_request) Successful in 48s
CI / service-runtime (two) (pull_request) Successful in 47s
Suite default / check-logs (pull_request) Successful in 32s
CI / service-cancellation (pull_request) Successful in 1m5s
CI / suite-tests-windows (pull_request) Successful in 1m37s
CI / suite-tests-linux (pull_request) Successful in 1m24s
Suite default / reused-checks (pull_request) Successful in 20s
CI / setup-linux (cluster) (pull_request) Successful in 3m2s
CI / setup-windows (pull_request) Successful in 3m48s
merge-queue landed on main
ed0646c54a
merge-queue deleted branch PIPT-66-go-conflicts 2026-11-28 17:34:17 -08:00
Sign in to join this conversation.
No description provided.