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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 【当耐特】
A
About on SuperTechFans
Last Week in AI
Last Week in AI
雷峰网
雷峰网
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements

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): reject loose parallels limits · openclaw/opencl...
vincentkoc · 2026-05-29 · via Recent Commits to openclaw:main

@@ -13,6 +13,8 @@ import {

1313

parseProvider,

1414

modelProviderConfigBatchJson,

1515

posixProviderOnlyPluginIsolationScript,

16+

parsePositiveInt,

17+

readPositiveIntEnv,

1618

resolveParallelsModelTimeoutSeconds,

1719

resolveHostIp,

1820

resolveHostPort,

@@ -188,7 +190,7 @@ function parseArgs(argv: string[]): MacosOptions {

188190

i++;

189191

break;

190192

case "--host-port":

191-

options.hostPort = Number(ensureValue(argv, i, arg));

193+

options.hostPort = parsePositiveInt(ensureValue(argv, i, arg), arg);

192194

options.hostPortExplicit = true;

193195

i++;

194196

break;

@@ -241,6 +243,7 @@ function parseArgs(argv: string[]): MacosOptions {

241243

}

242244243245

class MacosSmoke {

246+

private agentTimeoutSeconds: number;

244247

private auth: ProviderAuth;

245248

private discordToken = "";

246249

private hostIp = "";

@@ -258,6 +261,8 @@ class MacosSmoke {

258261

private discord: MacosDiscordSmoke | null = null;

259262

private guestUser = "";

260263

private guestTransport: "current-user" | "sudo" = "current-user";

264+

private modelTimeoutSeconds: number;

265+

private updateDevTimeoutSeconds: number;

261266262267

private status = {

263268

freshAgent: "skip",

@@ -282,6 +287,12 @@ class MacosSmoke {

282287

modelId: options.modelId,

283288

provider: options.provider,

284289

});

290+

this.agentTimeoutSeconds = readPositiveIntEnv("OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S", 2700);

291+

this.modelTimeoutSeconds = resolveParallelsModelTimeoutSeconds("macos");

292+

this.updateDevTimeoutSeconds = readPositiveIntEnv(

293+

"OPENCLAW_PARALLELS_MACOS_UPDATE_DEV_TIMEOUT_S",

294+

1800,

295+

);

285296

this.validateDiscord();

286297

}

287298

@@ -475,11 +486,7 @@ class MacosSmoke {

475486

this.status.freshGateway = "pass";

476487

await this.phase("fresh.dashboard-load", 180, () => this.verifyDashboardLoad());

477488

this.status.freshDashboard = "pass";

478-

await this.phase(

479-

"fresh.first-agent-turn",

480-

Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2700),

481-

() => this.verifyTurn(),

482-

);

489+

await this.phase("fresh.first-agent-turn", this.agentTimeoutSeconds, () => this.verifyTurn());

483490

this.status.freshAgent = "pass";

484491

if (this.discordEnabled()) {

485492

this.status.freshDiscord = "fail";

@@ -518,10 +525,8 @@ class MacosSmoke {

518525

this.verifyBundlePermissions(),

519526

);

520527

} else {

521-

await this.phase(

522-

"upgrade.update-dev",

523-

Number(process.env.OPENCLAW_PARALLELS_MACOS_UPDATE_DEV_TIMEOUT_S || 1800),

524-

() => this.runDevChannelUpdate(),

528+

await this.phase("upgrade.update-dev", this.updateDevTimeoutSeconds, () =>

529+

this.runDevChannelUpdate(),

525530

);

526531

this.status.upgradeVersion = await this.extractLastVersion("upgrade.update-dev");

527532

await this.phase("upgrade.verify-dev-channel", 60, () => this.verifyDevChannelUpdate());

@@ -532,11 +537,7 @@ class MacosSmoke {

532537

this.status.upgradeGateway = "pass";

533538

await this.phase("upgrade.dashboard-load", 180, () => this.verifyDashboardLoad());

534539

this.status.upgradeDashboard = "pass";

535-

await this.phase(

536-

"upgrade.first-agent-turn",

537-

Number(process.env.OPENCLAW_PARALLELS_MACOS_AGENT_TIMEOUT_S || 2700),

538-

() => this.verifyTurn(),

539-

);

540+

await this.phase("upgrade.first-agent-turn", this.agentTimeoutSeconds, () => this.verifyTurn());

540541

this.status.upgradeAgent = "pass";

541542

if (this.discordEnabled()) {

542543

this.status.upgradeDiscord = "fail";

@@ -1005,7 +1006,11 @@ exit 1`);

1005100610061007

private verifyTurn(): void {

10071008

this.guestOpenClawEntryExec(["models", "set", this.auth.modelId]);

1008-

const modelProviderConfigBatch = modelProviderConfigBatchJson(this.auth.modelId, "macos");

1009+

const modelProviderConfigBatch = modelProviderConfigBatchJson(

1010+

this.auth.modelId,

1011+

"macos",

1012+

this.modelTimeoutSeconds,

1013+

);

10091014

if (modelProviderConfigBatch) {

10101015

this.guestSh(`provider_config_batch="$(mktemp)"

10111016

cat >"$provider_config_batch" <<'JSON'

@@ -1034,7 +1039,7 @@ for attempt in 1 2; do

10341039

set +e

10351040

/usr/bin/env ${shellQuote(`${this.auth.apiKeyEnv}=${this.auth.apiKeyValue}`)} ${guestOpenClawEntryRunner} agent --local --agent main --session-id "$session_id" --message ${shellQuote(

10361041

"Reply with exact ASCII text OK only.",

1037-

)} --thinking off --timeout ${resolveParallelsModelTimeoutSeconds("macos")} --json >"$output_file" 2>&1

1042+

)} --thinking off --timeout ${this.modelTimeoutSeconds} --json >"$output_file" 2>&1

10381043

rc=$?

10391044

set -e

10401045

cat "$output_file"