test: skip bootstrap in release validation onboarding

This commit is contained in:
Peter Steinberger
2026-04-27 17:01:46 +01:00
parent 1fd0802b88
commit 04b5dd097d
3 changed files with 73 additions and 42 deletions

View File

@@ -6,6 +6,7 @@ import { setTimeout as delay } from "node:timers/promises";
import { describe, expect, it } from "vitest";
import {
agentOutputHasExpectedOkMarker,
buildReleaseOnboardArgs,
buildWindowsDevUpdateToolchainCheckScript,
buildWindowsFreshShellVersionCheckScript,
buildInstalledBrowserOverrideImportProbeScript,
@@ -272,6 +273,34 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
expect(shouldUseManagedGatewayService("linux")).toBe(false);
});
it("skips workspace bootstrap during release onboarding", () => {
expect(
buildReleaseOnboardArgs({
authChoice: "openai-api-key",
gatewayPort: 34111,
skipHealth: true,
}),
).toEqual([
"onboard",
"--non-interactive",
"--mode",
"local",
"--auth-choice",
"openai-api-key",
"--secret-input-mode",
"ref",
"--gateway-port",
"34111",
"--gateway-bind",
"loopback",
"--skip-skills",
"--skip-bootstrap",
"--accept-risk",
"--json",
"--skip-health",
]);
});
it("keeps the Windows installer runtime on the manual gateway after managed lifecycle checks", () => {
expect(shouldExerciseManagedGatewayLifecycleAfterInstall("win32")).toBe(true);
expect(shouldUseManagedGatewayForInstallerRuntime("win32")).toBe(false);