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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
腾讯CDC
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
WordPress大学
WordPress大学
雷峰网
雷峰网
小众软件
小众软件
D
DataBreaches.Net
V
Visual Studio Blog
博客园 - Franky
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
博客园 - 聂微东
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
云风的 BLOG
云风的 BLOG

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): kill timed docker helper commands · openclaw/op...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -3,17 +3,27 @@

33

# Shared helpers for Docker E2E scripts that keep a named container running

44

# while polling readiness from the host.

55
6-

docker_e2e_docker_cmd() {

6+

docker_e2e_timeout_cmd() {

7+

local timeout_value="$1"

8+

shift

79

if command -v timeout >/dev/null 2>&1; then

8-

timeout "${DOCKER_COMMAND_TIMEOUT:-600s}" docker "$@"

10+

if timeout --kill-after=1s 1s true >/dev/null 2>&1; then

11+

timeout --kill-after=30s "$timeout_value" "$@"

12+

else

13+

timeout "$timeout_value" "$@"

14+

fi

915

return

1016

fi

11-

docker "$@"

17+

"$@"

18+

}

19+
20+

docker_e2e_docker_cmd() {

21+

docker_e2e_timeout_cmd "${DOCKER_COMMAND_TIMEOUT:-600s}" docker "$@"

1222

}

1323
1424

docker_e2e_docker_run_cmd() {

15-

if [ -n "${DOCKER_COMMAND_TIMEOUT:-}" ] && command -v timeout >/dev/null 2>&1; then

16-

timeout "$DOCKER_COMMAND_TIMEOUT" docker "$@"

25+

if [ -n "${DOCKER_COMMAND_TIMEOUT:-}" ]; then

26+

docker_e2e_timeout_cmd "$DOCKER_COMMAND_TIMEOUT" docker "$@"

1727

return

1828

fi

1929

docker "$@"

Original file line numberDiff line numberDiff line change

@@ -15,8 +15,16 @@ if ! declare -F docker_e2e_docker_cmd >/dev/null 2>&1; then

1515

fi

1616

if ! declare -F docker_e2e_docker_run_cmd >/dev/null 2>&1; then

1717

docker_e2e_docker_run_cmd() {

18+

if [ -n "${DOCKER_COMMAND_TIMEOUT:-}" ] && declare -F docker_e2e_timeout_cmd >/dev/null 2>&1; then

19+

docker_e2e_timeout_cmd "$DOCKER_COMMAND_TIMEOUT" docker "$@"

20+

return

21+

fi

1822

if [ -n "${DOCKER_COMMAND_TIMEOUT:-}" ] && command -v timeout >/dev/null 2>&1; then

19-

timeout "$DOCKER_COMMAND_TIMEOUT" docker "$@"

23+

if timeout --kill-after=1s 1s true >/dev/null 2>&1; then

24+

timeout --kill-after=30s "$DOCKER_COMMAND_TIMEOUT" docker "$@"

25+

else

26+

timeout "$DOCKER_COMMAND_TIMEOUT" docker "$@"

27+

fi

2028

return

2129

fi

2230

docker "$@"

Original file line numberDiff line numberDiff line change

@@ -182,8 +182,19 @@ export OPENCLAW_SKIP_DOCKER_BUILD=1

182182

mkdir -p "$TMPDIR/bin"

183183

cat >"$TMPDIR/bin/timeout" <<'SH'

184184

#!/usr/bin/env bash

185-

printf "%s|%s\\n" "$1" "$2 $3 $4" >>"$TMPDIR/timeout-seen"

186-

shift

185+

case "$1" in

186+

--kill-after=1s)

187+

exit 0

188+

;;

189+

--kill-after=30s)

190+

printf "%s %s|%s\\n" "$1" "$2" "$3 $4 $5" >>"$TMPDIR/timeout-seen"

191+

shift 2

192+

;;

193+

*)

194+

printf "%s|%s\\n" "$1" "$2 $3 $4" >>"$TMPDIR/timeout-seen"

195+

shift

196+

;;

197+

esac

187198

"$@"

188199

SH

189200

chmod +x "$TMPDIR/bin/timeout"

@@ -214,7 +225,7 @@ docker_e2e_build_or_reuse \\

214225

"$ROOT_DIR" \\

215226

functional

216227
217-

test "$(grep -c '^3s|' "$TMPDIR/timeout-seen")" = "2"

228+

test "$(grep -c '^--kill-after=30s 3s|' "$TMPDIR/timeout-seen")" = "2"

218229

grep -q '^image inspect openclaw-reuse-image$' "$TMPDIR/docker-seen"

219230

grep -q '^pull openclaw-reuse-image$' "$TMPDIR/docker-seen"

220231

`;

@@ -382,8 +393,19 @@ export DOCKER_COMMAND_TIMEOUT=3s

382393

mkdir -p "$TMPDIR/bin"

383394

cat >"$TMPDIR/bin/timeout" <<'SH'

384395

#!/usr/bin/env bash

385-

printf "%s\\n" "$1" >"$TMPDIR/docker-timeout-seen"

386-

shift

396+

case "$1" in

397+

--kill-after=1s)

398+

exit 0

399+

;;

400+

--kill-after=30s)

401+

printf "%s %s\\n" "$1" "$2" >"$TMPDIR/docker-timeout-seen"

402+

shift 2

403+

;;

404+

*)

405+

printf "%s\\n" "$1" >"$TMPDIR/docker-timeout-seen"

406+

shift

407+

;;

408+

esac

387409

"$@"

388410

SH

389411

chmod +x "$TMPDIR/bin/timeout"

@@ -450,7 +472,7 @@ pack_dir="$(dirname "$package_tgz")"

450472

docker_e2e_package_mount_args "$package_tgz"

451473

DOCKER_STUB_STATUS=7 docker_e2e_run_with_harness image-name bash -lc true || run_status="$?"

452474

test "\${run_status:-0}" = "7"

453-

test "$(cat "$TMPDIR/docker-timeout-seen")" = "3s"

475+

test "$(cat "$TMPDIR/docker-timeout-seen")" = "--kill-after=30s 3s"

454476

test -f "$TMPDIR/package-mount-seen"

455477

test ! -e "$pack_dir"

456478