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

推荐订阅源

Martin Fowler
Martin Fowler
V
Visual Studio Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
B
Blog
I
InfoQ
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
H
Help Net Security
博客园 - Franky
宝玉的分享
宝玉的分享
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家

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(scripts): honor gtimeout in host setup wrappers · ope...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main

@@ -10,6 +10,7 @@ const SCRIPT_PATH = "scripts/test-install-sh-docker.sh";

1010

const INSTALL_E2E_DOCKER_PATH = "scripts/test-install-sh-e2e-docker.sh";

1111

const INSTALL_E2E_RUNNER_PATH = "scripts/docker/install-sh-e2e/run.sh";

1212

const DOCKER_SETUP_PATH = "scripts/docker/setup.sh";

13+

const HOST_TIMEOUT_PATH = "scripts/lib/host-timeout.sh";

1314

const PODMAN_SETUP_PATH = "scripts/podman/setup.sh";

1415

const PODMAN_RUN_PATH = "scripts/run-openclaw-podman.sh";

1516

const SMOKE_RUNNER_PATH = "scripts/docker/install-sh-smoke/run.sh";

@@ -323,28 +324,27 @@ describe("test-install-sh-docker", () => {

323324324325

it("bounds Docker setup image pulls", () => {

325326

const script = readFileSync(DOCKER_SETUP_PATH, "utf8");

327+

const timeoutHelper = readFileSync(HOST_TIMEOUT_PATH, "utf8");

326328329+

expect(script).toContain('source "$ROOT_DIR/scripts/lib/host-timeout.sh"');

327330

expect(script).toContain('DOCKER_PULL_TIMEOUT="${OPENCLAW_DOCKER_SETUP_PULL_TIMEOUT:-600s}"');

328331

expect(script).toContain("run_docker_pull()");

329-

expect(script).toContain("timeout --kill-after=1s 1s true");

330-

expect(script).toContain(

331-

'timeout --kill-after=30s "$DOCKER_PULL_TIMEOUT" docker pull "$image"',

332-

);

333-

expect(script).toContain('timeout "$DOCKER_PULL_TIMEOUT" docker pull "$image"');

332+

expect(script).toContain('openclaw_host_timeout_cmd "$DOCKER_PULL_TIMEOUT" docker pull "$image"');

333+

expect(timeoutHelper).toContain("elif command -v gtimeout >/dev/null 2>&1; then");

334+

expect(timeoutHelper).toContain('"$timeout_bin" --kill-after=30s "$timeout_value" "$@"');

334335

expect(script).toContain('run_docker_pull "$IMAGE_NAME"');

335336

expect(script).not.toContain('docker pull "$IMAGE_NAME"');

336337

});

337338338339

it("bounds Podman setup image pulls", () => {

339340

const script = readFileSync(PODMAN_SETUP_PATH, "utf8");

340341342+

expect(script).toContain('source "$REPO_PATH/scripts/lib/host-timeout.sh"');

341343

expect(script).toContain('PODMAN_PULL_TIMEOUT="${OPENCLAW_PODMAN_SETUP_PULL_TIMEOUT:-600s}"');

342344

expect(script).toContain("run_podman_pull()");

343-

expect(script).toContain("timeout --kill-after=1s 1s true");

344345

expect(script).toContain(

345-

'timeout --kill-after=30s "$PODMAN_PULL_TIMEOUT" podman pull "$image"',

346+

'openclaw_host_timeout_cmd "$PODMAN_PULL_TIMEOUT" podman pull "$image"',

346347

);

347-

expect(script).toContain('timeout "$PODMAN_PULL_TIMEOUT" podman pull "$image"');

348348

expect(script).toContain('run_podman_pull "$OPENCLAW_IMAGE"');

349349

expect(script).not.toContain('podman pull "$OPENCLAW_IMAGE"');

350350

});

@@ -356,9 +356,7 @@ describe("test-install-sh-docker", () => {

356356

'PODMAN_BUILD_TIMEOUT="${OPENCLAW_PODMAN_SETUP_BUILD_TIMEOUT:-1800s}"',

357357

);

358358

expect(script).toContain("run_podman_build()");

359-

expect(script).toContain("timeout --kill-after=1s 1s true");

360-

expect(script).toContain('timeout --kill-after=30s "$PODMAN_BUILD_TIMEOUT" podman build "$@"');

361-

expect(script).toContain('timeout "$PODMAN_BUILD_TIMEOUT" podman build "$@"');

359+

expect(script).toContain('openclaw_host_timeout_cmd "$PODMAN_BUILD_TIMEOUT" podman build "$@"');

362360

expect(script).toContain('run_podman_build -t "$OPENCLAW_IMAGE"');

363361

expect(script).not.toContain('podman build -t "$OPENCLAW_IMAGE"');

364362

});

@@ -368,10 +366,9 @@ describe("test-install-sh-docker", () => {

368366369367

expect(script).toContain('PODMAN_RUN_TIMEOUT="${OPENCLAW_PODMAN_RUN_TIMEOUT:-600s}"');

370368

expect(script).toContain("OPENCLAW_PODMAN_RUN_TIMEOUT|OPENCLAW_PODMAN_GATEWAY_HOST_PORT");

369+

expect(script).toContain('source "$SCRIPT_DIR/lib/host-timeout.sh"');

371370

expect(script).toContain("run_podman_detached()");

372-

expect(script).toContain("timeout --kill-after=1s 1s true");

373-

expect(script).toContain('timeout --kill-after=30s "$PODMAN_RUN_TIMEOUT" podman run "$@"');

374-

expect(script).toContain('timeout "$PODMAN_RUN_TIMEOUT" podman run "$@"');

371+

expect(script).toContain('openclaw_host_timeout_cmd "$PODMAN_RUN_TIMEOUT" podman run "$@"');

375372

expect(script).toContain('podman run --pull="$PODMAN_PULL" --rm -it \\');

376373

expect(script).toContain('run_podman_detached --pull="$PODMAN_PULL" -d --replace \\');

377374

expect(script).not.toContain('podman run --pull="$PODMAN_PULL" -d --replace \\');