Repository navigation
chore(ci): upgrade to Vitest 5 for faster, more stable CI - #3353
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goals
Improve CI speed and stability by upgrading the test runner to Vitest 5, following loaders.gl #4072. Validate the upgrade against the existing coverage and browser checks before claiming a performance improvement.
Changes
yarn.lock.@vis.gl/dev-toolswith temporary resolutions. Native support is tracked in dev-tools #59..vitest/reports, traces, and attachments, and document the compatibility overrides.Existing test selection, GPU isolation, concurrency, coverage settings, and CI timeouts remain unchanged. Luma.gl merges LCOV directly, so loaders.gl's explicit blob-report paths are unnecessary here.
Verification
yarn installandyarn lint fixpass on the isolated master-based branch.yarn buildpasses.yarn testran both suites: Node has 3,728 passing tests and eight skipped; Chromium has 2,586 passing tests, 23 skipped, and five failures across three deck.gl integration suites on macOS. A focused post-build rerun has three failures and six passes: the same three failures reproduce under Vitest 4.1.0 (two missingconvertColorsWebGPU backend handlers and one trace-viewer pixel assertion). The two initial timing-related failures do not recur after the build finishes. Linux CI remains the gate.Risks and follow-up
Speed and stability gains are the objective, not yet an established result. Compare CI wall times, shard completion, and retries with comparable master runs; do not infer speed from Vitest 5's browser preparation breakdown. Keep coverage gates intact if Vitest 5 changes the denominator. Remove the browser resolutions after adopting native dev-tools support.
Initial CI timing comparison
Compared with the same-source master run (Vitest 4, Vitest 5):
These are single-run wall times including setup and visual smoke tests.
The headless coverage steps alone were faster in all three shards:
The three headless steps together use 1297 seconds versus 1417 seconds on matching master (8.5% less runner time). This is encouraging initial evidence; whole-job results are mixed, and a single successful run does not establish improved reliability. Repeat comparable CI runs before making a general performance claim.