Skip to content

test(update): run the published-driver cell on a linked package path - #198489

Merged
fuller-stack-dev merged 6 commits into
openclaw:mainfrom
fuller-stack-dev:feat/update-linked-root-readiness
Nov 14, 2026
Merged

fuller-stack-dev merged 6 commits into
openclaw:mainfrom
fuller-stack-dev:feat/update-linked-root-readiness

Conversation

@fuller-stack-dev

Copy link
Copy Markdown
Member

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=1 makes the published-driver update cell move the installed driver into releases/<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:

  • The incognito scan also covers the directory behind the link. Published updaters follow the link and keep their backups there, so scanning only beside the link would have checked one location instead of two.
  • The installed-tree budget is measured at the link's target, because the budget check refuses a link. The default mode still passes the package path unchanged.
  • The cell records where the package path points before and after the update, including after a failed update. That record is an observation and cannot fail a successful update.

Run it with pnpm test:docker:published-driver-linked-root. The Docker lane matches its published-driver-scoped-restore sibling.

Evidence

Run locally on linux/arm64 with a candidate built from e38fbc495a21a, which is patch-identical to this head before a rebase onto main:

Mode Published updater Result
Linked package path 2026.11.3 PASS, Gateway ready, version and sessions verified
Linked package path 2026.10.9 PASS, Gateway ready, version and sessions verified
Default (control) 2026.11.3 PASS

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 in test/scripts/docker-build-helper.test.ts fail 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.

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.
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling size: S labels Nov 13, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture starts with a real directory at npm/lib/node_modules/openclaw.
  • After: The optional mode links that path to releases/2026.11.3/lib/node_modules/openclaw and checks the update with the existing readiness and session assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has no identified defect; execution confidence is limited to reported local results and incomplete, partly failing reviewed-head CI.
Proof confidence 🦐 gold shrimp (3/6) This changes test tooling and documentation only, so shipped-entry-point proof is not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Maintainers lacked maintained coverage for a published updater encountering the proposed linked package layout.
Reason: The maintainer-authored change provides a distinct compatibility scenario through an existing fixture without changing product behavior or selecting another CI lane.

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
Reviewed head: 5334328b9762018cf577d35bd5baeae9f58a012d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Published-driver update and failure diagnostics keeps the original intent (25972a6: The published-driver cell catches cross-version updater failures missed by same-checkout tests; b66471a preserves public status diagnostics after failed updates.)
  • Incognito artifact inspection keeps the original intent (77bb005: Require incognito content to disappear after restart and remain absent from state and retained package artifacts.)
  • Installed-package budget keeps the original intent (d3942b5: Measure the installed candidate against frozen published-updater limits so oversized packages fail validation before release.)
  • Docker lane and environment forwarding keeps the original intent (3cd9950: The existing scoped-restore mode extends the same published-driver runner for a separate compatibility scenario; this change follows that structure without replacing its behavior.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Docs +14, Config +1, Other +73. Total +88 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 14 0 +14
Config 1 1 0 +1
Generated 0 0 0 0
Other 3 80 7 +73
Total 5 95 7 +88

Preflight source

Source 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

Metric Value Why it matters
Harness environment controls 1 added OPENCLAW_PUBLISHED_DRIVER_LINKED_ROOT selects the optional fixture layout and adds no product configuration setting.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is optional compatibility-test coverage with no shipped runtime change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 6:12 PM ET / 23:12 UTC.

fuller-stack-dev added a commit to fuller-stack-dev/openclaw that referenced this pull request Nov 14, 2026
@fuller-stack-dev
fuller-stack-dev merged commit eb1a21d into openclaw:main Nov 14, 2026
374 of 376 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the feat/update-linked-root-readiness branch November 14, 2026 23:46
fuller-stack-dev added a commit to fuller-stack-dev/openclaw that referenced this pull request Nov 15, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant