Repository navigation
test(update): run the published-driver cell on a linked package path - #198489
fuller-stack-dev merged 6 commits into
Conversation
OPENCLAW_PUBLISHED_DRIVER_LINKED_ROOT=1 moves the installed driver into releases/<version>/ under the prefix and leaves a relative link at the package path before the update. No shipped release produces that layout; it is what a downgrade would leave under the proposed release-directory design, and this mode shows what a published updater does with it. The update, readiness, version, and session assertions are unchanged. The incognito scan also covers the directory behind the link, where such an updater keeps its backups, and the installed-tree budget is measured at the link's target because the budget refuses a link. The cell records where the package path points before and after the update, including after a failed update. Adds the test:docker:published-driver-linked-root script and its Docker lane. No CI workflow selects the lane.
|
🦞👀 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. What this changesThis PR adds an optional Docker update test that places a published installation behind a relative package symlink. Example: Run the published 2026.11.3 updater against a candidate package.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR adds useful compatibility coverage, and source review found no actionable patch defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Docker update fixture consumes a published npm installation, a candidate tarball, and synthetic Gateway state, then produces update assertions and diagnostic artifacts. flowchart TD
A[Package script] --> B[Docker runner]
B --> C[Published driver fixture]
C --> D[Linked package layout]
D --> E[Published updater]
E --> F[Gateway and session assertions]
E --> G[Layout diagnostics]
Technical reviewBest possible solution: Retain the optional linked-root mode within the existing published-driver fixture and preserve its default behavior and assertions. Do we have a high-confidence way to reproduce the issue? No current product bug is claimed; source inspection confirms the new fixture setup, and the body reports Linux ARM64 runs with published 2026.11.3 and 2026.10.9 drivers without attaching raw execution traces. Is this the best way to solve the issue? Extending the existing fixture is the smallest complete approach: it adds the missing installation layout, reuses the update assertions, and adjusts artifact discovery and budget measurement for that layout. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 35d13467091e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +14, Config +1, Other +73. Total +88 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 6:12 PM ET / 23:12 UTC. |
openclaw#197922 merged. The linked-root cell is in review as openclaw#198489.
|
Merged via squash.
|
openclaw#198489 landed on main as eb1a21d; the branch's copy of it (b676afe) now resolves to main's version, leaving only slice 4's owned-prefix and follow-up additions in those five files.
…penclaw#198489) OPENCLAW_PUBLISHED_DRIVER_LINKED_ROOT=1 moves the installed driver into releases/<version>/ under the prefix and leaves a relative link at the package path before the update. No shipped release produces that layout; it is what a downgrade would leave under the proposed release-directory design, and this mode shows what a published updater does with it. The update, readiness, version, and session assertions are unchanged. The incognito scan also covers the directory behind the link, where such an updater keeps its backups, and the installed-tree budget is measured at the link's target because the budget refuses a link. The cell records where the package path points before and after the update, including after a failed update. Adds the test:docker:published-driver-linked-root script and its Docker lane. No CI workflow selects the lane.
Related: #197949
What Problem This Solves
The update design in #197949 proposes keeping each release in its own directory behind a linked package path. Nothing tested what an already-published updater does when it meets that layout, which a downgrade would leave behind.
User Impact
User impact: none. This adds a mode to an existing Docker end-to-end cell, a script to run it, and documentation. No CI workflow selects the new lane, so CI cost does not change.
Why This Change Was Made
OPENCLAW_PUBLISHED_DRIVER_LINKED_ROOT=1makes the published-driver update cell move the installed driver intoreleases/<version>/under the prefix and leave a relative link at the package path before the update. No shipped release produces that layout.The update, readiness, version, and session assertions are unchanged. Three things differ in this mode:
Run it with
pnpm test:docker:published-driver-linked-root. The Docker lane matches itspublished-driver-scoped-restoresibling.Evidence
Run locally on linux/arm64 with a candidate built from
e38fbc495a21a, which is patch-identical to this head before a rebase ontomain:In both linked runs the link was unchanged afterwards and the directory behind it held the new build, with the updater's activation control directory beside it. The incognito scan covered two roots in linked mode, the same count as the default mode.
Checks:
oxfmt --check,oxlint --type-aware,scripts/check-docker-e2e-boundaries.mts, the docs MDX check, and the docs link audit pass. Seven lane and workflow test files pass (324 tests).test/scripts/package-acceptance-workflow.test.ts(18 cases) and one case intest/scripts/docker-build-helper.test.tsfail on the authoring Mac with and without this change.Review: an independent reviewer agent found the incognito scan gap, a layout record that could throw, and three inaccurate doc statements. All are fixed here. No autoreview pass: the helper could not run on the authoring machine.
Gaps: two published updaters, Linux only, one update each. Rollback after a failed update on a linked path, a second update, and Windows are not covered.