Skip to content

chore(ci): upgrade to Vitest 5 for faster, more stable CI - #3353

Merged
ibgreen merged 1 commit into
masterfrom
codex/vitest-5-ci
Oct 2, 2026
Merged

ibgreen merged 1 commit into
masterfrom
codex/vitest-5-ci

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Pin Vitest, its Playwright browser provider, and Istanbul coverage to 5.0.2; regenerate yarn.lock.
  • Add Vite as Vitest 5's required peer dependency.
  • Align the browser packages currently supplied by @vis.gl/dev-tools with temporary resolutions. Native support is tracked in dev-tools #59.
  • Ignore generated .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

  • Node 22.22.1 selected; yarn install and yarn lint fix pass on the isolated master-based branch.
  • Clean-branch yarn build passes. yarn test ran 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 missing convertColors WebGPU 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.
  • Earlier release-checkout validation: build and formatting passed; focused Istanbul coverage generated a complete LCOV report. Node had 2,930 passing tests and three failures; Chromium had 1,815 passing tests and six failures. Every failed test reproduced with Vitest 4.1.0. These results are context, not validation of this master-based branch.
  • Linux CI passes build, lint, Node tests, examples, website, focused Node coverage, and glTF WebGPU/WebGL2 reference evidence. All seven Linux CI jobs pass, including all three Chromium coverage shards and aggregate coverage. Automated review completed with no findings; the required 15-minute review window elapsed without actionable comments.

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):

Job Vitest 4 Vitest 5
Build, lint, Node tests, examples, website 4m54s 4m32s
Node coverage 3m31s 3m00s
glTF reference evidence 3m48s 6m06s
Browser coverage shard 1 20m19s 17m42s
Browser coverage shard 2 18m07s 18m25s
Browser coverage shard 3 8m36s 9m15s

These are single-run wall times including setup and visual smoke tests.

The headless coverage steps alone were faster in all three shards:

Headless coverage step Vitest 4 Vitest 5
Shard 1 7m56s 6m22s
Shard 2 8m17s 7m56s
Shard 3 7m24s 7m19s

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T16:48:57.686289Z 65114c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibgreen
ibgreen merged commit c01fdf2 into master Oct 2, 2026
8 checks passed
@ibgreen
ibgreen deleted the codex/vitest-5-ci branch October 2, 2026 17:10
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