Repository navigation
[CI] Speed up composer decision tests by reusing their narrow module - #26179
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughComposer decision helpers now reside in a dedicated module. The composer state module imports and re-exports the helpers and their input type. Existing tests now import helpers from the dedicated module, and an integration test checks that eight public exports match their canonical implementations. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The composer decisions retain their existing behavior, with no actionable merge risk identified beyond normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
1bfbdb6 to
49245fa
Compare
ELI5
Tests of workspace naming and host selection now load those decisions directly, instead of loading the entire composer hook and renderer store first. The composer uses and exports the same functions.
What Changed
Move eight existing decisions and their private naming function into the existing composer decision module, unchanged. Three existing test files import that module. The original hook re-exports the same bindings and retains its initial workspace-module evaluation edge. The source-selection dependency uses the existing narrow provider export. One integration case verifies all eight public bindings.
Why
The decisions need no hook state. Reusing their existing module removes unnecessary test imports while retaining file isolation, every assertion, real hook integration coverage, and protected Node contracts. This avoids changing global isolation or mocking the application store.
Linked Issue
Maintainer performance work; no new issue.
Visual Proof
N/A — no rendered behavior or UI change; existing decision bodies and actual hook composition are preserved.
Testing
Three matched pairs on macOS arm64, Bun1.4.2/Node24.20.0/Vitest5.0.3, four workers, filesystem module cache disabled. Times include the whole
pnpm testcommand from launch through normal close. Same 13 original cases across three physical suites, ordered setup modules, isolation and runtime routing. The extra binding case is outside this timed workload. All six samples passed the source/config/case/status/process-contention guards; every qualified sample is included.This is 2.61× for these three suites. It does not establish the whole-suite 2× goal. Timing source:
6d90d51802ddacbbcddaf4af6eeee85972b23789; incoming main's later API removals are preserved when aligning this change.b8c96719, including merged deterministic SSH fixture fix [CI] Make SSH permission probe fixture independent of real PID reuse #26190. All seven candidate files are byte-for-byte identical to the reviewed prior head. Fresh control64/candidate65 qualifications pass Bun and stock Node with exact original identities, public binding check, routes, settings, normal exits and source guards; candidate maps also match the previous reviewed65-case reports. Web typecheck, changed-code quality, oxfmt and whitespace checks pass. The timings above retain their original frozen source.49245fae. Tested sourcedc2ada89has parents mainb8c96719plus this head. Canonical discovery and all five assignments cover all11,678 physical files exactly once:11,538 passing files,140 existing skipped files;112,609 passing cases,one expected failure,1,052 existing skipped cases;zero unhandled errors. All11,669 previous-source files remain, with nine incoming-main additions and no removals. Routes remain10,552 Bun files,1,125 actual Node runtime files and one Node measurement file; six setups/runtime configuration/lock guards match main. All four changed composer test modules pass their15 cases. Stock artifacts establish enrollment/routes and raw case counts; focused local reports separately establish complete named-case parity.Review
Independent source review confirms unchanged function blocks, real hook composition and public binding identities. Fresh rebase/source/controller review confirms all seven candidate files and all28 source guards, exact permitted changes and preserved incoming-main code. Final exact head has green applicable checks and a clean merge state. Review API reports zero reviews and zero threads; no bot review completion is claimed.
Agent skill upstream boundary
Notes
No runtime routing, platform paths, native SQLite/PTy contracts, SSH/folder host selection behavior, deadlines, isolation or test selection changes. The helper keeps the original host-qualified decision logic. The static dependency graph motivates the experiment; the measured command times above are the performance evidence.
Checklist