Landings write a landed library's users' bumps onto main in dependency order (MQ-8) #46
Loading…
Reference in a new issue
No description provided.
Delete branch "anvil-landings"
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?
https://openproject.home.romaine.life/wp/MQ-8: once a change to a Go library other modules use reaches its default branch, the queue writes each user's dependency bump onto its default branch itself, nearest first, one commit per repository, replacing the take-up PR every release opened in each user once per path through the graph (tonight's ~160 and ~196 job floods). Held: it lands with infra-bootstrap's push permission for the
merge-queueuser (infra-bootstrap#56), after strip-owner waits for bumps on main (pr#21), and before pipeline-templates removes the take-up cascade (pipeline-templates#339).Added
landing.go. What makes a landing: at each fetch of a Go repository, what reached its default branch since a cursor kept on the volume (DATA_DIR/landings/cursors.json; a repository's first read sets it). The files the commits since change, the queue's own bump commits aside (authormerge-queue, subjectTake ...), make a landing when they change a library with users, read as a group test reads them. So a library merged by the queue, bypull-request mergeor by a direct push all reach their users, and a push made while the service was down is found at its first fetch. No branch is read until the clones are warm (before then a library could look unused). A branch rewritten past its cursor moves it with a warn line.release/ci.ymlpush run on the commit to end and take its tag there as the version (none: users take nothing); bump each user once every landing module it requires has a known version — worktree of its default branch,go get mod@version...andgo mod tidyper module folder, one commit, pushed (refused because the branch moved: redone on the new head, up to three times); a user that is a module waits for its own release run on the bump, whose tag is the next level's version.no-take-uprepos skipped; already-current ones unchanged; a failinggocommand fails that repo's bump with a warn line and, for a landing a PR merged, a comment on that PR (the form pr#21 reads), and the rest go on; a cycle of requires fails the same way.GET /landings(in-cluster) lists landings not done;merge_queue_bumps_total{result}.FetchNow,TagsAt; clientCommitPR,CommitURL,ReleaseRun.GOENV=off,GOTELEMETRY=off; self-test checksgo version.Changed: a library change of only
go.mod/go.sumis group-tested now (there are no take-ups to exempt once the cascade goes). README's merge-up section speaks of landings' bumps instead of take-ups.Left alone: PRs that change no library with users; the group test otherwise.
Tests (
landing_test.go, real git and realgoagainst bare repositories, fake Forgejo for runs): a push to lib makes a landing; lib → mid → app bumped in order, app taking both versions in one commit; the queue's own bumps make no landing; a release with no tag bumps nobody; no-take-up skipped while the rest go on; a restart resumes. Run three times in a row clean after fixing a startup ordering race (a library read before its users were loaded looked unused).🤖 Generated with Claude Code