Skip to content

fix(release): drop missing bundled runtime deps pack entry - #80117

Merged
steipete merged 5 commits into
mainfrom
maint/drop-missing-runtime-deps-pack-entry
May 10, 2026
Merged

steipete merged 5 commits into
mainfrom
maint/drop-missing-runtime-deps-pack-entry

Conversation

@steipete

@steipete steipete commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the release packaging regression from #74430. That PR added scripts/lib/bundled-runtime-deps-install.mjs to both scripts/release-check.ts required pack paths and package.json#files, but the script does not exist in the repo and is not generated by build. The release/package gate therefore required an impossible npm pack entry.

This removes the dead path from:

  • package.json package files
  • scripts/release-check.ts required pack paths
  • test/release-check.test.ts expected release-check paths

Verification

  • pnpm test test/release-check.test.ts
  • pnpm exec oxfmt --check --threads=1 package.json scripts/release-check.ts test/release-check.test.ts
  • package-files existence guard over non-glob package.json#files: package files entries exist
  • Crabbox/Testbox tbx_01kr87j7wet04hw8v90htssege: env CI=1 NODE_OPTIONS=--max-old-space-size=4096 pnpm build && pnpm ui:build && pnpm release:check

Real behavior proof

  • Behavior or issue addressed: release packaging required scripts/lib/bundled-runtime-deps-install.mjs, but that file does not exist and is not generated, so npm pack validation could never satisfy the new required path.
  • Real environment tested: Blacksmith Testbox Linux worker on pushed branch maint/drop-missing-runtime-deps-pack-entry.
  • Exact command: env CI=1 NODE_OPTIONS=--max-old-space-size=4096 pnpm build && pnpm ui:build && pnpm release:check.
  • Evidence after fix: release-check: npm pack contents and bundled channel entrypoints look OK.
  • Testbox run: https://github.com/openclaw/openclaw/actions/runs/25621339038

@steipete
steipete requested a review from a team as a code owner May 10, 2026 05:18
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS maintainer Maintainer-authored PR labels May 10, 2026
@clawsweeper

clawsweeper Bot commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Summary
The PR removes the nonexistent scripts/lib/bundled-runtime-deps-install.mjs from package and release-check pack expectations, updates matching tests, and refreshes the generated config baseline hash file.

Reproducibility: yes. from source inspection: current main lists and requires scripts/lib/bundled-runtime-deps-install.mjs while that path is absent. I did not run broad pnpm release:check in this read-only review.

Real behavior proof
Sufficient (terminal): The PR body includes copied terminal output from a real local checkout after the patch for the targeted release-check test, formatter check, and package-files existence guard.

Next step before merge
No repair lane is needed because the branch already contains the focused fix and sufficient real proof; the protected label and release-packaging surface need maintainer review plus release-gate validation.

Security
Cleared: The diff removes a nonexistent packaged-file requirement and does not add code execution, dependencies, workflow permissions, or secret handling.

Review details

Best possible solution:

Merge the focused deletion through the normal maintainer release gate so package validation no longer expects an absent helper.

Do we have a high-confidence way to reproduce the issue?

Yes, from source inspection: current main lists and requires scripts/lib/bundled-runtime-deps-install.mjs while that path is absent. I did not run broad pnpm release:check in this read-only review.

Is this the best way to solve the issue?

Yes. Removing the dead path from the package manifest, release-check required-path list, and matching tests is the narrow maintainable fix because the active postinstall path is scripts/postinstall-bundled-plugins.mjs.

Acceptance criteria:

  • pnpm test test/release-check.test.ts
  • pnpm exec oxfmt --check --threads=1 package.json scripts/release-check.ts test/release-check.test.ts
  • pnpm config:docs:check
  • pnpm release:check

What I checked:

Likely related people:

  • steipete: Recent current-main release-prep history touched package.json and the generated config baseline hash file involved in this PR, and this PR is on the same release-packaging surface. (role: recent release-prep contributor; confidence: high; commits: 9243b575edad; files: package.json, docs/.generated/config-baseline.sha256)
  • samzong: The merged upload-archive PR identified in the body touched the package/release-check/test files and its discussion described the packed tarball/runtime-deps packaging problem that this PR narrows. (role: related feature contributor; confidence: medium; commits: d832ad214ce7; files: package.json, scripts/release-check.ts, test/release-check.test.ts)

Remaining risk / open question:

  • The full pnpm release:check package gate was not run in this read-only review and should remain part of maintainer merge/release validation.
  • Because the PR also changes docs/.generated/config-baseline.sha256, pnpm config:docs:check or equivalent CI should confirm the generated hash drift is intentional.

Codex review notes: model gpt-5.5, reasoning high; reviewed against d580ec474cc9.

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 10, 2026
@steipete
steipete force-pushed the maint/drop-missing-runtime-deps-pack-entry branch from 8c6e8aa to a1793e4 Compare May 10, 2026 05:29
@steipete
steipete force-pushed the maint/drop-missing-runtime-deps-pack-entry branch from a1793e4 to d7394d3 Compare May 10, 2026 05:40
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label May 10, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label May 10, 2026
@steipete
steipete merged commit 328952c into main May 10, 2026
95 of 102 checks passed
@steipete
steipete deleted the maint/drop-missing-runtime-deps-pack-entry branch May 10, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR proof: sufficient ClawSweeper judged the real behavior proof convincing. scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant