Skip to content

CI: run the suite under the B1 audit - #163

Merged
tiavision merged 1 commit into
mainfrom
ccr-eba7a8ac-oel4v3
Dec 6, 2026
Merged

tiavision merged 1 commit into
mainfrom
ccr-eba7a8ac-oel4v3

Conversation

@tiavision

Copy link
Copy Markdown
Member

Runs the test suite under the B1 audit in CI, as the link-audit job already does for linking.

What changes

A from-walk-audit job in .github/workflows/ci.yml runs npm test with SN_FROM_WALK_AUDIT=1:

  • Pages B1 takes (a second pass from the first pass's walk) are also compiled the old way, and must match up to numbering.
  • Pages B1 doesn't take must match byte for byte.

It uses the same container, Node version and test timeout as link-audit. A summary step counts the second passes B1 took (from SN_FROM_WALK_STATS) and lists why the others didn't.

Why

Until now this audit ran only by hand. In #162 it found a regression that the tests, the build output comparison and the other CI jobs all missed: B1's output differed from the old route under sinter check, when run from source through jiti.

Verification

Locally, the same command as the job, SN_FROM_WALK_AUDIT=1 SN_FROM_WALK_STATS=… npx vitest run --testTimeout=60000:

  • All 3,601 tests pass.
  • 652 second passes ran; B1 took 415 of them, and every one matched the old route.
  • The 237 B1 didn't take have their reasons in the summary; the most common is a loop unrolled with rendering off (SN_RENDER=0, 65).

The job runs on this PR itself.

No CHANGELOG entry, since nothing a user sees changes.


Generated by Claude Code

A job of its own, as link-audit: `npm test` with SN_FROM_WALK_AUDIT=1,
so every second pass B1 takes is compiled the old way too and must be
the same up to numbering. The audit found a divergence in #162 that
every other check passed; it ran only by hand until now. Its summary
counts the second passes B1 took (SN_FROM_WALK_STATS) and why the others
did not: over the suite today, 415 of 652, all the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AjKzdxQfw4ecAQCBmwDk7t
@tiavision
tiavision merged commit 7aaae69 into main Dec 6, 2026
22 checks passed
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.

2 participants