Repository navigation
[CI] test: load Activity fixture builders without importing the page - #26229
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; 3 remain after this review. 📝 WalkthroughWalkthroughThe activity test fixture module now imports Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change only redirects test-fixture imports to the same builders without changing production behavior; no actionable merge risk remains. 🚥 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
Activity tests can build their sample data without loading the entire Activity page first. Four measured suites took 57.03% less time with the same 19 tests.
What Changed
One test fixture imports
buildActivityEventsandbuildAgentPaneThreadsfrom their existing owner modules instead of the page that reexports them. Factory bodies, public exports, production code and assertions stay unchanged.Why
The page brings unrelated React, Store and presentation modules into pure builder tests. Importing the existing builders directly avoids that work while preserving the same function objects and cache owners.
Measured on macOS at source
0d8289997296413ed1629f7256885c27c277b436, with four workers, filesystem module caching disabled and the complete test command timed through exit:All six samples qualified, including the first runs; none were rejected or discarded. Every pair improved. The result is 57.03% less time (2.327× faster) for these four suites, not a full-suite speed claim.
Linked Issue
Maintainer-requested test performance work; no existing issue.
Visual Proof
N/A — only test fixture imports change.
Testing
ORCA_BACKGROUND_LAUNCH=1.AI Disclosure
Review
Independent source review checked unchanged factory statements, public binding identity, mock boundaries, runtime routing and audit removal.
Agent skill upstream boundary
Notes
The existing i18n and Intl initializers can run earlier after removing the page import. Qualification includes the real page, portal, HMR, cache and status tests; this does not claim universal initialization-order identity. No execution-host, SSH, mobile, security or wire behavior changes.
Checklist
Measurements used frozen
0d828999; after rebasing onto40d35fb7, the shipping fixture is byte-identical. The only guarded dependency change adds an unrelated SSH command file to the Node registry; all 30 selected Activity routes remain unchanged. Incoming clock tests are outside this cohort. Final full CI qualifies the new main integration; timings were not repeated after rebase.Final full CI: run 37632605254, synthetic source
65d14982c9e77d2a8d9d1eb803c4d9d0ae72578fwith parents40d35fb7+ exact headb0055667. 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 are 10,551 Bun files, 1,126 actual-Node runtime files, and one Node measurement file; all 18 launcher/configuration/registry/setup guards match incoming main. These stock artifacts prove enrollment and raw totals, not complete named-case parity; the separate local qualification supplies the exact selected case maps.CodeRabbit review explicitly covers exact head
b0055667: zero actionable findings, no open review threads and all five advisory checks passed. Existing builder/public binding identity, earlier initialization caveat and removed audit were independently reviewed.