The go suite tests a library change with everything downstream of it (MQ-7) #337
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!337
Loading…
Reference in a new issue
No description provided.
Delete branch "anvil-group-job"
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 go suite gains the job that tests a Go library's change with every module downstream of it, in one workspace, before it lands. merge-queue starts it (its PR follows this one) and gates landing on it.
Added
suites/go/group.yml(Suite go group),workflow_dispatchonly, inputsprandgroup({"version":1,"repo","sha","libraries":[{"module","dir"}],"members":[{"repo","sha","topics","modules":[{"path","dir"}]}]}). Jobsplan,test-linux,test-windows; a newer dispatch for the same repo and PR cancels the older run.planrefuses a run whose repository or commit isn't the group's (the branch moved).suites/go/group.mjs: validates the group; picks each member's platforms from its topics with the go suite's own rule (inputs.mjs testJobs), Linux also for members with test services; fetches each member at its commit (depth 1, four at a time, the job's read token fromactions/forgejo-token, nothing stored); writes one go.work (library modules from the checkout, member modules from their clones; newest go line, toolchain when asked); starts the Linux members' services as check-services does;go list -deps -testpicks the member packages that build any library package (a package failing to load on a library import is kept so it fails);go vet -p 4,go test -p 4 -json, and-racefor go-race members on Linux. PrintsANVIL_GROUP_V1 {"platform","members":{"<repo>":{"result","failed"}}}and fails on any member failure; a workspace that won't load fails with no result line.suites/tests/go-group.test.mjs: input validation, platform choice, workspace layout, go.work, package selection, output parsing, the workflow's shape.Changed:
inputs.mjsgainstestJobs(the one copy of the test-platform rule; scope's outputs read it and are unchanged);go/environment.mjsgoEnvironmenttakes an optional go.mod text and gainstofuAcceptance()(moved fromgo/test.mjs, which calls it, unchanged behaviour);workflows.test.mjslets a workflow's first job beplanas well asscope.Left alone:
ci.yml,dependencies.yml,services.mjs,config.mjs, every action.Not yet exercised by a real dispatch (merge-queue's PR does that): runner path, token, services on the runner, input size at logline's 45 modules. Checked locally on Windows with logline and three members, including a deliberately broken library change.
🤖 Generated with Claude Code