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

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
I
InfoQ
D
Docker
F
Fortinet All Blogs
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
B
Blog
Engineering at Meta
Engineering at Meta
T
Tailwind CSS Blog
罗磊的独立博客
博客园_首页
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
IT之家
IT之家
V
V2EX

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): resume restored Parallels snapshots · openclaw/...
vincentkoc · 2026-06-15 · via Recent Commits to openclaw:main

@@ -13,14 +13,18 @@ export interface WaitForVmStatusOptions {

1313

probeTimeoutMs?: () => number | undefined;

1414

}

151516+

export interface EnsureVmRunningOptions extends WaitForVmStatusOptions {

17+

transitionTimeoutMs?: () => number | undefined;

18+

}

19+1620

export function listVmNames(): string[] {

1721

return listVms()

1822

.map((item) => (item.name ?? "").trim())

1923

.filter(Boolean);

2024

}

212522-

export function vmStatus(vmName: string): string {

23-

return listVms().find((vm) => vm.name === vmName)?.status || "missing";

26+

export function vmStatus(vmName: string, timeoutMs?: number): string {

27+

return listVms(timeoutMs).find((vm) => vm.name === vmName)?.status || "missing";

2428

}

25292630

export function waitForVmStatus(

@@ -44,24 +48,28 @@ export function waitForVmStatus(

4448

throw new Error(`VM ${vmName} did not reach ${expected}`);

4549

}

465047-

export function ensureVmRunning(vmName: string, timeoutSeconds = 180): void {

51+

export function ensureVmRunning(

52+

vmName: string,

53+

timeoutSeconds = 180,

54+

options: EnsureVmRunningOptions = {},

55+

): void {

4856

const deadline = Date.now() + timeoutSeconds * 1000;

4957

while (Date.now() < deadline) {

50-

const status = vmStatus(vmName);

58+

const status = vmStatus(vmName, options.probeTimeoutMs?.());

5159

if (status === "running") {

5260

return;

5361

}

5462

if (status === "stopped") {

5563

say(`Start ${vmName} before update phase`);

5664

run("prlctl", ["start", vmName], {

5765

quiet: true,

58-

timeoutMs: PRLCTL_TRANSITION_TIMEOUT_MS,

66+

timeoutMs: options.transitionTimeoutMs?.() ?? PRLCTL_TRANSITION_TIMEOUT_MS,

5967

});

6068

} else if (status === "suspended" || status === "paused") {

6169

say(`Resume ${vmName} before update phase`);

6270

run("prlctl", ["resume", vmName], {

6371

quiet: true,

64-

timeoutMs: PRLCTL_TRANSITION_TIMEOUT_MS,

72+

timeoutMs: options.transitionTimeoutMs?.() ?? PRLCTL_TRANSITION_TIMEOUT_MS,

6573

});

6674

} else if (status === "missing") {

6775

die(`VM not found before update phase: ${vmName}`);

@@ -97,11 +105,11 @@ export function resolveUbuntuVmName(requested: string, explicit = false): string

97105

return fallback;

98106

}

99107100-

function listVms(): PrlctlVmListItem[] {

108+

function listVms(timeoutMs = PRLCTL_STATUS_TIMEOUT_MS): PrlctlVmListItem[] {

101109

return JSON.parse(

102110

run("prlctl", ["list", "--all", "--json"], {

103111

quiet: true,

104-

timeoutMs: PRLCTL_STATUS_TIMEOUT_MS,

112+

timeoutMs,

105113

}).stdout,

106114

) as PrlctlVmListItem[];

107115

}