Repository navigation
fix(release): install first-hop fixtures through the candidate registry - #137286
Conversation
The first-hop Docker wrapper bypassed the shared package mount owner, so unpublished companion dependencies failed with ETARGET before the negative control could replace the installed package. Reuse the registry entrypoint for the entire lane, including the future fixture's candidate dependencies. Consolidate update execution to preserve exits and print failure output. Proof: built and packed frozen caa2719. The unchanged lane retained 2026.8.2 after ETARGET for @openclaw/[email protected]; the fix passed the negative control and both positive hops in Docker. A missing-registry probe exposed ETARGET in the main lane log. The wiring regression failed before the fix; 461 focused tests, check:changed, and shellcheck passed. Local autoreview through P2 found no actionable issues. Related: #136395; Full Release Validation run 33728228813.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 8:00 AM ET / 12:00 UTC. ClawSweeper reviewWhat this changesThe PR routes the first-hop updater Docker lane through the candidate package registry, improves failure diagnostics, and adds a regression test for the registry mount. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. The branch correctly restores the first-hop lane’s use of the shared candidate-registry mount and adds a focused boundary assertion; no introduced correctness or security defect was found. This maintainer-authored, protected PR remains for normal exact-head CI completion. Priority: P2 Review scores
Verification
How this fits togetherRelease acceptance runs a packaged updater in Docker against fixture packages. The wrapper supplies the candidate package and registry, then the updater installs fixtures and records service, package, and transaction results. flowchart LR
A[Release candidate package] --> B[First-hop Docker wrapper]
B --> C[Candidate registry mount]
C --> D[Packaged updater]
D --> E[Negative and upgrade fixtures]
E --> F[Release acceptance results]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +61, Other 0. Total +61 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared registry-mounted launch path and land it once the exact-head checks are green. Do we have a high-confidence way to reproduce the issue? Yes. The current-main wrapper omits the shared registry mount, and the branch supplies a controlled Docker-boundary regression test; this read-only review did not execute the destructive package-update lane. Is this the best way to solve the issue? Yes. Reusing the existing package-mount owner keeps candidate tarball and registry wiring canonical rather than adding lane-local registry logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a590cc31e12f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…36761-session-mode-local-20260903 * commit '58187248c8cafd7b8cfbba3de8d001762fb08b48': improve(testing): add watchOS Gateway upgrade survivor (#137203) improve(ui): structure Devices rows with an actions menu and a facts panel (#137084) test(cli): reuse canonical pairing call guard (#137210) fix(sessions): prevent gateway stalls during large session cleanup (#126035) fix(qa): resolve Slack runtime dependency (#137283) fix: fence Session Observer catalog requests (#137243) fix(memory): make watcher pressure guidance actionable (#137181) test(entry): type the respawn exit mock directly (#137258) fix(release): install first-hop fixtures through the candidate registry (#137286) # Conflicts: # scripts/e2e/lib/upgrade-survivor/assertions.mjs
…ry (openclaw#137286) The first-hop Docker wrapper bypassed the shared package mount owner, so unpublished companion dependencies failed with ETARGET before the negative control could replace the installed package. Reuse the registry entrypoint for the entire lane, including the future fixture's candidate dependencies. Consolidate update execution to preserve exits and print failure output. Proof: built and packed frozen caa2719. The unchanged lane retained 2026.8.2 after ETARGET for @openclaw/[email protected]; the fix passed the negative control and both positive hops in Docker. A missing-registry probe exposed ETARGET in the main lane log. The wiring regression failed before the fix; 461 focused tests, check:changed, and shellcheck passed. Local autoreview through P2 found no actionable issues. Related: openclaw#136395; Full Release Validation run 33728228813.
What Problem This Solves
Resolves a problem where stable release validation stops before exercising the packaged updater's first hop when the candidate's companion packages are not yet published. In Full Release Validation 33728228813, the negative fixture install failed with npm
ETARGETfor@openclaw/[email protected], leaving the published[email protected]installed. The lane printed only the subsequent build-info mismatch.Related: #136395 (the packaged updater bridge and first-hop compatibility lane).
Why This Change Was Made
The first-hop Docker wrapper bypassed the shared package-mount owner, so it never received the verified candidate registry entrypoint. It now uses
docker_e2e_package_mount_args, keeping the existing registry alive across the negative, repaired, and fake-future fixture updates. Root packages still come from their explicit fixture tarballs; all three resolve companion versions through the candidate registry, including the future fixture's unchanged dependency versions.The lane uses one update runner to preserve command/exit artifacts and print captured stdout/stderr on nonzero exit, including the expected negative control. Baseline npm install failures also print their log. No product code, candidate bytes, or configuration/environment surface changes. The two shell files are net-neutral: 24 lines added, 24 removed; tests add 61 net lines.
User Impact
Release maintainers can validate unpublished stable candidates through all three first-hop stages and see npm/update diagnostics directly in a failing lane log. Installed-user update behavior is unchanged.
Evidence
Frozen candidate:
caa2719de7f4c6229249bee632de32fafa58a429(2026.9.1, including the bridge chunks). Built in a second detached worktree withpnpm install && pnpm build && OPENCLAW_PREPACK_PREPARED=1 pnpm pack. Used the existingprepareNpmPackageBundle()producer to pack the core packages and the registry artifact creator'spreparedBundleDirinput; the root tarball was reused byte-for-byte. Local execution used OrbStack Linux/arm64 and the repository'sbareDocker E2E image.2026.8.2, and capturedETARGET: No matching version found for @openclaw/[email protected]only in its update artifact.2026.9.1and exited 1 for the expected missingshared-Y6bNiw2w.js; the repaired hop exited 0 at2026.9.1, and the second hop exited 0 at2026.9.99-first-hop.0. Both positive hops replaced the managed-service process and recorded active service state; all three stages left zero transaction residue. All installed build records retained the frozen commit SHA.ETARGETmessage in the main lane log before the build-info diff.pnpm test test/scripts/update-first-hop-package-fixtures.test.ts test/scripts/docker-e2e-plan.test.ts test/scripts/package-acceptance-workflow.test.ts test/scripts/prepublish-plugin-registry-shell.test.ts— 461 tests passed across 4 files. The registry helper suite includes real npm installs and registry cleanup.pnpm check:changed— passed.shellcheck -x -e SC2016 scripts/e2e/update-first-hop-compat-docker.sh scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh— passed; SC2016 is the existing embedded-JavaScript literal warning.git diff --check— passed.--mode branch --base origin/main --max-priority P2clean.Lane command, with
FROZEN_WORKTREEpointing to the detached candidate checkout andREGISTRY_DIRto its verified registry artifact:This is local lane proof. The hosted Full Release Validation jobs have not been rerun, and this PR does not publish or modify the frozen release candidate.