Skip to content

fix(release): run ClawHub prepublish fixture from isolated cwd - #120692

Merged
vincentkoc merged 1 commit into
mainfrom
fix/clawhub-fixture-lazy-deps
Aug 8, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/clawhub-fixture-lazy-deps

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where plugin prerelease survivor validation could fail before serving or asserting prepublish artifacts when the fixture script ran from an isolated working directory. The script eagerly resolved optional package-building dependencies even for modes that only use Node built-ins.

Why This Change Was Made

The fixture now loads tar only while building npm-pack artifacts and loads jszip only for the regular fixture server. Regression coverage launches both prepublish-artifacts and assert-prepublish-requests from an empty temporary working directory.

User Impact

Release validation can run the mounted ClawHub prepublish fixture outside a package checkout without requiring fixture-only npm dependencies in that working directory.

Evidence

  • node --check scripts/e2e/lib/clawhub-fixture-server.cjs
  • node scripts/run-vitest.mjs test/scripts/clawhub-fixture-server.test.ts test/scripts/plugin-prerelease-test-plan.test.ts (16/16 passed)
  • ./node_modules/.bin/oxfmt --check scripts/e2e/lib/clawhub-fixture-server.cjs test/scripts/clawhub-fixture-server.test.ts
  • node scripts/report-test-temp-creations.mjs --base origin/main --head HEAD
  • git diff --check
  • Autoreview: clean, no accepted/actionable findings
  • Production harness: +2/-2 (net 0); tests: +23/-12 (net +11)

AI-assisted; the scoped implementation and validation were reviewed by the maintainer.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels Aug 8, 2026
@vincentkoc vincentkoc self-assigned this Aug 8, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc marked this pull request as ready for review August 8, 2026 20:23
@vincentkoc
vincentkoc force-pushed the fix/clawhub-fixture-lazy-deps branch from 82962c4 to cf92741 Compare August 8, 2026 20:27
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc merged commit e455caf into main Aug 8, 2026
103 of 105 checks passed
@vincentkoc
vincentkoc deleted the fix/clawhub-fixture-lazy-deps branch August 8, 2026 20:36
@vincentkoc

Copy link
Copy Markdown
Member 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 scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant