Skip to content

fix(ci): banner-aware doc identity test and full shape-test coverage in project checks - #1065

Merged
c-vigo merged 4 commits into
devfrom
bugfix/1060-banner-aware-test-and-ci-scope
Jul 14, 2026
Merged

c-vigo merged 4 commits into
devfrom
bugfix/1060-banner-aware-test-and-ci-scope

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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_sssot broke when #1043's banner landed on the scaffold DOWNSTREAM_RELEASE.md (confirmed RED on the base commit). Fix: a new public strip_banner() helper in scripts/transforms.py — the exact inverse of the Banner transform, reusing its own header-split and banner-block internals rather than re-encoding the banner shape — and the test compares strip_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 Checks ran only tests/test_utils.py + packages/vig-utils/tests; every shape-test file added recently never executed in CI. The suite: all step now runs tests/ with an explicit --ignore deny-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's test_scaffold_lint.py with no action edit (640 → 672 tests).

Commit order preserves per-commit green: the test fix lands before the scope widens onto it.

Test evidence

Closes #1060
Closes #1061
Refs: #1036, #1043, #1051, #1063

c-vigo added 4 commits July 14, 2026 13:55
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
@c-vigo
c-vigo merged commit 0ff28ca into dev Jul 14, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1060-banner-aware-test-and-ci-scope branch July 14, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant