Repository navigation
Conversation
9 tasks done
Contributor
Author
|
Consolidated into #26000 to avoid duplicate full CI runs. That PR preserves these two fixture changes and their measured 8.2665s → 6.3319s median (23.40% less time), alongside separately measured clock and exact-byte assertion improvements. This PR is closed without merging; #26000 now contains all six test files and the complete before/after evidence. |
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.
ELI5
Large file-listing tests create their real fixture files sooner, so the tests finish sooner.
What Changed
Replace batches of Promise-based fixture writes with synchronous writes inside the isolated test worker. Keep all 40,120 real files, identical paths and contents, the real ripgrep listing, cap/ignore assertions, and existing deadlines.
Why
The fixtures need every file before listing can start. Scheduling thousands of Promise-based writes adds work without allowing the tested operation to begin earlier. Sequential writes reduce that fixture overhead without replacing real files with mocks or shrinking the workload.
Measured on macOS arm64/M4 Max, Node 24.20.0, Bun 1.4.2, Vitest 5.0.3, two workers:
pnpm testwall timeThree sequential runs before, then three after, same checkout except these fixture loops; no excluded warmup. Times include command startup, fixture creation, real listing, assertions, cleanup, reporting and exit. All six passed with identical case identities and outcomes. Samples in seconds: before 8.390994, 8.249583, 8.266466; after 6.331862, 6.795455, 6.206055. These scoped timings do not establish the 2× full-suite target.
Reproduce:
ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/ipc/filesystem-quick-open-options.integration.test.ts src/relay/fs-handler-list-files-candidates.integration.test.ts --maxWorkers=2Linked Issue
Maintainer-requested test-performance follow-up. Initially based on #25998 for its fixture typecheck repair; this PR adds only two fixture changes and will target main after that prerequisite merges.
Visual Proof
N/A — test fixture creation only; no rendered UI or interaction change.
Testing
macOS arm64: all six measured runs pass with identical case outcomes. All three cases also pass in the Node fallback. The changed-code quality gate and commit-time lint/format checks pass. No new tests are needed for replacing the write loop because the existing integration cases verify the complete real-file workload and listing behavior.
Review
Reviewed file counts, contents, awaited directory creation, real listing, cleanup and timeouts. Synchronous work runs only in the isolated test process. Application files, remote execution and production thread behavior are unchanged.
Agent skill upstream boundary
Notes
Use Node's cross-platform file/path APIs; no platform-specific optimization or native binary change. Relay contracts retain their real execution behavior.
Checklist