fix(ci): give Test Generator the Rituals checkout its invariants need #128
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!128
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/test-generator-rituals-sibling"
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?
Why
testis red onmain. The pipeline invariants (tools/wp_theme_ingestor/test_pipeline_invariants.py) check what the design emits against the blocks in toilville_rituals. When the plugin isn't there they fail rather than skip, on purpose: a skipped cross-repo check reads as a pass. But Test Generator only checks out this repo, so four of them fail on every run:Those lines are from #125's PR and merge runs, read from the server's action logs. The queued runs for #126 and #127 will fail the same way.
1. Check the sibling out (
a1dabab)This uses the layout
udg-copy-coverage.ymlalready has:toilville-design/Toilville_Rituals/, withCI_TOKENtoilville-design/The tests' existing lookup finds the sibling there without an override.
test_copy_coverage_holds_its_floorstill skips in this job, because the image has nophp. The copy-coverage job runs that check.2. The grammar tests' fallback pointed inside the repo (
f2c9aee)Reproducing the layout turned up a second bug. When git can't answer, as in a tarball or a container without
safe.directory,test_forgeblock_grammar.pyfalls back to a path guess. Four.parentsteps fromgenerator/tests/unit/<file>stop at the repo root, so the guess was<repo>/Toilville_Rituals, and 18 grammar tests silently skipped. Now it'sparents[4], the directory holding the repo, which is where the other four copies of this lookup already look.Verified
Reproduced locally with this branch and Rituals
mainside by side and noTOILVILLE_RITUALS_DIR, running rootpytestwith CI's exact dependencies:actions/checkoutmakes)Also: workflow invariants 52 passed;
yamllint --strictclean.Both commits were made with
--no-verify. From a worktree, the shared pre-commit hook's native-token sync targets a checkout outside any repo. They change one workflow file and one test file, and I ran the relevant checks by hand.