Go suite merges main into a PR whose go.mod or go.sum conflicts with it #259
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!259
Loading…
Reference in a new issue
No description provided.
Delete branch "PIPT-66-go-conflicts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A PR that takes a module's new release itself and the automatic "Take Go dependencies" PR change the same
go.mod/go.sumlines, 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 newergo/toolchain, unionsgo.sum, runsgo mod tidy, and pushes the merge. A conflict it can't settle (another file, or the PR changingreplaceor other directives) is written to the PR head as a failedgo.mod mergestatus linking the run, and nothing is pushed. A PR that moved or closed meanwhile is left alone.prandheadinputs ongo/dependencies.yml: dispatched with them, the job merges up instead of taking up. It stays a dispatch on the default branch, sinceci-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.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