Repository navigation
[CI] test: reduce terminal topology suite time by 40.98% - #26166
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; 2 remain after this review. 📝 WalkthroughWalkthroughThe session-fixtures module now defines and exports Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The fixture move preserves defaults, overrides, and the existing harness import path; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1📝 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 |
ELI5
Terminal topology tests can load their terminal-tab fixture without loading the persistence Store and SQLite. Their test data and assertions stay the same.
What Changed
Move the existing pure
makeTerminalTabdeclaration into the existingpersistence-session-fixturesmodule. The persistence harness reexports that same function, preserving its public import path. All defaults, overrides, Store constructors and cleanup stay unchanged. One existing Store lifecycle suite checks that both import paths expose the identical function.Why
The session fixture module previously imported this small builder from the broad persistence harness, pulling in its entire dependency graph. Placing the builder beside the session fixtures removes that unnecessary dependency and follows the existing implementation rather than creating a second builder.
Three matched pairs used frozen source
6d90d51802dd, four workers,fsModuleCache=false, all six stock setup files and original isolation. Times include the entirepnpm testprocess through exit. Two suites stayed on Bun forks; the persistence ownership suite stayed on actual Node. Order was before/after, after/before, before/after. Every qualified sample was retained. External contention rejections and raw logs remain recorded separately. The new identity case is outside this unchanged timed cohort.This is a 1.694× improvement for three selected suites; it does not establish the whole-suite 2× goal.
Linked Issue
Maintainer-requested test performance follow-up.
Visual Proof
N/A — only test fixture dependency changes; no application rendering or interaction change.
Testing
Six suites cover terminal projection/publishing/ownership, real Store lifecycle, session scrollback and initial loading. Both runtimes passed all 87 original cases before and after, plus the one new identity case after. Exact original case/status maps, runtime routes, setup files, isolation and cold reload behavior matched.
pnpm tc:node, formatting, changed-code quality and pre-commit checks passed. After rebasing onto maine6bcc5a6e0fd, both changed helper files and all three timed test files remained byte-identical to the measured inputs. Both runtimes then passed the same 88 cases again withfsModuleCache=true; exact original case/status maps and routing matched. Typecheck and the changed-code gate passed again. Final Linux unit CI run37601175785tested merge source24427a111e34with parents incoming maine6bcc5a6e0fdand exact PR head82a2cb726c0c; its entire tree matches the PR head. All 11,413 physical files ran exactly once: 11,278 passed, 135 existing skips, zero failures or unhandled errors. Cases: 110,721 passed, one expected failing case, 1,035 existing skips. All prior full-CI file/status mappings were retained, with exactly the one new binding case. Runtime routing is unchanged.The initial Windows job timed out in an unchanged Electron SQLite writer-stall test. Its source, bundled fixture and deadline implementation were byte-identical to incoming main. One retry of only that failed job on the same tested source passed, including the stall case in 8.893s; its original 2.412s timeout and logs are retained. No source, deadline or assertion changed for the retry, and the failure cause is not established. All 30 final contexts are successful or skipped, with no unresolved review threads. No bot review was recorded; independent review and complete CI are the review evidence.
Review
The moved declaration is byte-identical and has no runtime dependencies beyond its arguments and literals. All other fixture/harness functions and lifecycle hooks are unchanged. Independent source review found no mocked-module seams affected by the move.
Agent skill upstream boundary
Notes
No production code, platform commands, SSH execution boundary, folder-workspace behavior, wire format or packaging changes. Local testing was on macOS; final Linux unit CI passed. No Windows qualification is claimed.
Checklist