Skip to content

bugc: check each example's code digest in its own test - #410

Merged
gnidan merged 2 commits into
mainfrom
bugc-split-digest-test
Nov 10, 2026
Merged

gnidan merged 2 commits into
mainfrom
bugc-split-digest-test

Conversation

@gnidan

@gnidan gnidan commented Nov 10, 2026

Copy link
Copy Markdown
Member

The test that checks the code does not depend on invoke/return markers compiled every example at every optimizer level inside one it, 192 compilations in all. It takes about a second on a fast machine but went over vitest's 5 s limit on CI under load (seen on #408). Each source and level is now its own test, the same as the other tests in the file, so no single test comes near the limit and a changed digest names its example and level. All 192 digests are unchanged; only the snapshot keys moved.

The changelog check counted the snapshot file as a source change, so it now skips *.test.ts.snap the same as test files.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-10 20:26 UTC

@gnidan
gnidan merged commit 53bb262 into main Nov 10, 2026
8 checks passed
@gnidan
gnidan deleted the bugc-split-digest-test branch November 10, 2026 20:23
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