Repository navigation
[CI] perf(tests): release stale pane migration listeners between cases - #26131
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe persistence identity migration test imports Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This test cleanup stops the shared hook server before closing stores and removing temporary state. No actionable merge-blocking risk is established. 🚥 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 |
44b4108 to
a1da44e
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
ELI5
The pane-identity migration suite spent time updating a Store from a previous test after that Store had closed. Cleaning up that listener between tests makes the same seven cases 54.94% less time in matched runs: 13.126 → 5.915 seconds.
What Changed
Stop the existing canonical hook server at the start of the suite's existing
afterEach, then keep the original awaited Store close and directory removal. The server flushes pending status while the directory and SQLite authority exist, removes its alias persistence listener and clears its aliases. It does not publish an empty alias list into the Store.Why
Earlier cases leave an alias listener attached to a frozen Store. The following 130,000-leaf case registers aliases through that stale listener, repeatedly rebuilding alias snapshots before frozen-write handling rejects the save. Ending the listener's lifetime removes that work. The first three cases already stop the same server themselves; the additional cleanup is idempotent. Every case body, assertion, leaf and same-case reload remains unchanged. This fixes fixture cleanup instead of reducing the workload or replacing SQLite.
Linked Issue
Maintainer-requested test performance work. Based on main after #26111; its independent fixture-reuse result is not combined with this one.
Visual Proof
N/A — test cleanup only; no product UI or interaction change.
Testing
Frozen source
6d90d51802ddacbbcddaf4af6eeee85972b23789; only the two-line test cleanup patch differs between arms. Wholepnpm testtime, one physical file / seven original named cases, actual Node runtime pool, four-worker cap, cache explicitly disabled, existing six setup files, flags, isolation and deadlines. Three pairs alternate order; every qualified sample is included.On October 7, 2026, the two-line cleanup was moved onto main
385fe8ab4eeed0ae819376bac59265f3945004fbafter its parent PR merged. The migration fixture before applying the patch exactly matches the original measured source, and the patched fixture is byte-identical to the measured candidate44b410880857bf59daa1b4c2513bdcee506a6ca7. The base update includes 21 other changed paths outside this measured cohort. The table remains the three matched pairs on frozen6d90d51802ddacbbcddaf4af6eeee85972b23789; fresh CI qualifies the aligned source separately and does not establish another performance result.All seven original cases pass with exact case/status/runtime-route parity and unchanged source within every invocation. AST/source proof preserves the seven test bodies, 13 assertion calls, 130,000 leaves and all same-case reloads byte-for-byte. Two invocations failed the preset external-coordinator guard; their raw artifacts are retained separately and only those invalid samples were repeated. No test or assertion failure was excluded.
pnpm tc:node, changed-code quality and formatting pass locally on macOS with background launches.a1da44e6d0c30ef6442dc1eef61106c881cf97f6: all required CI gates pass; current-head CodeRabbit review has no actionable comments and no unresolved threads.96188c64f8425ce770c43f075b72c2290d446a3creports all 11,408 selected physical files exactly once: 11,273 passed, 135 existing skips, zero failed files and zero unhandled errors. The full selection equals incoming main; runtime routing and six setups are preserved by source. CI timing artifacts do not contain per-case identities, so these counts are physical files.The 2.22× result is for this suite, not the complete suite or CI wall time. The requested whole-suite 2× target remains unmet. Linux is qualified by PR CI; Windows is not locally measured.
Review
No production code, persistence format, execution-host ownership or remote protocol change. The existing canonical singleton remains the owner; this only ends its fixture lifetime before removing that fixture's data.
Agent skill upstream boundary
Checklist