Repository navigation
test(ci): the watchdog self-test keeps every VITEST_SHARD_ variable out of its fixture runs - #12578
Conversation
…ut of its fixture runs A Node leg sets VITEST_SHARD_TIMES_FILE for its own files; a fixture run that inherited it wrote its entry into that leg's times file. A new case proves the leg's file stays as it was.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 81407b2 |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is a draft. Marking it ready for review starts the run.
The fix holds up: with the old VITEST_SHARD_WATCHDOG_ filter the new case fails, because the fixture run replaces the leg's times file with its own entry, and with this change all 8 cases pass.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- The self-test already kept the leg's own watchdog settings out of fixture runs: verified, the base filter dropped
VITEST_SHARD_WATCHDOG_variables. - It now keeps every
VITEST_SHARD_*variable out: verified,scripts/vitest-shard-watchdog.test.mjs:25-29. - A Node leg sets
VITEST_SHARD_TIMES_FILEfor its own files' times: verified,.github/workflows/ci.yml:1371(also:1650and.github/workflows/cli-minimum-node.yml:82). - A fixture run that inherited it wrote the fixture's entry into the leg's times file: verified, the reporter rewrites the whole file (
scripts/vitest-shard-watchdog.mjs:83-88), and a simulated leg's file held only fixture entries while the self-test ran. - Each case still passes the settings it needs: verified,
scripts/vitest-shard-watchdog.test.mjs:60,:76-77,:100-101,:118,:137,:149-150,:167-168and:187. - The new case shows the leg's file stays byte for byte as it was: verified,
scripts/vitest-shard-watchdog.test.mjs:178-195. - Test-only, with no workflow, script or record change: verified, the pull request changes one test file.
- The new case fails with the old filter and all 8 cases pass with the change: verified by running both.
- Prettier is clean and the file is outside lint's scope: verified,
prettier --checkpasses andeslint.config.js:210ignoresscripts/**. - No other open pull request changes the same file: verified for the open pull requests that mention the watchdog.
- The ownership and land-path note describes process, not code: nothing to verify.
Files:
scripts/vitest-shard-watchdog.test.mjs: clear.
What
The Node shard watchdog's self-test runs Vitest fixtures in child processes. It already kept the leg's own watchdog settings (
VITEST_SHARD_WATCHDOG_*) out of those children; it now keeps everyVITEST_SHARD_*variable out. A Node leg setsVITEST_SHARD_TIMES_FILEto record its own files' times, so a fixture run that inherited it wrote the fixture's entry into that leg's times file.scripts/vitest-shard-watchdog.test.mjs:withoutShardSettingsdrops everyVITEST_SHARD_variable from the parent environment; each case still passes the settings it needs.VITEST_SHARD_TIMES_FILEset in the parent, as a Node leg sets it, a fixture run leaves that file byte for byte as it was.Test-only. No workflow, script or record changes.
Tests
VITEST_SHARD_WATCHDOG_filter, the new case fails (the fixture's entry lands in the leg's file); with this change all 8 cases pass.scripts/vitest-shard-watchdog.test.mjs8 of 8. Prettier clean (the file is outside lint's scope).Overlap checked: none (no open pull request changes
scripts/vitest-shard-watchdog.test.mjs)Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard, on green, CodeBunny approval and Specs' exact-head
/approve-spec.