Skip to content

refactor: reuse plugin fixture shell runner - #146920

Merged
steipete merged 1 commit into
mainfrom
codex/plugin-assertion-shell-fixtures
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/plugin-assertion-shell-fixtures

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 runPluginsSweepShell helper 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.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 10:05
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:12 AM ET / 10:12 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: a4f2d903db8be8fc56c2e718202e40cdf88aa17e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with reported before/after validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored test refactor changes no production owner or authority boundary; the reported before/after suite results support the unchanged fixture behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored test refactor changes no production owner or authority boundary; the reported before/after suite results support the unchanged fixture behavior.
Evidence reviewed 5 items Verified introduced scope: The complete merge-base-to-head diff contains nine shell-runner substitutions, preserving shell strings, environment overrides, and surrounding assertions. The supplied verified test merge also changes only this test file.
Existing helper preserves launch semantics: The unchanged helper invokes /bin/bash with -c and the supplied script, uses process.cwd() and UTF-8 output, and spreads environment overrides after process.env, matching the replaced launch options.
Main and release necessity check: The test file has identical blob 62cfb48426e643d3f2368b7da29e253056d503f4 at the merge base, fetched main, and supplied v2026.9.4 release commit. The PR has blob 78be16b0b4b027f2c411321ff605d69ddd1170f4, so this cleanup remains distinct.
Findings None None.
Security None None.

How this fits together

OpenClaw'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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -83. Total -83 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 115 198 -83
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 115 198 -83

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a behavior-preserving test cleanup with no production or user-facing change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored test refactor changes no production owner or authority boundary; the reported before/after suite results support the unchanged fixture behavior.

Label justifications:

  • P3: This is a behavior-preserving test cleanup with no production or user-facing change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored test refactor changes no production owner or authority boundary; the reported before/after suite results support the unchanged fixture behavior.

Evidence

What I checked:

  • Verified introduced scope: The complete merge-base-to-head diff contains nine shell-runner substitutions, preserving shell strings, environment overrides, and surrounding assertions. The supplied verified test merge also changes only this test file. (test/scripts/plugins-assertions.test.ts:526, a4f2d903db8b)
  • Existing helper preserves launch semantics: The unchanged helper invokes /bin/bash with -c and the supplied script, uses process.cwd() and UTF-8 output, and spreads environment overrides after process.env, matching the replaced launch options. (test/scripts/plugins-assertions.test.ts:144, 58dce7657690)
  • Main and release necessity check: The test file has identical blob 62cfb48426e643d3f2368b7da29e253056d503f4 at the merge base, fetched main, and supplied v2026.9.4 release commit. The PR has blob 78be16b0b4b027f2c411321ff605d69ddd1170f4, so this cleanup remains distinct. (test/scripts/plugins-assertions.test.ts, 58dce7657690)
  • Validation evidence: The complete supplied PR body reports 51 passing cases before and after, unchanged names/order/results, static equivalence checks, and a passing mapped gate. These are author-reported results; this read-only review did not execute tests. The reviewer-run whitespace check passed. (test/scripts/plugins-assertions.test.ts, a4f2d903db8b)
  • Area-history routing: Current-main file history identifies recent work by Peter Steinberger, Dallin Romney, and Vincent Koc. Deeper symbol history and blame encountered unavailable historical blobs, so no source-line introduction attribution is asserted. (test/scripts/plugins-assertions.test.ts, 58dce7657690)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit f3bdcc1 into main Sep 13, 2026
126 checks passed
@steipete
steipete deleted the codex/plugin-assertion-shell-fixtures branch September 13, 2026 10:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant