Repository navigation
refactor: reuse plugin fixture shell runner - #146920
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, 6:12 AM ET / 10:12 UTC. ClawSweeper reviewWhat this changesThe PR reuses the existing shell runner in nine plugin fixture tests while preserving their cleanup, process-lifecycle, and diagnostic checks. Merge readiness✅ Ready for maintainer review The refactor remains useful and is not present on fetched main or the latest release. All nine substitutions preserve shell execution and assertions; no actionable defect was found. This maintainer-authored PR also remains protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's plugin test harness launches temporary registry fixtures to validate installation tooling. These tests exercise fixture startup failures, child-process cleanup, and bounded diagnostic output. flowchart LR
A[Test scenarios] --> B[Shared shell runner]
C[Environment overrides] --> B
B --> D[Bash fixture scripts]
D --> E[Temporary registry processes]
D --> F[Exit status and diagnostics]
E --> G[Cleanup assertions]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -83. Total -83 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared shell-launch helper while retaining the existing fixture scenarios and their observable assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this refactor reports duplicated test setup rather than a product defect; source inspection confirms the duplicated launch contract. Is this the best way to solve the issue? Yes. Reusing the unchanged local helper removes repetition without adding an abstraction or weakening the existing checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58dce7657690. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
What Problem This Solves
Plugin fixture tests repeat shell-launch setup already provided by their existing test helper.
User Impact
No user-visible change; all 51 test cases and their process-lifecycle, cleanup and diagnostic assertions remain.
Why This Change Was Made
Use the existing
runPluginsSweepShellhelper at nine call sites, removing 83 net test lines. Keep all nine shell programs, ordered environment overrides, working directory, encoding and command arguments unchanged. No helper or production code is added or changed.Evidence
The complete suite passed all 51 cases before and after, with identical names, file order and results. Static comparison verified each shell program and ordered environment overrides; expanding the calls restores the complete original file. The mapped gate passed and independent P2 review found no actionable issues. No overall runtime improvement is claimed.