Repository navigation
fix(ci): updater launcher tests fail after early Node refusal - #180931
Merged
Merged
Conversation
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]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review endedClawSweeper stopped reviewing this revision because the pull request closed. |
roboclaw-bot
marked this pull request as ready for review
October 22, 2026 19:27
roboclaw-bot
enabled auto-merge (squash)
October 22, 2026 19:32
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.One test file, +15/−45 lines; zero production changes. Separate node-runtime and target-schema fixture failures are not claimed fixed.