Skip to content

fix(ci): updater launcher tests fail after early Node refusal - #180931

Merged
roboclaw-bot merged 1 commit into
mainfrom
ci939b-update-launcher-20261022
Oct 22, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
ci939b-update-launcher-20261022

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes fresh-Doctor CI tests that still expect package staging and runtime recovery after registry admission has already rejected the service Node version.

User Impact

No runtime behavior change. The tests now protect the existing early refusal for both sealed and writable service launchers.

Why This Change Was Made

The registry preflight added in #180769 intentionally refuses incompatible targets before staging or provisioning. Keep both launcher-capability cases at that boundary: assert the precise refusal, no package install, no runtime recovery or service stop, and unchanged launcher and installed package. Remove the unreachable replacement-executable fixture rather than bypassing the preflight or restoring the old behavior.

Requested by @vincentkoc.

Work sessions

Evidence

  • Scheduled main 39832966696, attempt 1, job 120014011852, head f113dde017ecb6dcf91af45e0bf3a4057f867d90: sealed reason-code mismatch and writable early exit. The unchanged two cases reproduce locally: 2 failed / 11 filtered, 70.55 s wall including cold compiler preparation.
  • pnpm test src/cli/update-cli.fresh-doctor.test.ts --maxWorkers=1: 13/13 pass, 67.20 s wall / 62.50 s Vitest. This existing CLI/package/health composition is slow; no process boots, timers, retries, skips, or cases were added.
  • Existing registry engine-preflight suite: 3/3 pass, 46.37 s wall including 33.67 s cold compiler preparation; individual cases 300/43/42 ms.
  • Scoped CLI-update test types pass (5.92 s), typed lint has zero errors/warnings (66.57 s including boundary declarations), format (0.11 s) and diff check pass. Fresh canonical independent P0–P2 review found no actionable defects; reviewer did not rerun tests.
  • Local orchestration: Node 26.12.1; tests explicitly select the repository-pinned Bun 1.4.4 fork. This is not an exact replay of the original hosted Node/matrix/order. Hosted per-file CI seconds are not isolated; current-head PR CI remains the broad gate.

One test file, +15/−45 lines; zero production changes. Separate node-runtime and target-schema fixture failures are not claimed fixed.

Retain sealed and writable service coverage at registry admission, before staging or runtime recovery. Keep the incompatible-runtime refusal and no-mutation assertions; remove the obsolete replacement executable setup.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 22, 2026 19:27
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: S labels Oct 22, 2026
@roboclaw-bot roboclaw-bot self-assigned this Oct 22, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 22, 2026 19:32
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@roboclaw-bot
roboclaw-bot merged commit 2872d16 into main Oct 22, 2026
181 checks passed
@roboclaw-bot
roboclaw-bot deleted the ci939b-update-launcher-20261022 branch October 22, 2026 19:40
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…aw#180931)

Retain sealed and writable service coverage at registry admission, before staging or runtime recovery. Keep the incompatible-runtime refusal and no-mutation assertions; remove the obsolete replacement executable setup.

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 26, 2026
…taging (#180769)

2026.10.6 raised engines.node to >=24.22.1 <25 || >=26.12.1 (#179992). Package-mode updates (npm/pnpm global, Control UI update.run) staged and installed the target before checking its Node requirement, so users on older Node got an opaque global-install-failed. Target resolution now runs the existing runtime-compat owner first against the Gateway's selected Node and refuses with preflight-node-runtime-incompatible, leaving the Gateway untouched and naming the current version, the required range and the next step. Unknown engines metadata never blocks. Fixes #180636 (@sglion777), Fixes #180701 (@Almost-Certified-ops), Fixes #180707 (@billpang1-sketch); Refs #180688 (@rayluo88).

(cherry picked from commit 3755040)

Adapted for 2026.9.x: used the 10.7 backport abc2431 as the template.
The 9.x runtime-compat owner is resolvePackageRuntimePreflight in
update-command-service-plan.ts (main later split it into
update-command-runtime-preflight.ts); engineOnly is added there, and the
service hint is appended to the 9.x error lines. No new config or protocol:
preflight-node-runtime-incompatible already exists in the 9.x update outcome
vocabulary (git preflight and update triage); it is now also an environment
failure reason. Also folds in the main test alignments from eb8a2ab
(#180939) and 2872d16 (#180931): incompatible registry targets now
refuse before staging instead of provisioning or rebinding a service Node,
so the 9.x node-runtime, npm-runtime, target-schema, runtime-channel, and
runtime-preview expectations move to the early refusal. The candidate
admission "fallback node-runtime" row and the obsolete "retains a check the
candidate did not report" test are dropped as on main (the 9.x explicit
.tgz fallback route main used for that row does not reach the installed
Node check). The node-engine regression test inlines runtimeFixture and does
not stub the process runtime (9.x lacks those helpers), and the update.run
handoff case uses the 9.x update.test-harness mocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant