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

推荐订阅源

博客园 - Franky
U
Unit 42
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
量子位
IT之家
IT之家
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Recent Announcements
Recent Announcements
V
Visual Studio Blog
G
Google Developers Blog
Last Week in AI
Last Week in AI
雷峰网
雷峰网
博客园 - 聂微东
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
博客园 - 司徒正美
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏

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): bound logged onboard commands · openclaw/opencl...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -321,4 +321,69 @@ describe("scripts/lib/openclaw-e2e-instance.sh", () => {

321321

fs.rmSync(tempDir, { force: true, recursive: true });

322322

}

323323

});

324+325+

it("wraps logged OpenClaw E2E commands with the configured timeout", () => {

326+

const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-e2e-instance-run-logged-"));

327+

const logLabel = path.basename(tempDir);

328+

const logPath = `/tmp/openclaw-onboard-${logLabel}.log`;

329+

try {

330+

const timeoutArgsPath = path.join(tempDir, "timeout-args.txt");

331+

const commandArgsPath = path.join(tempDir, "command-args.txt");

332+

fs.writeFileSync(

333+

path.join(tempDir, "timeout"),

334+

[

335+

"#!/usr/bin/env bash",

336+

"set -euo pipefail",

337+

'printf "%s\\n" "$*" >"$OPENCLAW_TEST_TIMEOUT_ARGS"',

338+

'while [ "$#" -gt 0 ] && [ "$1" != "fixture-command" ]; do shift; done',

339+

'exec "$@"',

340+

"",

341+

].join("\n"),

342+

);

343+

fs.writeFileSync(

344+

path.join(tempDir, "fixture-command"),

345+

[

346+

"#!/usr/bin/env bash",

347+

"set -euo pipefail",

348+

'printf "%s\\n" "$*" >"$OPENCLAW_TEST_COMMAND_ARGS"',

349+

'printf "fixture output\\n"',

350+

"",

351+

].join("\n"),

352+

);

353+

fs.chmodSync(path.join(tempDir, "timeout"), 0o755);

354+

fs.chmodSync(path.join(tempDir, "fixture-command"), 0o755);

355+356+

const result = spawnSync(

357+

"/bin/bash",

358+

[

359+

"-c",

360+

[

361+

"set -euo pipefail",

362+

`source ${shellQuote(helperPath)}`,

363+

`openclaw_e2e_run_logged ${shellQuote(logLabel)} fixture-command one two`,

364+

].join("; "),

365+

],

366+

{

367+

encoding: "utf8",

368+

env: {

369+

...process.env,

370+

PATH: `${tempDir}:${process.env.PATH ?? ""}`,

371+

OPENCLAW_E2E_COMMAND_TIMEOUT: "17s",

372+

OPENCLAW_TEST_TIMEOUT_ARGS: timeoutArgsPath,

373+

OPENCLAW_TEST_COMMAND_ARGS: commandArgsPath,

374+

},

375+

},

376+

);

377+378+

expect(result.status).toBe(0);

379+

expect(fs.readFileSync(timeoutArgsPath, "utf8").trim()).toBe(

380+

"--kill-after=30s 17s fixture-command one two",

381+

);

382+

expect(fs.readFileSync(commandArgsPath, "utf8").trim()).toBe("one two");

383+

expect(fs.readFileSync(logPath, "utf8")).toContain("fixture output");

384+

} finally {

385+

fs.rmSync(tempDir, { force: true, recursive: true });

386+

fs.rmSync(logPath, { force: true });

387+

}

388+

});

324389

});