Repository navigation
refactor(test): reuse CLI plugin fixture writer - #147186
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 13, 2026, 1:04 PM ET / 17:04 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR shares the writer for local and registry CLI plugin test fixtures while preserving their arguments, validation, and generated files. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, bounded cleanup for the active test-audit campaign. Current main still contains the duplication, and review found no introduced correctness or security defect. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s end-to-end test tooling generates small plugin packages for installation and update scenarios. These fixtures provide CLI commands and dependencies that downstream tests exercise. flowchart TD
A[E2E scenario arguments] --> B[Fixture command dispatcher]
B --> C[Local dependency command]
B --> D[Registry dependency command]
C --> E[Shared plugin writer]
D --> E
E --> F[Plugin package and entrypoint]
F --> G[Install and update checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther -24. Total -24 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one fixture writer with explicit local and registry dependency selection while retaining both established command entrypoints. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving fixture refactor, not a reported runtime defect; no tests were executed during this read-only review. Is this the best way to solve the issue? Yes: reusing the existing writer removes duplicate generation logic while preserving the command dispatcher, validation order, dependency modes, and output content. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8e854bc3c801. LabelsLabel 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.
|
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) refactor: share streaming media tail boundary update (#146989) refactor(tui): classify resume candidates once (#146983) improve: skip unused toast dismissal work (#147196) fix(linux): recover saved remote connections without replacing active sessions (#146047) fix: doctor stays silent when Windows state dir is under OneDrive (#123720) feat: announce successful Daybreak retries (#147146) feat(code-mode): reuse results across code cells (#147154) refactor(test): reuse CLI plugin fixture writer (#147186) test: skip unused compiler setup in routing fixtures (#147194) test: reuse LINE webhook runtime fixture (#146710) fix(code-mode): check automation and process result types (#147143) ...
Related: #139428
What Problem This Solves
The local and registry CLI plugin fixtures duplicate the same package and entrypoint writer.
User Impact
No user-visible change. Both fixture commands keep their arguments, validation, and generated content.
Why This Change Was Made
The registry fixture now delegates to the existing writer with its registry dependency. The local dependency remains the default, and only that path creates the local dependency files. This removes 24 net lines of test support without changing tests or production code.
Evidence
No full-suite, live-service, or performance claim.