Skip to content

ci: test:native runs its longest scripts first, with ownership split into four parallel parts - #663

Open
danfry1 wants to merge 3 commits into
mainfrom
ci/test-native-order
Open

danfry1 wants to merge 3 commits into
mainfrom
ci/test-native-order

Conversation

@danfry1

@danfry1 danfry1 commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

test:native starts its longest scripts first, and test:native:ownership runs as four parallel parts. On Windows the native step is about 28% shorter, and no single script approaches its deadline.

Why

run-scripts starts scripts in the order given and expects the longest first, but ownership, the longest, started 18th of 24. It was eight Vitest runs in one script (about 470–910 s on Windows), so the whole step waited on it, and it outgrew the 600 s deadline.

Changes

  • test:native is ordered by measured Windows duration, longest first. A test keeps the scripts with their own deadlines at the front.
  • test:native:ownership becomes :stock, :hot, :resolution and :resolution-hot; the old name runs all four for local use. Each part peaked at about 300 s on Windows, so its 20-minute deadline row is removed.
  • The ownership fixtures' global setup no longer removes and reinstalls its packages in the shared node_modules on every run, which broke concurrent runs. It now places them the stamped, rename-into-place way dispatch-fixtures does, through a shared helper (tests-native/support/installed-fixture.ts).

Notes

  • test:native:ownership keeps growing on Windows: 386–558 s on green runs (Nov 7), then 605 s, and up to 668.6 s on main (Nov 9). Each part is at most about 300 s.
  • The order comes from main's Windows maxima (5 green runs, Nov 9). test:native:conformance has no Windows timing yet, so it is placed at an estimated 45 s.
  • After the ownership or dispatch fixture files are edited, the first parallel run on an existing node_modules can fail once while an outdated package is replaced. CI installs fresh and is not affected.

@danfry1 danfry1 added this to the 0.16.0 milestone Nov 7, 2026
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vitest-native Ready Ready Preview Nov 9, 2026 9:59pm UTC

# Conflicts:
#	packages/vitest-native/package.json
#	packages/vitest-native/tests/ci-script-coverage.test.ts

This branch has not been deployed

No deployments
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