Repository navigation
refactor(test): share plugin fixture server shims - #147225
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:58 PM ET / 17:58 UTC (Revision 3). ClawSweeper reviewWhat this changesShares the plugin cleanup tests’ fixture-server setup while preserving normal shutdown and TERM-resistant process scenarios. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, behavior-preserving cleanup in the active test-audit campaign. No actionable correctness or security findings remain, and current main still contains the duplication. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s plugin test tooling starts temporary registry servers and cleans them up after failed readiness checks. These test fixtures simulate cooperative and stubborn processes so the tests can verify shutdown and caller cleanup. flowchart TD
A[Plugin cleanup tests] --> B[Shared fixture setup]
B --> C{TERM behavior}
C --> D[Exit normally]
C --> E[Ignore TERM]
D --> F[Registry cleanup tooling]
E --> F
F --> G[Assert process exit and caller cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -14. Total -14 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one private fixture writer with two explicit TERM actions and preserve the existing cleanup assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test-support consolidation, not a reported runtime defect; source inspection confirms both fixture variants are preserved. Is this the best way to solve the issue? Yes: a defaulted literal parameter removes the duplication without adding an export, production seam, or competing cleanup owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 201f11afefdb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
fc8a7aa to
0a35e87
Compare
|
Merged via squash.
|
* commit '2d87daf04b78992382299d552f15ac84a86a23ed': (1815 commits) fix(ui): distinguish tool activity with semantic icons (#147207) fix(linux): recover completed Quick Chat replies without resending (#146048) feat(desktop): unify Tauri title bar and window controls (#147097) refactor(test): share plugin fixture server shims (#147225) perf(gateway): defer worker workspace execution imports (#143496) fix(gateway): post-ack webhook work fails with "Async work scope is closed" (#144801) refactor(scripts): centralize upgrade survivor version floors (#146975) fix(ci): check publication registries before FRV fanout (#147184) fix(qa): align system-agent delegation with channel contracts (#145905) improve: reduce repeated chat message identity work (#147210) fix(channels): remove stale pre-tool previews from Slack and Telegram (#147106) 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) ...
What Problem This Solves
The plugin cleanup tests maintain two copies of the same fixture-server setup.
User Impact
No user-visible or production runtime change. All test cases and assertions remain.
Why This Change Was Made
Use one private helper with a defaulted TERM action, preserving both normal shutdown and stubborn-process cleanup. This removes 14 lines of duplicated test support.
Evidence
extensions/workboard/src/store.test.ts:4506. This PR does not change that file; the failed attempt remains part of the record.Related: #139428