Repository navigation
fix(scripts): preserve same-version installer smoke candidates - #159490
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 27, 2026, 4:00 AM ET / 08:00 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch packs the published installer-smoke baseline separately and tests that fresh-install and update URLs serve candidate bytes when both packages have the same version. Merge readiness✅ Ready for maintainer review Keep this PR open for normal maintainer review. Current main still has the same-version archive collision, while the proposed fix has direct boundary coverage and no actionable review finding. The linked script refactor does not contain this repair. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s installer smoke wrapper prepares candidate and published baseline packages, serves them over HTTP, and passes their URLs to Docker install and update checks. The change affects which archive each check receives, not installed-product behavior. flowchart LR
A[Candidate package] --> C[Installer smoke wrapper]
B[Published baseline] --> C
C --> D[Separate archive locations]
D --> E[HTTP package URLs]
E --> F[Docker install checks]
F --> G[Smoke results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +122, Other +4. Total +126 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep candidate and baseline archives in separate wrapper-owned locations and verify their identities at the served-URL boundary. Do we have a high-confidence way to reproduce the issue? Yes. Current main packs same-named candidate and baseline archives into one directory, and the PR reports a before/after wrapper regression; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Separating the baseline at its pack destination fixes the collision at the existing wrapper owner, and the regression checks the bytes delivered through the wrapper’s URLs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9ae6e1853062. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
What Problem This Solves
Installer smoke could pass without testing the candidate when its version matched the published baseline: both npm packs used the same filename and directory, so the baseline overwrote the candidate.
User Impact
Release maintainers can trust that fresh-install and update smoke paths consume the selected candidate even when the baseline has the same version. No installed-product behavior, CLI options, budgets, or publication behavior changes.
Why This Change Was Made
Pack the baseline in a dedicated subdirectory and prefix its served URL only after the existing opaque npm-filename validation. Candidate packaging, artifact guards, audit output and installer paths retain their existing owners.
This defect was found while validating #159199. The regression executes the full shell wrapper with synthetic npm and Docker edges, downloads its actual HTTP-served bytes, and verifies that fresh/update receive the candidate while baseline receives the published package. It synchronizes on listener readiness without adding test sleeps or polling.
Evidence
On Blacksmith Testbox
tbx_01m3grs2shvceyfbz31z6xqfvs, the regression fails on original source because fresh/update receive baseline bytes, then passes with the fix. All 122 installer-smoke tests pass (15.448s wall withpnpm test test/scripts/test-install-sh-docker.test.ts --maxWorkers=1; new case 0.580s), and all five candidate-payload tests pass (2.139s).node scripts/check-changed.mjs --base 168ebc5b67080909f825858d16308a94278c5342 --timedpassed in 247.179s;pnpm check:workflowspassed in 20.571s. Independent Codex review is scoped-clean through P2. No boundary import changes.pnpm buildpassed in 395.700s; canonical package construction and tarball integrity passed in 58.927s. Exact-head hosted CI passed forcd0e4c56fba07a82606c6d31e5eb986cb49f4c5c, includingopenclaw/ci-gate; its full 122-test installer file took 16.652s. ClawSweeper found no code/security defect and marked this head ready for maintainer review.Real artifact proof and separate Node shutdown failure
The real same-version smoke proved distinct HTTP delivery: the 99,025,905-byte candidate matched the canonical artifact SHA-256
ae31c83e174b0b495b01353c6ac6c446824465f0fe2960294a35a2f0bcec99fb; the 95,336,387-byte baseline matched npm's published SHA-512 integrity. URLs were/openclaw-2026.9.6.tgzand/baseline/openclaw-2026.9.6.tgz. Fresh candidate installation, CLI/AI-runtime checks, the published updater's package swap, and updated-version verification passed.The complete smoke did not pass: it reached the unchanged 2,700s command limit at post-update
openclaw --helpand exited 137 (2,768.520s total). Native debugging isolated a Node 24.20.0 shutdown deadlock, after JavaScript requested process exit:This is the upstream Node shutdown deadlock already documented by
docs/reference/test/local.mdand mitigated in the existing test-only Node argument owner. The stalled process had no active package/SQLite descriptors or child processes. This PR changes only archive isolation, not Node execution or CLI shutdown. Its boundary regression, file suites, changed checks, build, exact-head CI, and reviews are green; the failed extended smoke is retained as a separate runtime limitation, not claimed as passing proof. No retries, weakened assertions, larger timeout, new Node flags, or runtime-version changes were applied. Runtime mitigation outside this fix needs a separate maintainer decision.Proof provider: Blacksmith Testbox, lease
tbx_01m3grs2shvceyfbz31z6xqfvs, lease workflow. The wrapper returned exit 1 for the extended smoke, with all preceding gates recorded separately. This PR is ready for maintainer landing under the repository's bounded test-failure policy; no merge requested.