Skip to content

test: stop the dispatch fixtures from making concurrent native runs find no test files - #610

Merged
danfry1 merged 1 commit into
mainfrom
fix/dispatch-fixtures-race
Nov 6, 2026
Merged

danfry1 merged 1 commit into
mainfrom
fix/dispatch-fixtures-race

Conversation

@danfry1

@danfry1 danfry1 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes an intermittent No test files found at the start of native test runs, which was followed by a code.charCodeAt is not a function crash while Vitest printed that error.

Why

tests-native/support/dispatch-fixtures.global.ts rebuilt its fixture packages in the shared node_modules on every run, removing and renaming directories. run-scripts.mjs runs several native configs at once, and a run starting during another's rebuild found no test files.

  • With three concurrent runs of the main native config, 18 to 19 of 90 runs failed this way.
  • With this setup removed: 0 of 90.
  • With this change: 0 of 90.

Changes

  • Each fixture package is stamped with a hash of its fixture sources, and a package with the current stamp is left alone.
  • A missing or outdated package is still built in a temporary directory and renamed into place. If another run already placed the same build, it's kept rather than removed first.

Notes

  • The charCodeAt crash itself is Vitest or Vite failing to format the "no test files" error. It's separate, and still to be traced.

@danfry1 danfry1 added this to the 0.15.0 milestone Nov 6, 2026
@danfry1
danfry1 merged commit 25a6aa2 into main Nov 6, 2026
27 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.

1 participant