惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(e2e): resolve macOS Parallels VM · openclaw/openclaw@...
vincentkoc · 2026-06-15 · via Recent Commits to openclaw:main

@@ -37,13 +37,14 @@ import {

3737

} from "./common.ts";

3838

import { runWindowsBackgroundPowerShell } from "./guest-transports.ts";

3939

import { linuxUpdateScript, macosUpdateScript, windowsUpdateScript } from "./npm-update-scripts.ts";

40-

import { ensureVmRunning, resolveUbuntuVmName } from "./parallels-vm.ts";

40+

import { ensureVmRunning, resolveMacosVmName, resolveUbuntuVmName } from "./parallels-vm.ts";

4141

import { runTimedUpdateJob } from "./update-job-timeout.ts";

42424343

interface NpmUpdateOptions {

4444

betaValidation?: string;

4545

freshTargetSpec?: string;

4646

hostIp?: string;

47+

macosVm?: string;

4748

packageSpec: string;

4849

targetTarball?: string;

4950

updateTarget: string;

@@ -111,7 +112,7 @@ interface NpmUpdateSummary {

111112

}>;

112113

}

113114114-

const macosVm = "macOS Tahoe";

115+

const macosVmDefault = "macOS Tahoe";

115116

const windowsVm = "Windows 11";

116117

const linuxVmDefault = "Ubuntu 26.04";

117118

const updateTimeoutSeconds = readPositiveIntEnv("OPENCLAW_PARALLELS_NPM_UPDATE_TIMEOUT_S", 1200);

@@ -298,6 +299,7 @@ Options:

298299

Aliases like beta3 resolve to the latest *-beta.3 version.

299300

--platform <list> Comma-separated platforms to run: all, macos, windows, linux.

300301

Default: all

302+

--macos-vm <name> Explicit Parallels macOS VM name.

301303

--provider <openai|anthropic|minimax>

302304

--model <provider/model> Override the model used for agent-turn smoke checks.

303305

--host-ip <ip> Override Parallels host IP.

@@ -315,6 +317,7 @@ export function parseArgs(argv: string[]): NpmUpdateOptions {

315317

betaValidation: undefined,

316318

freshTargetSpec: undefined,

317319

json: false,

320+

macosVm: undefined,

318321

modelId: undefined,

319322

packageSpec: "",

320323

targetTarball: undefined,

@@ -358,6 +361,10 @@ export function parseArgs(argv: string[]): NpmUpdateOptions {

358361

options.platforms = parsePlatformList(ensureValue(args, i, arg));

359362

i++;

360363

break;

364+

case "--macos-vm":

365+

options.macosVm = ensureValue(args, i, arg);

366+

i++;

367+

break;

361368

case "--provider":

362369

options.provider = parseProvider(ensureValue(args, i, arg));

363370

i++;

@@ -455,6 +462,7 @@ export class NpmUpdateSmoke {

455462

private targetTarballPath = "";

456463

private targetTarballBuildCommit = "";

457464

private targetTarballVersion = "";

465+

private macosVm = macosVmDefault;

458466

private linuxVm = linuxVmDefault;

459467460468

private freshStatus = platformRecord("skip");

@@ -507,6 +515,12 @@ export class NpmUpdateSmoke {

507515

if (this.options.platforms.has("linux")) {

508516

this.linuxVm = resolveUbuntuVmName(linuxVmDefault);

509517

}

518+

if (this.options.platforms.has("macos")) {

519+

this.macosVm = resolveMacosVmName(

520+

this.options.macosVm ?? macosVmDefault,

521+

Boolean(this.options.macosVm),

522+

);

523+

}

510524

this.preflightRegistryUpdateTarget();

511525512526

say(`Run fresh npm baseline: ${this.packageSpec}`);

@@ -535,7 +549,7 @@ export class NpmUpdateSmoke {

535549

private async runFreshBaselines(): Promise<void> {

536550

const jobs: Job[] = [];

537551

if (this.options.platforms.has("macos")) {

538-

jobs.push(this.spawnFresh("macOS", "macos", []));

552+

jobs.push(this.spawnFresh("macOS", "macos", ["--vm", this.macosVm]));

539553

}

540554

if (this.options.platforms.has("windows")) {

541555

jobs.push(this.spawnFresh("Windows", "windows", []));

@@ -563,7 +577,16 @@ export class NpmUpdateSmoke {

563577

private async runFreshTargetInstalls(): Promise<void> {

564578

const jobs: Job[] = [];

565579

if (this.options.platforms.has("macos")) {

566-

jobs.push(this.spawnFresh("macOS", "macos", [], {}, this.freshTargetSpec, "fresh-target"));

580+

jobs.push(

581+

this.spawnFresh(

582+

"macOS",

583+

"macos",

584+

["--vm", this.macosVm],

585+

{},

586+

this.freshTargetSpec,

587+

"fresh-target",

588+

),

589+

);

567590

}

568591

if (this.options.platforms.has("windows")) {

569592

jobs.push(

@@ -768,7 +791,7 @@ export class NpmUpdateSmoke {

768791

private async runSameGuestUpdates(): Promise<void> {

769792

const jobs: Job[] = [];

770793

if (this.options.platforms.has("macos")) {

771-

ensureVmRunning(macosVm);

794+

ensureVmRunning(this.macosVm);

772795

jobs.push(this.spawnUpdate("macOS", "macos", (ctx) => this.runMacosUpdate(ctx)));

773796

}

774797

if (this.options.platforms.has("windows")) {

@@ -912,7 +935,7 @@ export class NpmUpdateSmoke {

912935

ctx: UpdateJobContext,

913936

): Promise<void> {

914937

const scriptPath = this.writeGuestScript(

915-

macosVm,

938+

this.macosVm,

916939

script,

917940

"openclaw-parallels-npm-update-macos",

918941

);

@@ -923,29 +946,29 @@ export class NpmUpdateSmoke {

923946

? macosExecArgs[sudoUserArgIndex + 1]

924947

: "";

925948

if (sudoUser) {

926-

run("prlctl", ["exec", macosVm, "/usr/sbin/chown", sudoUser, scriptPath], {

949+

run("prlctl", ["exec", this.macosVm, "/usr/sbin/chown", sudoUser, scriptPath], {

927950

timeoutMs: 30_000,

928951

});

929952

}

930953

try {

931954

const status = await this.runStreamingToJobLog(

932955

"prlctl",

933-

["exec", macosVm, ...macosExecArgs, "/bin/bash", scriptPath],

956+

["exec", this.macosVm, ...macosExecArgs, "/bin/bash", scriptPath],

934957

timeoutMs,

935958

ctx,

936959

);

937960

if (status !== 0) {

938961

throw new Error(`macOS update command failed with exit code ${status}`);

939962

}

940963

} finally {

941-

this.removeGuestScript(macosVm, scriptPath);

964+

this.removeGuestScript(this.macosVm, scriptPath);

942965

}

943966

}

944967945968

private resolveMacosUpdateExecArgs(ctx: UpdateJobContext): string[] {

946969

const guestPath =

947970

"/opt/homebrew/bin:/opt/homebrew/opt/node/bin:/usr/local/bin:/usr/local/sbin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin";

948-

const currentUser = run("prlctl", ["exec", macosVm, "--current-user", "whoami"], {

971+

const currentUser = run("prlctl", ["exec", this.macosVm, "--current-user", "whoami"], {

949972

check: false,

950973

quiet: true,

951974

timeoutMs: 45_000,

@@ -980,7 +1003,7 @@ export class NpmUpdateSmoke {

98010039811004

private resolveMacosDesktopUser(): string {

9821005

const consoleUser =

983-

run("prlctl", ["exec", macosVm, "/usr/bin/stat", "-f", "%Su", "/dev/console"], {

1006+

run("prlctl", ["exec", this.macosVm, "/usr/bin/stat", "-f", "%Su", "/dev/console"], {

9841007

check: false,

9851008

quiet: true,

9861009

timeoutMs: 30_000,

@@ -998,7 +1021,7 @@ export class NpmUpdateSmoke {

9981021

}

9991022

const users = run(

10001023

"prlctl",

1001-

["exec", macosVm, "/usr/bin/dscl", ".", "-list", "/Users", "NFSHomeDirectory"],

1024+

["exec", this.macosVm, "/usr/bin/dscl", ".", "-list", "/Users", "NFSHomeDirectory"],

10021025

{ check: false, quiet: true, timeoutMs: 30_000 },

10031026

).stdout.replaceAll("\r", "");

10041027

for (const line of users.split("\n")) {

@@ -1019,7 +1042,7 @@ export class NpmUpdateSmoke {

10191042

private resolveMacosDesktopHome(user: string): string {

10201043

const output = run(

10211044

"prlctl",

1022-

["exec", macosVm, "/usr/bin/dscl", ".", "-read", `/Users/${user}`, "NFSHomeDirectory"],

1045+

["exec", this.macosVm, "/usr/bin/dscl", ".", "-read", `/Users/${user}`, "NFSHomeDirectory"],

10231046

{ check: false, quiet: true, timeoutMs: 30_000 },

10241047

).stdout.replaceAll("\r", "");

10251048

const match = /NFSHomeDirectory:\s*(\S+)/.exec(output);