Skip to content

fix(release): install Bun smoke from candidate payload - #128243

Merged
steipete merged 2 commits into
mainfrom
fix/release-bun-candidate-payload
Aug 23, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/release-bun-candidate-payload

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where release validation's Bun global-install smoke repackaged a mixed candidate/tooling tree and rejected a valid prerelease Code SHA because the tooling checkout lacked the future release changelog section.

Why This Change Was Made

The Bun smoke now consumes the same sealed, SHA-bound candidate tarball already produced for install smoke. It validates the artifact producer tuple, manifest, source archive, candidate SHA, tooling SHA, and version before installing it. This removes the second packaging path and keeps strict changelog enforcement at the candidate package producer. AI-assisted.

User Impact

No runtime behavior changes. Release validation now tests Bun installation against the exact bytes selected for publication rather than a package reconstructed from mixed source and build identities.

Evidence

  • Reproduced the beta failure: candidate-built dist was combined with Tooling-SHA package.json and CHANGELOG.md.
  • Existing focused proof: release-check run 32632164508, Bun job 97178728957, passed with the sealed candidate payload path.
  • node scripts/run-vitest.mjs test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/install-smoke-candidate-payload.test.ts — 17 passed.
  • pnpm check:workflows — passed.
  • Autoreview — clean.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 23, 2026
@steipete
steipete marked this pull request as ready for review August 23, 2026 15:02
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 23, 2026, 11:54 AM ET / 15:54 UTC.

ClawSweeper review

What this changes

The PR makes the Bun global-install release smoke verify and install the sealed candidate package payload instead of reconstructing a package from a Docker image and checkout inputs.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the prior P1 remains. The candidate-payload path is the right owner-boundary repair, but the branch leaves a broader workflow contract test asserting the removed image-provider job name and image environment, so its suite fails.

Priority: P2
Reviewed head: 4a5350105711a5f8dca2ac5bdb389d3c12a4de7c

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The core repair is coherent and its artifact boundary is well covered, but one pre-existing broader contract suite is left stale.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored release-workflow PR is exempt from the external-contributor proof gate; its reported release-check run is supplemental, but the remaining source-proven test failure still blocks merge.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored release-workflow PR is exempt from the external-contributor proof gate; its reported release-check run is supplemental, but the remaining source-proven test failure still blocks merge.
Evidence reviewed 6 items Changed consumer path: The Bun job now depends on the candidate payload, verifies its producer tuple and contents, then passes candidate.tgz to the Bun smoke.
Callee accepts the sealed package: The Bun smoke exits its rebuild/image path when OPENCLAW_BUN_GLOBAL_SMOKE_PACKAGE_TGZ is set, normalizes that file path, and installs that tarball.
Remaining failing contract: This unchanged test still requires the removed image-provider step name and OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE, while the changed workflow now uses the candidate-payload equivalents.
Findings 1 actionable finding [P1] Update the broader Bun workflow contract test
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/test-install-sh-docker.test.ts

Result: FAIL (partial) — step 2 expect_output bun global install smoke: expected terminal output was not visible within 30 seconds: "bun global install smoke"

eeds.preflight.outputs.run_full_install_smoke == 'true'%0A+     runs-on: ubuntu-24.04%0A+     timeout-minutes: 45%0A+     outputs:%0A+       archive_sha256: ${{
 steps.image_artifact.outputs.archive_sha256 }}%0A+       artifact_digest: ${{ steps.image_artifact_upload.outputs.artifact-digest }}%0A+       artifact_id: ${{
 steps.image_artifact_upload.outputs.artifact-id }}%0A+       artifact_name: ${{ steps.image_artifact.outputs.artifact_name }}%0A+       artifact_run_attempt: $
{{ steps.image_artifact.outputs.run_attempt }}%0A+       artifact_run_id: ${{ steps.image_artifact.outputs.run_id }}%0A+       target_sha: ${{ steps.image_artif
act.outputs.target_sha }}%0A+       workflow_sha: ${{ steps.image_artifact.outputs.workflow_sha }}%0A+     env:%0A+       DOCKER_BUILD_SUMMARY: "false"%0A+
  DOCKER_BUILD_RECORD_UPLOAD: "false"%0A+     steps:%0A+       - *trusted_workflow_subdir_checkout_step%0A+       - *trusted_workflow_subdir_identity_step%0A+%0
A+       - name: Set up Blacksmith Docker Builder%0A+         uses: useblacksmith/setup-docker-builder@6ff44f8e5255f9d8aa31ef22f7e57a2d926b7da0 # v1%0A+
 with:%0A+           max-cache-size-mb: 800000%0A+%0A+       - name: Build installer smoke image%0A+         env:%0A+           IMAGE_REF: openclaw-install-smok
e:local%0A+         run: |%0A+           timeout --kill-after=30s 20m docker buildx build \%0A+             --progress=plain \%0A+             --load \%0A+
        -t "$IMAGE_REF" \%0A+             -f ./.release-harness/scripts/docker/install-sh-smoke/Dockerfile \%0A+             ./.release-harness/scripts/docker%0
A+%0A+       - name: Pack installer smoke image artifact%0A+         id: image_artifact%0A+         env:%0A+           IMAGE_REF: openclaw-install-smoke:local%0
A+           TARGET_SHA: ${{ needs.preflight.outputs.target_sha }}%0A+           WORKFLOW_SHA: ${{ steps.workflow.outputs.sha }}%0A+         run: |%0A+
  set -euo pipefail%0A+           artifact_dir="${RUNNER_TEMP}/install-smoke-update-image"%0A+           artifact_name="install-smoke-update-image-${TARGET_SHA}
-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"%0A+           bash .release-harness/scripts/docker/shared-image-artifact.sh \%0A+             pack "$artifact_dir" inst
all-smoke-update "$TARGET_SHA" "$WORKFLOW_SHA" "$IMAGE_REF"%0A+           archive_sha256="$(%0A+             jq -er '.archive.sha256 | select(type == "string" a
nd test("^[a-f0-9]{64}$"))' \%0A+               "$artifact_dir/shared-image-artifact.json"%0A+           )"%0A+           {%0A+             echo "archive_sha256
=$archive_sha256"%0A+             echo "artifact_name=$artifact_name"%0A+             echo "artifact_path=$artifact_dir"%0A+             echo "run_attempt=$GITH
UB_RUN_ATTEMPT"%0A+             echo "run_id=$GITHUB_RUN_ID"%0A+             echo "target_sha=$TARGET_SHA"%0A+             echo "workflow_sha=$WORKFLOW_SHA"%0A+
           } ›› "$GITHUB_OUTPUT"%0A+%0A+       - name: Upload installer smoke image artifact%0A+         id: image_artifact_upload%0A+         uses: actions/upl
oad-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7%0A+         with:%0A+           name: ${{ steps.image_artifact.outputs.artifact_name }}%0A+
 path: ${{ steps.image_artifact.outputs.artifact_path }}%0A+           if-no-files-found: error%0A+           compression-level: 0%0A+           retention-days:
 7%0A+%0A+   installer_smoke_nonroot_image:%0A+     needs: [preflight]%0A+     if: needs.preflight.outputs.run_full_install_smoke == 'true'%0A+     runs-on: ubu
ntu-24.04%0A+     timeout-minutes: 45%0A+     outputs:%0A+       archive_sha256: ${{ steps.image_artifact.outputs.archive_sha256 }}%0A+       artifact_digest: $
{{ steps.image_artifact_upload.outputs.artifact-digest }}%0A+       artifact_id: ${{ steps.image_artifact_upload.outputs.artifact-id }}%0A+       artifact_name:
 ${{ steps.image_artifact.outputs.artifact_name }}%0A+       artifact_run_attempt: ${{ steps.image_artifact.outputs.run_attempt }}%0A+       artifact
… output truncated …

Assertions:

  • FAIL expect_output: bun global install smoke

How this fits together

The reusable install-smoke workflow produces a SHA-bound candidate package and passes it to downstream installation checks. The Bun job verifies the artifact tuple and payload contents before globally installing the exact candidate package.

flowchart LR
  A[Release candidate source] --> B[Sealed candidate payload]
  B --> C[Artifact binding checks]
  C --> D[Payload content verification]
  D --> E[Bun global install smoke]
  E --> F[Release validation result]
Loading

Before merge

  • Update the broader Bun workflow contract test (P1) - The workflow now removes Run Bun global install image-provider smoke and OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE, but test/scripts/test-install-sh-docker.test.ts still requires both at lines 2176 and 2181. The focused command in the PR body omits that suite, so the branch fails its broader contract test until it asserts the candidate-payload path instead.
  • Resolve merge risk (P1) - The changed workflow cannot pass the broader release-smoke contract suite until its image-provider assertions are replaced with candidate-payload assertions.
  • Resolve merge risk (P1) - Production workflow code is net +8 lines; the added binding and payload verification is justified because Bun now installs a cross-job artifact, and no smaller owner boundary can authenticate it before installation.
  • Complete next step (P2) - A single stale static contract test has a mechanical, file-local repair and clear validation path.

Findings

  • [P1] Update the broader Bun workflow contract test — .github/workflows/install-smoke-reusable.yml:1448-1452
Agent review details

Security

None.

PR surface

Tests +35, Config +8. Total +43 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 46 11 +35
Docs 0 0 0 0
Config 1 55 47 +8
Generated 0 0 0 0
Other 0 0 0 0
Total 2 101 58 +43

Review metrics

Metric Value Why it matters
Production versus test LOC production +8, tests +35 The workflow adds candidate-artifact verification while the test changes cover the new consumer path; the remaining broader test must also be updated.

Merge-risk options

Maintainer options:

  1. Repair the stale release-workflow contract test (recommended)
    Replace the old image-provider expectations with the candidate-payload job and tarball assertions, then rerun the affected workflow tests before merge.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Update test/scripts/test-install-sh-docker.test.ts for the candidate-payload Bun smoke and run both focused workflow test suites.

Technical review

Best possible solution:

Retain the sealed candidate-payload design, update the stale broader contract assertions to its new job name and package-tarball environment, then rerun both focused workflow suites.

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

Yes, source-reproducible: test/scripts/test-install-sh-docker.test.ts still asserts two strings removed by the workflow change. The PR's supplied test command omits that suite, so it will fail until those assertions are updated.

Is this the best way to solve the issue?

Yes, with the test repair: consuming the already sealed candidate payload removes the mixed-tree packaging path while retaining artifact provenance checks before installation.

Full review comments:

  • [P1] Update the broader Bun workflow contract test — .github/workflows/install-smoke-reusable.yml:1448-1452
    The workflow now removes Run Bun global install image-provider smoke and OPENCLAW_BUN_GLOBAL_SMOKE_DIST_IMAGE, but test/scripts/test-install-sh-docker.test.ts still requires both at lines 2176 and 2181. The focused command in the PR body omits that suite, so the branch fails its broader contract test until it asserts the candidate-payload path instead.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fd4404d0b618.

Labels

Label justifications:

  • P2: This is a bounded release-validation regression that blocks the affected workflow suite but does not alter runtime user behavior.
  • merge-risk: 🚨 automation: The PR changes release artifact provenance and installation automation, and currently leaves an affected CI contract test failing.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This member-authored release-workflow PR is exempt from the external-contributor proof gate; its reported release-check run is supplemental, but the remaining source-proven test failure still blocks merge.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/test-install-sh-docker.test.ts.
  • [P1] pnpm check:workflows.

What I checked:

Likely related people:

  • Peter Steinberger: Authored the current candidate-payload repair and has recent merged work on the workflow area. (role: recent release-workflow contributor; confidence: high; commits: 4a5350105711, 50595d784e0e; files: .github/workflows/install-smoke-reusable.yml, test/scripts/test-install-sh-docker.test.ts)
  • Vincent Koc: Authored the recent installer-smoke parallelization change that is adjacent to the candidate producer-consumer workflow. (role: recent installer-smoke refactor contributor; confidence: medium; commits: 7dfe406d203b; files: .github/workflows/install-smoke-reusable.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Update test/scripts/test-install-sh-docker.test.ts to assert the candidate-payload Bun smoke rather than the removed image-provider path.
  • Run node scripts/run-vitest.mjs test/scripts/install-smoke-no-push-workflow.test.ts test/scripts/test-install-sh-docker.test.ts and pnpm check:workflows.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-23T15:10:14.716Z sha 4a53501 :: found issues before merge. :: [P1] Update the broader Bun workflow contract test

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof:

Known proof gaps: none. Internal release tooling only; no product changelog entry required.

@steipete
steipete merged commit 6cde399 into main Aug 23, 2026
145 checks passed
@steipete
steipete deleted the fix/release-bun-candidate-payload branch August 23, 2026 16:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 24, 2026
* fix(release): bind Bun smoke to candidate payload

* test(release): align Bun payload workflow contract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant