Test a library change with every module downstream of it before it lands (MQ-7) #44
Loading…
Reference in a new issue
No description provided.
Delete branch "anvil-groups"
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-7: the queue tests a Go library change with every module downstream of it before landing it, through pipeline-templates' new
go/group.yml(romaine-life/pipeline-templates#337, which must land first).Added
groups.go: at the front, once up to date with its base, the queue reads the files the PR changes from its clone (fetching the head first if the push's fetch hasn't come). A changed file that can change what users compile (not_test.go,.md, or undertestdata) belongs to the deepest module above it; each such module with users in the graph is a library of the change. The queue startsgo/group.ymlon the PR's branch withprandgroup(the libraries at the head, every downstream module at its default branch's commit, each repository's topics), asking Forgejo for the run it started.createCommitStatus), so the queue reports it itself in a new contextmerge-queue / group:pendinglinking the run as soon as it starts, then at the first look after the run endssuccess, orfailurefor a failed or cancelled run, which steps the PR aside asCI failed: merge-queue / group. The status is the whole record: a restart finds the run from it.go.mod/go.sum(a dependency take-up) isn't group-tested, so tonight's take-up cascade isn't multiplied; the landing stage removes take-ups and this exception together.Ensure(fetch now if a head is missing),Rev,Changed, per-repository fetch lock, and each repository's topics. Client:DispatchRun(return_run_info),SetCheck,RunURL. Metricmerge_queue_group_tests_total.Left alone: every PR that changes no library with users lands exactly as before.
Tests (
groups_test.go, against real git clones and the fake Forgejo): the group input; one start per head; waits while running; lands once passed; a failure and a cancelled run step it aside in the same look; tests/docs-only and take-up changes need no group; waits for a clone that isn't ready, then starts with it included.🤖 Generated with Claude Code