Skip to content

refactor: consolidate plugin update tests - #113243

Merged
steipete merged 1 commit into
mainfrom
codex/z-plugins-update-tests
Jul 24, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/z-plugins-update-tests

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

src/plugins/update.test.ts repeated large npm, ClawHub, marketplace, Git, and externalized-plugin setup blocks, making the suite harder to scan and increasing maintenance cost for fixture changes.

Why This Change Was Made

This maintainer-commissioned, AI-assisted refactor introduces small colocated builders for npm update fixtures, disabled installs, and externalized plugin bridges, then table-drives only cases with the same execution and assertion shape. Semantically distinct update and failure paths remain separate. No production, config, protocol, schema, snapshot, or changelog files changed.

User Impact

No user-visible behavior changes. Maintainers get the same plugin-update coverage with 915 fewer test lines and clearer per-case failure names.

Evidence

  • LOC: test +750/-1665 (net -915); production +0/-0.
  • Test count: 125 before, 125 after; no fixtures or assertions were intentionally removed.
  • node scripts/run-vitest.mjs src/plugins/update.test.ts — 1 file passed, 125 tests passed.
  • node scripts/check-changed.mjs -- src/plugins/update.test.ts — passed on Blacksmith Testbox tbx_01ky9agd3p1z9ajdyre84ybpnw; Actions run https://github.com/openclaw/openclaw/actions/runs/30070301453.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted --stream-engine-output — clean, no accepted/actionable findings.
  • git diff --check — passed.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete steipete self-assigned this Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 05:54
@steipete
steipete force-pushed the codex/z-plugins-update-tests branch from a363721 to dddf378 Compare July 24, 2026 05:59
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit 418b79f into main Jul 24, 2026
93 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant