Repository navigation
improve: reuse prepared plugins in startup corpus tests - #148465
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
9a424a8 to
3e5a4bd
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:33 PM ET / 19:33 UTC (Revision 2). ClawSweeper reviewWhat this changesThe startup compatibility tests reuse prepared plugins through the existing directory resolver, with CI documentation explaining the selection. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused optimization absent from current main. No actionable correctness or security findings were found, and the prior review contains no unresolved findings. Priority: P3 Review scores
Verification
How this fits togetherThe startup corpus checks operator configurations and prior-release state through Doctor repair and Gateway startup. Plugin discovery supplies the migration contracts used by those checks. flowchart TD
A[Operator config fixtures] --> D[Startup corpus tests]
B[Prior-release state fixtures] --> D
C[Checkout plugin resolver] --> E[Prepared plugins or source fallback]
E --> D
D --> F[Doctor and Gateway startup]
F --> G[State and configuration assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +16, Docs +4. Total +20 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep plugin selection with the existing resolver and preserve the full compatibility corpus without adding loader policy or weakening assertions. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: source confirms the forced-source test setup, and the PR supplies loader measurements; this review did not execute the corpus. Is this the best way to solve the issue? Yes. Reusing the established package-root resolver is a narrow solution that preserves existing build preparation, source fallbacks, and migration coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5d6453e092ae. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* origin/main: perf(secrets): keep pure helpers out of file writer imports (#148096) perf(models): normalize suppression policy once per compilation (#148428) test: route provider integration and wizard recovery tests correctly (#148504) test: reuse prepared bundled plugins in startup corpus (#148465) fix(agents): attribute tool preparation delays to the correct stages (#148349) refactor: remove redundant Parallels source checks (#148394) fix(test): avoid timeout failures before descendant readiness (#148410) fix: open browser side panel without creating a dashboard (#148471)
What Problem This Solves
Startup corpus tests explicitly selected the source plugin tree even after their normal prerequisite had built the bundled runtime. That repeatedly sent eligible Doctor contracts through the TypeScript loader during an already expensive migration matrix.
Why This Change Was Made
Both corpus fixtures now use the existing package-root bundled-plugin resolver. This selects the prepared runtime from the same checkout and retains the loader's existing source-only contracts. No production loader, dependency, schema, worker count, timeout, shard, fixture matrix or assertion changes. The CI documentation records the fixture representation.
Production LOC: 0. Tests: +19/-3. Documentation: +4/-0.
User Impact
No product behavior change. CI avoids unnecessary TypeScript loading while retaining the complete operator configuration and prior-release state checks. This is an incremental import-work reduction; it does not establish an eight-minute full-workflow result.
Evidence
a6093ef81fa8e08e659982de0e32c3db750de24f: 58 passed, zero skipped, in original per-file order, including both state repair passes and both complete release matrices. Native suite 546.402s, normal prerequisite build 72.3s, complete command 625.112s on a busy local host. All generation cleanup checks passed. This is coverage evidence, not a normalized before/after timing comparison.Remaining measurement: one warm state row took 71.309s during the busy full run; its cause remains unassigned. Retain that observation for the next timing audit and measure the native CI job before claiming full-suite savings. No tests or assertions were removed to hide it.
Refreshed onto main
b8de9f88996b296ffd7d1cfcfe4d72b2d388636eafter #148425 repaired the inherited duplicate test registration that stopped the first preflight. The three-file patch is byte-identical. Main also updated its Vitest worker-exit patch; the local frozen install adopted it, and refreshed exact-head CI must validate the new dependency bytes. Fresh independent P0–P2 review found no actionable findings.