Repository navigation
fix(ci): banner-aware doc identity test and full shape-test coverage in project checks - #1065
Merged
Merged
Conversation
The DOWNSTREAM_RELEASE.md identity test asserted byte-identity between the root SSoT and the scaffold copy, but #1043's provenance banner stamps three lines onto the managed scaffold copy, so it has failed on dev since that merge. Strip the banner from the scaffold copy before comparing, reusing the Banner transform's own machinery via a new exposed strip_banner helper in scripts/transforms.py rather than re-encoding the banner shape, so the assertion still guards real content drift. Test-only fix: one commit, no separate RED commit, since the failing test already exists on dev. Refs: #1060
The Project Checks job (test-project action, suite all) ran an explicit two-item pytest list — tests/test_utils.py plus the vig-utils package tests — so every dependency-light shape-test file added since ran only on developer laptops, never in CI (the compounding cause behind the #1060 regression going unnoticed). Run all of tests/ minus an explicit, slow-changing deny-list of the heavy modules that need Nix (flake*, downstream_flake) or a built image + podman (image, install_script, integration), each already covered by its own targeted job. New shape-test files are now picked up by default with no action-file edit required. Refs: #1061
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the compounding pair found while landing #1063: a test that has been silently red on
dev, and the CI scope gap that let it go unnoticed.#1060 — banner-aware identity assertion
test_scaffold_doc_matches_root_sssotbroke when #1043's banner landed on the scaffoldDOWNSTREAM_RELEASE.md(confirmed RED on the base commit). Fix: a new publicstrip_banner()helper inscripts/transforms.py— the exact inverse of theBannertransform, reusing its own header-split and banner-block internals rather than re-encoding the banner shape — and the test comparesstrip_banner(scaffold) == root, still guarding real content drift. Test-only fix for an already-failing test, so a single commit (RED confirmed first).#1061 — CI runs the lightweight suites by default
Project Checksran onlytests/test_utils.py+packages/vig-utils/tests; every shape-test file added recently never executed in CI. Thesuite: allstep now runstests/with an explicit--ignoredeny-list of the 9 heavy modules (each needs nix, the built image, or podman, and each is covered by its dedicated targeted CI job — table in the action header). Deny-listing the slow-changing heavy set instead of allow-listing the fast-growing light set means new shape-test files run in CI automatically — demonstrated live: after merging dev, the selection swept in #1063'stest_scaffold_lint.pywith no action edit (640 → 672 tests).Commit order preserves per-commit green: the test fix lands before the scope widens onto it.
Test evidence
prek run --all-files→ green (re-verified independently before push)Closes #1060
Closes #1061
Refs: #1036, #1043, #1051, #1063