Repository navigation
refactor: consolidate plugin update tests - #113243
Merged
Merged
Conversation
steipete
force-pushed
the
codex/z-plugins-update-tests
branch
from
July 24, 2026 05:59
a363721 to
dddf378
Compare
Contributor
Author
|
@clawsweeper re-review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
src/plugins/update.test.tsrepeated 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
+750/-1665(net-915); production+0/-0.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 Testboxtbx_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.