Repository navigation
[CI] test: avoid loading the full Store for renderer fixture builders - #26217
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📥 CommitsReviewing files that changed from the base of the PR and between 0d82899 and 5d3c5d6b36052c8ccf98ac9c2cf0f0ba29141134. 📒 Files selected for processing (32)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe change adds session and worktree test fixture modules, moves fixture definitions into those modules, and re-exports them from the shared test helper. Tests across renderer components, hooks, libraries, and store slices now import fixtures from the dedicated modules. Test behavior and assertions remain unchanged. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The fixture extraction leaves test behavior unchanged while keeping the dedicated fixture imports outside the renderer Store. No change-specific merge risk remains, subject to normal CI completion. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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 |
5d3c5d6 to
d9056fe
Compare
ELI5
Tests that only need a sample tab or worktree now load those builders directly, avoiding the full application Store and its dependencies. The existing Store tests still construct the real Store.
What Changed
Move five tab/editor builders into the existing session fixture module, reuse the existing worktree builder, and expose the same constants and functions through the original module. Update 29 test imports. Preserve original test cases, assertions, constructors, cleanup, and builder defaults.
Why
Many small tests were loading the application Store just to construct plain sample data. Reusing existing fixture modules reduces repeated imports while preserving isolation and real runtime contracts.
Measured whole
pnpm testcommand, four workers, transform cache disabled, four existing renderer files / 39 original cases:All six timing attempts qualified; none excluded. First runs counted. This is a selected-cohort result, not a full-suite or historical 2× claim. Measurements used source
8897cf6; the rebased PR preserves all 32 changed-file hashes. The only guarded dependency change on latest main adds an unrelated SSH command file to the actual-Node registry; all 48 selected renderer routes remain unchanged. Incoming composer, clock-test and README changes are covered by final PR CI rather than a repeated local benchmark.Linked Issue
N/A — maintainer performance work.
Visual Proof
N/A — test fixture imports only; application UI and interactions do not change.
Testing
Review
Self-reviewed original case bodies and moved builder bodies for exact preservation. The first full CI run preserved all 11,678 files but failed two unchanged real PowerShell cases. A later Bun run passed those cases, so no crash cause is established. PR #26226 corrects that native contract’s runtime to production Node. This PR is rebased onto that change and the clock PR, with all 32 shipping bytes preserved; fresh exact-head CI passed and independent source review verified the unchanged rebased patch. The failed run is retained, not replaced or reported as passing.
Agent skill upstream boundary
Notes
No production behavior, native runtime routing, wire format, platform-specific behavior, or test isolation changes. Local raw measurements and qualification reports are retained in the ignored
notes/bun-migration/performancedirectory.Checklist
Final full CI: run 37632813645, synthetic source
82099512b76883013af665f4832ae8fedfefb5f3with parents40d35fb7+ exact headd9056fe5. All 11,678 physical files ran exactly once across five passing shards: 11,538 passed files and 140 existing skipped files; 112,609 passed cases, one expected failure and 1,052 existing skips. No unhandled errors, omitted failures, added or missing files. Source-configured routes: 10,551 Bun, 1,126 actual-Node runtime, one Node measurement. All 18 stock launcher/configuration/registry/setup guards match incoming main. Stock artifacts prove enrollment and raw totals, not complete named-case parity; local qualifications supply the selected exact case maps. The earlier failed full run remains recorded above.Bot review disposition: CodeRabbit covers prior head
5d3, with zero actionable findings and no open review threads. Its generic documentation-coverage advisory was assessed: the 11 touched test-fixture functions have unchanged bodies; adding repetitive docstrings solely to reach its threshold would conflict with the repository's concise-comment rule. No code change is warranted for that advisory. The bot has not reviewed rebase headd905; no claim of exact-head bot coverage is made. An independent current-head review verified all 32 before/after file bytes and the full proposal diff are identical to the bot-reviewed patch, only the base changed, and all selected runtime routes are unchanged. Combined with passing fresh exact-head full CI, this pure-base rebase warrants merge without triggering a duplicate bot review.