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

推荐订阅源

量子位
博客园_首页
罗磊的独立博客
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
Last Week in AI
Last Week in AI
D
DataBreaches.Net
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
D
Docker
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
H
Help Net Security
T
The Blog of Author Tim Ferriss

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
test(parallels): harden npm update smoke transport · open...
steipete · 2026-05-01 · via Recent Commits to openclaw:main

@@ -442,14 +442,23 @@ class NpmUpdateSmoke {

442442

ctx: UpdateJobContext,

443443

): Promise<void> {

444444

const macosExecArgs = this.resolveMacosUpdateExecArgs(ctx);

445-

const status = await this.runStreamingToJobLog(

446-

"prlctl",

447-

["exec", macosVm, ...macosExecArgs, "/bin/bash", "-lc", script],

448-

timeoutMs,

449-

ctx,

445+

const scriptPath = this.writeGuestScript(

446+

macosVm,

447+

script,

448+

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

450449

);

451-

if (status !== 0) {

452-

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

450+

try {

451+

const status = await this.runStreamingToJobLog(

452+

"prlctl",

453+

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

454+

timeoutMs,

455+

ctx,

456+

);

457+

if (status !== 0) {

458+

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

459+

}

460+

} finally {

461+

this.removeGuestScript(macosVm, scriptPath);

453462

}

454463

}

455464

@@ -688,15 +697,62 @@ Remove-Item -Path $scriptPath, $logPath, $donePath, $exitPath -Force -ErrorActio

688697

timeoutMs: number,

689698

ctx: UpdateJobContext,

690699

): Promise<void> {

691-

const status = await this.runStreamingToJobLog(

692-

"prlctl",

693-

["exec", this.linuxVm, "/usr/bin/env", "HOME=/root", "bash", "-lc", script],

694-

timeoutMs,

695-

ctx,

700+

const scriptPath = this.writeGuestScript(

701+

this.linuxVm,

702+

script,

703+

"openclaw-parallels-npm-update-linux",

696704

);

697-

if (status !== 0) {

698-

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

705+

try {

706+

const status = await this.runStreamingToJobLog(

707+

"prlctl",

708+

[

709+

"exec",

710+

this.linuxVm,

711+

"/usr/bin/env",

712+

"HOME=/root",

713+

"PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/snap/bin",

714+

"bash",

715+

scriptPath,

716+

],

717+

timeoutMs,

718+

ctx,

719+

);

720+

if (status !== 0) {

721+

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

722+

}

723+

} finally {

724+

this.removeGuestScript(this.linuxVm, scriptPath);

725+

}

726+

}

727+728+

private writeGuestScript(vm: string, script: string, prefix: string): string {

729+

const scriptPath = `/tmp/${prefix}-${process.pid}-${Date.now()}.sh`;

730+

const write = run("prlctl", ["exec", vm, "/usr/bin/tee", scriptPath], {

731+

check: false,

732+

input: script,

733+

quiet: true,

734+

timeoutMs: 120_000,

735+

});

736+

if (write.status !== 0) {

737+

throw new Error(`failed to write guest script ${scriptPath}: ${write.stderr.trim()}`);

738+

}

739+

const chmod = run("prlctl", ["exec", vm, "/bin/chmod", "700", scriptPath], {

740+

check: false,

741+

quiet: true,

742+

timeoutMs: 30_000,

743+

});

744+

if (chmod.status !== 0) {

745+

throw new Error(`failed to chmod guest script ${scriptPath}: ${chmod.stderr.trim()}`);

699746

}

747+

return scriptPath;

748+

}

749+750+

private removeGuestScript(vm: string, scriptPath: string): void {

751+

run("prlctl", ["exec", vm, "/bin/rm", "-f", scriptPath], {

752+

check: false,

753+

quiet: true,

754+

timeoutMs: 30_000,

755+

});

700756

}

701757702758

private async runStreamingToJobLog(