Skip to content

perf(oxlint): run e2e tests concurrently#16651

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/12-09-perf_oxlint_run_e2e_tests_concurrently
Dec 10, 2025
Merged

perf(oxlint): run e2e tests concurrently#16651
graphite-app[bot] merged 1 commit intomainfrom
c/12-09-perf_oxlint_run_e2e_tests_concurrently

Conversation

@camc314
Copy link
Copy Markdown
Contributor

@camc314 camc314 commented Dec 9, 2025

Tests in the same file typically run in sequence. we can improve the performance by running these in parallel:

https://vitest.dev/guide/parallelism.html#test-parallelism

  • Before (sequential): ~5.2s total, e2e.test.ts ~5000ms
  • After (concurrent): ~1.50s total, e2e.test.ts ~1200ms

~3.5x faster

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-performance Category - Solution not expected to change functional behavior, only performance labels Dec 9, 2025
Copy link
Copy Markdown
Contributor Author

camc314 commented Dec 9, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@camc314 camc314 force-pushed the c/12-09-perf_oxlint_run_e2e_tests_concurrently branch from abf165b to 96408fe Compare December 9, 2025 13:59
@camc314 camc314 marked this pull request as ready for review December 9, 2025 13:59
Copilot AI review requested due to automatic review settings December 9, 2025 13:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes test execution time by enabling concurrent test runs for oxlint's e2e tests. The changes thread Vitest's expect function from the test context through utility functions to ensure proper test isolation when running tests concurrently.

  • Modified test utilities to accept an optional expect parameter with a sensible default
  • Updated e2e tests to use describe.concurrent and it.concurrent for parallel execution
  • Properly threaded the expect function from test context to maintain test isolation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/oxlint/test/utils.ts Added optional expect parameter to testFixtureWithCommand to support concurrent test execution
apps/oxlint/test/e2e.test.ts Enabled concurrent test execution and threaded expect from test context to utilities

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@camchenry camchenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to run concurrently with all of the async file/cmd operation here.

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
@camc314 camc314 assigned camc314 and unassigned overlookmotel Dec 10, 2025
Copy link
Copy Markdown
Contributor Author

camc314 commented Dec 10, 2025

Merge activity

Tests in the same file typically run in sequence. we can improve the performance by running these in parallel:

https://vitest.dev/guide/parallelism.html#test-parallelism

 - Before (sequential): ~5.2s total, e2e.test.ts ~5000ms
 - After (concurrent):  ~1.50s total, e2e.test.ts ~1200ms

~3.5x faster
@graphite-app graphite-app bot force-pushed the c/12-09-perf_oxlint_run_e2e_tests_concurrently branch from 96408fe to a5dc4c6 Compare December 10, 2025 15:06
@graphite-app graphite-app bot merged commit a5dc4c6 into main Dec 10, 2025
18 checks passed
@graphite-app graphite-app bot deleted the c/12-09-perf_oxlint_run_e2e_tests_concurrently branch December 10, 2025 15:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Dec 10, 2025
@overlookmotel
Copy link
Copy Markdown
Member

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants