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

推荐订阅源

C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
月光博客
月光博客
博客园 - 司徒正美
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
量子位
Recent Announcements
Recent Announcements
V
V2EX
P
Proofpoint News Feed
小众软件
小众软件
云风的 BLOG
云风的 BLOG
腾讯CDC
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog
博客园_首页
GbyAI
GbyAI
博客园 - Franky

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: harden parallels smoke harness · openclaw/openclaw@c...
steipete · 2026-04-30 · via Recent Commits to openclaw:main

@@ -335,12 +335,14 @@ class LinuxSmoke {

335335

await this.phase("fresh.onboard-ref", 180, () => this.runRefOnboard());

336336

await this.phase("fresh.inject-bad-plugin", 90, () => this.injectBadPluginFixture());

337337

await this.phase("fresh.gateway-start", 240, () => this.startGatewayBackground());

338-

await this.phase("fresh.bad-plugin-diagnostic", 90, () => this.verifyBadPluginDiagnostic());

338+

await this.phase("fresh.bad-plugin-diagnostic", 90, () =>

339+

this.verifyBadPluginDiagnostic("fresh"),

340+

);

339341

await this.phase("fresh.gateway-status", 240, () => this.verifyGatewayStatus());

340342

this.status.freshGateway = "pass";

341343

await this.phase(

342344

"fresh.first-local-agent-turn",

343-

Number(process.env.OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S || 300),

345+

Number(process.env.OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S || 900),

344346

() => this.verifyLocalTurn(),

345347

);

346348

this.status.freshAgent = "pass";

@@ -362,12 +364,14 @@ class LinuxSmoke {

362364

await this.phase("upgrade.inject-bad-plugin", 90, () => this.injectBadPluginFixture());

363365

await this.phase("upgrade.onboard-ref", 180, () => this.runRefOnboard());

364366

await this.phase("upgrade.gateway-start", 240, () => this.startGatewayBackground());

365-

await this.phase("upgrade.bad-plugin-diagnostic", 90, () => this.verifyBadPluginDiagnostic());

367+

await this.phase("upgrade.bad-plugin-diagnostic", 90, () =>

368+

this.verifyBadPluginDiagnostic("upgrade"),

369+

);

366370

await this.phase("upgrade.gateway-status", 240, () => this.verifyGatewayStatus());

367371

this.status.upgradeGateway = "pass";

368372

await this.phase(

369373

"upgrade.first-local-agent-turn",

370-

Number(process.env.OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S || 300),

374+

Number(process.env.OPENCLAW_PARALLELS_LINUX_AGENT_TIMEOUT_S || 900),

371375

() => this.verifyLocalTurn(),

372376

);

373377

this.status.upgradeAgent = "pass";

@@ -550,17 +554,18 @@ plugin_dir = "/root/.openclaw/test-bad-plugin"

550554

if plugin_dir not in paths:

551555

paths.append(plugin_dir)

552556

allow = plugins.get("allow")

553-

if isinstance(allow, list) and "test-bad-plugin" not in allow:

554-

allow.append("test-bad-plugin")

557+

if not isinstance(allow, list):

558+

allow = plugins["allow"] = ["openai"]

559+

for plugin_id in ("test-bad-plugin", "openai"):

560+

if plugin_id not in allow:

561+

allow.append(plugin_id)

555562

config_path.write_text(json.dumps(config, indent=2) + "\n")

556563

PY`);

557564

}

558565559566

private startGatewayBackground(): void {

560567

const bonjourEnv = this.disableBonjour ? " OPENCLAW_DISABLE_BONJOUR=1" : "";

561-

this.guestExec([

562-

"bash",

563-

"-lc",

568+

this.guestBash(

564569

String.raw`pkill -f "openclaw gateway run" >/dev/null 2>&1 || true

565570

rm -f /tmp/openclaw-parallels-linux-gateway.log

566571

setsid sh -lc ` +

@@ -570,7 +575,7 @@ setsid sh -lc ` +

570575

)} openclaw gateway run --bind loopback --port 18789 --force >/tmp/openclaw-parallels-linux-gateway.log 2>&1`,

571576

) +

572577

String.raw` >/dev/null 2>&1 < /dev/null &`,

573-

]);

578+

);

574579

const deadline = Date.now() + 240_000;

575580

while (Date.now() < deadline) {

576581

if (this.showGatewayStatusCompat(false)) {

@@ -635,12 +640,34 @@ setsid sh -lc ` +

635640

throw new Error("gateway status did not become RPC-ready");

636641

}

637642638-

private verifyBadPluginDiagnostic(): void {

639-

this.guestExec([

640-

"bash",

641-

"-lc",

642-

'grep -F "failed to load setup entry" /tmp/openclaw-parallels-linux-gateway.log',

643-

]);

643+

private async verifyBadPluginDiagnostic(lane: "fresh" | "upgrade"): Promise<void> {

644+

const warning =

645+

"channel plugin manifest declares test-bad-plugin without channelConfigs metadata";

646+

const gatewayStartLog = await readFile(

647+

path.join(this.runDir, `${lane}.gateway-start.log`),

648+

"utf8",

649+

);

650+

if (!gatewayStartLog.includes(warning)) {

651+

throw new Error(`bad plugin diagnostic missing: ${warning}`);

652+

}

653+

this.log(warning);

654+

this.guestBash(String.raw`set -euo pipefail

655+

python3 - <<'PY'

656+

import json

657+

from pathlib import Path

658+

config_path = Path("/root/.openclaw/openclaw.json")

659+

config = json.loads(config_path.read_text()) if config_path.exists() else {}

660+

plugins = config.setdefault("plugins", {})

661+

load = plugins.setdefault("load", {})

662+

paths = load.get("paths")

663+

if isinstance(paths, list):

664+

load["paths"] = [path for path in paths if path != "/root/.openclaw/test-bad-plugin"]

665+

allow = plugins.get("allow")

666+

if isinstance(allow, list):

667+

plugins["allow"] = [plugin_id for plugin_id in allow if plugin_id != "test-bad-plugin"]

668+

config_path.write_text(json.dumps(config, indent=2) + "\n")

669+

PY

670+

rm -rf /root/.openclaw/test-bad-plugin`);

644671

}

645672646673

private verifyLocalTurn(): void {

@@ -654,21 +681,15 @@ setsid sh -lc ` +

654681

"--strict-json",

655682

]);

656683

this.prepareAgentWorkspace();

657-

this.guestExec([

658-

"/bin/sh",

659-

"-lc",

684+

this.guestBash(

660685

`exec /usr/bin/env ${shellQuote(`${this.auth.apiKeyEnv}=${this.auth.apiKeyValue}`)} openclaw agent --local --agent main --session-id parallels-linux-smoke --message ${shellQuote(

661686

"Reply with exact ASCII text OK only.",

662687

)} --json`,

663-

]);

688+

);

664689

}

665690666691

private prepareAgentWorkspace(): void {

667-

this.guestExec([

668-

"/bin/sh",

669-

"-lc",

670-

posixAgentWorkspaceScript("Parallels Linux smoke test assistant."),

671-

]);

692+

this.guestBash(posixAgentWorkspaceScript("Parallels Linux smoke test assistant."));

672693

}

673694674695

private async extractLastVersion(phaseId: string): Promise<string> {