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

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
L
LangChain Blog
博客园_首页
Recent Announcements
Recent Announcements
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
博客园 - 叶小钗
博客园 - 【当耐特】
The Cloudflare Blog
J
Java Code Geeks
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

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): route sampled docker runs through helpers · ope...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -29,7 +29,7 @@ RUN_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-plugin.XXXXXX")"

2929

STATS_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-plugin-stats.XXXXXX")"

3030
3131

cleanup() {

32-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

32+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

3333

rm -f "$RUN_LOG" "$STATS_LOG"

3434

}

3535

trap cleanup EXIT

@@ -55,15 +55,15 @@ if [[ "${OPENCLAW_KITCHEN_SINK_LIVE_CLAWHUB:-0}" = "1" ]]; then

5555

fi

5656
5757

echo "Running kitchen-sink plugin Docker E2E..."

58-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

58+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

5959

docker_e2e_harness_mount_args

60-

docker run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" "${DOCKER_ENV_ARGS[@]}" -i "$IMAGE_NAME" bash scripts/e2e/lib/kitchen-sink-plugin/sweep.sh \

60+

docker_e2e_docker_run_cmd run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" "${DOCKER_ENV_ARGS[@]}" -i "$IMAGE_NAME" bash scripts/e2e/lib/kitchen-sink-plugin/sweep.sh \

6161

>"$RUN_LOG" 2>&1 &

6262

docker_pid="$!"

6363
6464

while kill -0 "$docker_pid" 2>/dev/null; do

65-

if docker inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

66-

docker stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

65+

if docker_e2e_docker_cmd inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

66+

docker_e2e_docker_cmd stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

6767

fi

6868

sleep 2

6969

done

Original file line numberDiff line numberDiff line change

@@ -12,7 +12,7 @@ RUN_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-rpc.XXXXXX")"

1212

STATS_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-kitchen-sink-rpc-stats.XXXXXX")"

1313
1414

cleanup() {

15-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

15+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

1616

rm -f "$RUN_LOG" "$STATS_LOG"

1717

}

1818

trap cleanup EXIT

@@ -40,15 +40,15 @@ for env_name in \

4040

done

4141
4242

echo "Running kitchen-sink RPC Docker E2E..."

43-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

43+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

4444

docker_e2e_harness_mount_args

45-

docker run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" "${DOCKER_ENV_ARGS[@]}" -i "$IMAGE_NAME" \

45+

docker_e2e_docker_run_cmd run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" "${DOCKER_ENV_ARGS[@]}" -i "$IMAGE_NAME" \

4646

node scripts/e2e/kitchen-sink-rpc-walk.mjs >"$RUN_LOG" 2>&1 &

4747

docker_pid="$!"

4848
4949

while kill -0 "$docker_pid" 2>/dev/null; do

50-

if docker inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

51-

docker stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

50+

if docker_e2e_docker_cmd inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

51+

docker_e2e_docker_cmd stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

5252

fi

5353

sleep 2

5454

done

Original file line numberDiff line numberDiff line change

@@ -12,24 +12,24 @@ RUN_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-onboard.XXXXXX")"

1212

STATS_LOG="$(mktemp "${TMPDIR:-/tmp}/openclaw-onboard-stats.XXXXXX")"

1313
1414

cleanup() {

15-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

15+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

1616

rm -f "$RUN_LOG" "$STATS_LOG"

1717

}

1818

trap cleanup EXIT

1919
2020

docker_e2e_build_or_reuse "$IMAGE_NAME" onboard

2121
2222

echo "Running onboarding E2E..."

23-

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

23+

docker_e2e_docker_cmd rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

2424

docker_e2e_harness_mount_args

25-

docker run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" -t \

25+

docker_e2e_docker_run_cmd run --name "$CONTAINER_NAME" "${DOCKER_E2E_HARNESS_ARGS[@]}" -t \

2626

-e "OPENCLAW_TEST_STATE_FUNCTION_B64=$OPENCLAW_TEST_STATE_FUNCTION_B64" \

2727

"$IMAGE_NAME" bash scripts/e2e/lib/onboard/scenario.sh >"$RUN_LOG" 2>&1 &

2828

docker_pid="$!"

2929
3030

while kill -0 "$docker_pid" 2>/dev/null; do

31-

if docker inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

32-

docker stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

31+

if docker_e2e_docker_cmd inspect "$CONTAINER_NAME" >/dev/null 2>&1; then

32+

docker_e2e_docker_cmd stats --no-stream --format '{{json .}}' "$CONTAINER_NAME" >>"$STATS_LOG" 2>/dev/null || true

3333

fi

3434

sleep 2

3535

done

Original file line numberDiff line numberDiff line change

@@ -478,7 +478,7 @@ test -f "$TMPDIR/docker-cmd-seen"

478478

expect(runner).toContain("OPENCLAW_ONBOARD_MAX_MEMORY_MIB");

479479

expect(runner).toContain("OPENCLAW_ONBOARD_MAX_CPU_PERCENT");

480480

expect(runner).toContain("--name \"$CONTAINER_NAME\"");

481-

expect(runner).toContain("docker stats --no-stream");

481+

expect(runner).toContain("docker_e2e_docker_cmd stats --no-stream");

482482

expect(runner).toContain("assert-resource-ceiling.mjs");

483483

expect(runner).not.toContain("docker_e2e_run_with_harness -t");

484484

});

@@ -493,6 +493,11 @@ test -f "$TMPDIR/docker-cmd-seen"

493493
494494

expect(runner, path).toContain('RUN_LOG="$(mktemp');

495495

expect(runner, path).toContain('STATS_LOG="$(mktemp');

496+

expect(runner, path).toContain('docker_e2e_docker_run_cmd run --name "$CONTAINER_NAME"');

497+

expect(runner, path).toContain('docker_e2e_docker_cmd inspect "$CONTAINER_NAME"');

498+

expect(runner, path).toContain("docker_e2e_docker_cmd stats --no-stream");

499+

expect(runner, path).not.toMatch(/(^|\n)docker run --name "\$CONTAINER_NAME"/u);

500+

expect(runner, path).not.toMatch(/(^|\n)docker (?:inspect|stats) /u);

496501

expect(runner, path).toMatch(/cleanup\(\) \{[\s\S]*rm -f "\$RUN_LOG" "\$STATS_LOG"/u);

497502

}

498503

});