Repository navigation
[CI] Run the SQLite responsiveness test after other suites - #26015
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughVitest now defines projects for ordinary Node tests, Bun tests when running under Bun, and a separate single-worker Node measurement test. The project configuration applies in all runtimes. Tests now check project settings and verify shard assignments and shard-file coverage. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The scheduling change is mergeable after normal checks; the separate full-suite performance goal remains unproven. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ELI5
Run the real Node responsiveness measurement after ordinary test suites finish, so it measures the SQLite reader with less interference from other workers.
What Changed
Give ordinary Bun and Node projects execution group 1, and the existing event-loop measurement a dedicated Node project in group 2. Exclude that file from every ordinary project so it still runs exactly once. Apply the same ordering to the stock Node fallback. Keep the real clock, workload, three assertions, deadlines, six setup files, Node flags and Windows worker limit.
Extend the existing configuration and shard contracts to protect that ownership, runtime routing and complete shard partition.
Why
The unchanged measurement passed alone but failed its event-loop occupancy comparison in two complete concurrent runs. Running it after other test bodies and hooks finish provides a direct way to limit test-worker interference without weakening its contract. Vitest starts prior worker termination before advancing groups but does not await every process exit at that boundary; unrelated host activity can still affect a real-clock measurement.
Before/after evidence on macOS arm64, M4 Max, Node 24.20.0, Bun 1.4.2, Vitest 5.0.3:
The complete grouped experiment used frozen combined source
e7745b7d1b91plus an ignored equivalent grouping config. It took 586.2950s and did not pass the whole suite: my experimental direct launcher omitted pnpm's environment, causing one native-rebuild invocation assertion to fail. The preceding 612.3299s run failed only the measurement. These failed process timings are not a speedup comparison. The native invocation contract then passed with the correct pnpm launcher under both coordinators. A second complete run used the tracked grouping on combined source6ccaf42122448through standardpnpm test --maxWorkers=16. The unchanged Node measurement passed again. The full run still failed four other cases (a fixed-wait Git upgrade assertion, two real runtime contracts, and large-file fixture cleanup). Its 959.1470s includes a competing full Vitest run in another workspace and is unsuitable for a performance comparison. The probes are smaller, quieter workloads and are not a matched full-suite performance benchmark. This PR claims ordering and retained coverage, not a quantified speed gain or proof of the original failure's cause. The separate 2× full-suite goal remains unmet.Linked Issue
Maintainer-requested follow-up to #25967 and #25998. The measured fixture improvements and localization runtime change remain in #26000 and #25999.
Visual Proof
N/A — test scheduling and test contracts; no rendered UI or interaction changes.
Testing
Tracked config: both Bun/custom-Node and stock Node fallback pass the ten-file infrastructure/routing/native fixture set (51 cases plus four unchanged Windows-only skips). Both also pass the one-worker edge (three files / 23 cases). The measurement uses actual Node with
--no-experimental-webstorage,--expose-gc, exposed gc and background launch. The complete tests-and-hooks barrier is verified under both coordinators at one and two workers.Actual
--shard=1/2and2/2runs under both coordinators preserve the full three-file discovery universe, valid selection provenance, exact-once union, and per-shard passed timing reports with zero unhandled errors. Node typecheck, changed-code quality, formatting and commit hooks pass. CI covers remaining platforms; local tests run with background launch.Reproduce the focused set through the standard entry points, which retain pnpm's launcher environment:
ORCA_BACKGROUND_LAUNCH=1 pnpm test config/scripts/ci-shard-assignment.test.mjs config/scripts/ci-unit-sequencer.test.mjs config/scripts/vitest-runtime-sequencer.test.mjs config/scripts/ensure-native-runtime.test.mjs src/main/foreign-sqlite-readers/foreign-sqlite-reader-event-loop.test.ts --maxWorkers=2 ORCA_BACKGROUND_LAUNCH=1 pnpm test:node config/scripts/ci-shard-assignment.test.mjs config/scripts/ci-unit-sequencer.test.mjs config/scripts/vitest-runtime-sequencer.test.mjs config/scripts/ensure-native-runtime.test.mjs src/main/foreign-sqlite-readers/foreign-sqlite-reader-event-loop.test.ts --maxWorkers=2Review
Reviewed project ownership, actual Node pool, flags and setup inheritance, Node fallback, one-worker ordering, Windows limit and installed Vitest's shard-before-group execution. No measurement workload, assertion, threshold or deadline changed.
Agent skill upstream boundary
Notes
No application runtime, native binary, UI, SSH protocol or remote wire changes. Platform behavior stays behind existing runtime checks.
Checklist