Group job reads contract v2: libraries from several repositories, the tested pull request's repository as the checkout (MQ-10) #341
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!341
Loading…
Reference in a new issue
No description provided.
Delete branch "anvil-group-v2"
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?
Work package: https://openproject.home.romaine.life/wp/MQ-10 (anvil stage 5: lines). Held: it lands with merge-queue's stage 5 change, which starts sending version 2.
The go group job (
suites/go/group.yml,suites/go/group.mjs) now reads group contract version 2 as well as version 1, so a pull request in a line can be tested with the library changes ahead of it from several repositories, and the dispatched repository is the tested pull request's (which may be an app's).Version 2
{"version":2,"repo","sha","libraries":[{"repo","sha","module","dir"}],"members":[{"repo","sha","topics","modules":[{"path","dir"}]}]}repo/sha: the tested pull request's repository and head, the job's checkout (plan still requires GITHUB_REPOSITORY == repo and GITHUB_SHA == sha).repomust be atsha, and a repository listed by several libraries must name one commit.repomust be atsha; a member in a library's repository must be at that library's commit and shares its clone.repomust hold a library or be a member, otherwise the tested change wouldn't be in the workspace. An app's pull request appears as a member atshaand reuses the job checkout._group/<owner>/<name>with the job's read token, even when several modules share it.Removed
cloneMembers(group, members), replaced byfetches(group, plan, platform)(which repositories, once each) andcloneRepositories(repos).Added
parseGroupaccepts versions 1 and 2, with the commit rules above enforced through one repository-to-commit map.libraries(group)gives every library as{repo, sha, module, dir}(version 1's arerepoatsha).repo, a clone otherwise.preparerun against local git repositories (each fetched once at its commit, the go.work written), and package selection and results across library repositories.Left alone
repo/shais still refused), same checks, same workspace and fetches. A code comment says it goes once merge-queue sends version 2; a follow-up removes it then.ANVIL_GROUP_V1), the job and output names, platform planning, services, vet and test.suites/go/dependencies.mjsandmodules.mjs(the held mq-8-remove-go-take-up branch).Verified:
pull-request checkpassed (suite tests 301 passed, 2 skipped, 0 failed; fleet align).group.mjs planwas also run by hand on a version 2 app-PR group (its outputs came out right, and a wrong GITHUB_REPOSITORY was refused).🤖 Generated with Claude Code