Repository navigation
perf(test): consolidate channel registry coverage - #155014
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. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 7:11 PM ET / 23:11 UTC (Revision 5). ClawSweeper reviewWhat this changesConsolidates channel-registry tests into the existing suite and updates test routing and cache warming to avoid a separate test process. Merge readiness✅ Ready for maintainer review The consolidation remains useful and is absent from current main. No actionable defects remain; the earlier cache-seed finding is resolved, and the protected maintainer label precludes cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s channel registry supplies registered plugins to channel callers. This change affects the test suites and CI cache preparation that validate registry ordering and refresh behavior. flowchart LR
A[Plugin fixtures] --> B[Registry activation]
B --> C[Ordering and cached lookups]
C --> D[Consolidated registry tests]
E[Test routing] --> D
F[CI cache preparation] --> G[Retained loader contract]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -45, Other 0. Total -45 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep registry behavior coverage in its existing owner suite and use a retained contract test for CI cache preparation. Do we have a high-confidence way to reproduce the issue? Not applicable to a product bug: this is test consolidation with recorded before/after command measurements. No tests were executed during this read-only review. Is this the best way to solve the issue? Yes. Both meaningful assertions remain at the real registry boundary, while the duplicate suite and its routing entry are removed together. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3cab8df827e4. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
95f2f58 to
e1e9aa3
Compare
|
Merged via squash.
|
* commit '7d7f977ccfc1ac177526232e4f4960febd010015': (91 commits) test: avoid unused target setup in package profile fixtures (#155972) fix(worktrees): batch snapshot metadata reads test(plugin-state): distinguish borrowed and foreign lifecycle owners refactor(agents): share external harness session and attempt machinery (#152181) chore(i18n): refresh native locales (#156006) chore(test): retain Doctor fixture settlement diagnostics (#155944) perf(codex): reuse unchanged inference request bytes (#155987) perf(test): prepare snapshot ownership subprocess imports (#155973) perf(test): consolidate channel registry coverage (#155014) fix(runtime): preserve Node worker dependencies and cleanup diagnostics (#155292) perf(test): prepare worktree GC child runtime (#155928) fix(ui): open browser cards after delayed panel renders (#153253) fix(update): retain the running updater by hard link instead of copying the package (#155977) feat(decisions): add explicit evaluation and Labs opt-in foundation (#155134) fix(state): preserve lifecycle custody across worker dispatch improve: reuse shared tooling fixtures and defer legacy updater proof (#155731) improve(ui): reduce real-Gateway test preparation (#155979) perf(state): move session RPC SQL off the Gateway main thread (#155740) docs(freebsd): explain native Codex runtime limits (#155980) fix(qa): count Code Mode nested tool activity as transcript tool evidence (#155976) ...
What Problem This Solves
Two channel-registry behavior cases start a separate contract process and load unrelated plugin code even though the existing registry suite exercises the same owner.
User Impact
There is no user-visible behavior change. All eleven cases remain, including configured ordering and same-object registry reactivation, with one test process instead of two.
Why This Change Was Made
Move both meaningful assertions into the existing registry suite and reuse its fixtures. Remove the obsolete contract file and its exact routing entry, and point the hosted transform-cache warmup at the retained loader contract. The production registry and public exports are unchanged.
The refresh onto main
8e185919954ff6ce129ba7450a63c549117e04d1keeps the exact original four-file patch. The landed base64 memory-accounting fix0d70f845and approval readiness/settlement fixes are inherited from main rather than duplicated here. The canonical wrapper inventory repair3a4bbc68is also present.Earlier PR CI at head
95f2f585failed the Bun shredded-base64 memory guard and approval-polling cases. Their owner repairs now come from main. The natural historical Bun accounting event remains unreproduced; its retained controlled accounting counterfactual is separate evidence.Evidence
The retained natural ABBA comparison used Blacksmith Testbox run 35604847032, pinned main
5b71ab4fc0d8, and preserved all eleven cases:Mean command time fell from 19.041 s to 2.730 s (85.7%); comparison with warm A2 still saves 12.8–14.1 s. Mean peak RSS fell from about 2,680 MiB to 471 MiB. Runner receipts confirm two processes become one. These are historical focused-command measurements, not a fresh timing claim for current main or a whole-suite saving.
The original 62 owner/sibling cases, complete selected checks, and independent P2 review passed. Sorting and same-object-reactivation counterfactuals each failed only their intended assertion; the restored eleven cases passed. An early custom diagnostic reporter mishandled excluded cases, so the final controls used stock JSON reporting. The three consolidation artifacts and six relevant owner/fixture files remain byte-identical to that proof.
The cache-seed repair separately reproduced the missing-file failure and passed with the retained seed. Blacksmith Testbox run 35638349548 passed the 464 then-current planner/runner/cache cases, actual warm collection, selected checks, and P2 review. That historical source had seven groups and twelve seed paths. Current main has seven groups and seventeen paths; this refresh preserves the current inventory and no-build policy.
Current-source validation completed in Blacksmith Testbox run 35781182408:
max-lineswarning insrc/cron/service/timer.test.tsis inherited unchanged from the base; no suppression or baseline edit was made.The first refresh validation attempt passed eight loader-contract and one registry-contract cases, then the intentional multi-invocation JSON guard rejected the plugin configuration's inline project before any plugin or registry target case ran. The continuation used supported single-configuration invocations and reused those nine successful contract observations without repeating them. Their complete verbose log is retained, but the first attempt's nested native report set was not archived; that evidence limitation remains explicit. Later capture is recursive, and the continuation's native single-invocation reports are complete.
Source and archive checksums were verified, and both leases are stopped. Existing memory-ownership and approval stress proof remains qualified and was not duplicated. Native landing gates remain required.
Published-head CI run 35786711333 passed for
e1e9aa3e1222d0012b94baf0b8c3c6d6373743ea: 83 successful jobs and 18 intentional skips, with no failed jobs. The run took 15 minutes 19 seconds from creation to final job completion; its longest job took 829 seconds. These are current CI costs, not an isolated registry-file measurement or a new before/after comparison. The tested mergee8cafb989c1c1031262ff495c663de35e830204falso ran all 11 registry cases in the build-artifacts job: 0.016 seconds summed rounded case durations. That excludes collection and fixture overhead; no isolated file wall was emitted. The standalone 3.226-second measurement above remains the complete file-command cost.