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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
WordPress大学
WordPress大学
U
Unit 42
I
InfoQ
A
About on SuperTechFans
宝玉的分享
宝玉的分享
J
Java Code Geeks
博客园 - 司徒正美
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
腾讯CDC
Recent Announcements
Recent Announcements

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
refactor: share docker e2e instance helpers · openclaw/op...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -40,68 +40,37 @@ docker run --rm \

4040

"${DOCKER_E2E_HARNESS_ARGS[@]}" \

4141

"$IMAGE_NAME" \

4242

bash -lc "set -euo pipefail

43-

eval \"\$(printf '%s' \"\${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}\" | base64 -d)\"

44-

entry=dist/index.mjs

45-

[ -f \"\$entry\" ] || entry=dist/index.js

43+

source scripts/lib/openclaw-e2e-instance.sh

44+

openclaw_e2e_eval_test_state_from_b64 \"\${OPENCLAW_TEST_STATE_SCRIPT_B64:?missing OPENCLAW_TEST_STATE_SCRIPT_B64}\"

45+

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

4646

export MOCK_PORT=44081

4747

export SUCCESS_MARKER=OPENCLAW_CRON_MCP_CLEANUP_OK

4848

export MOCK_REQUEST_LOG=/tmp/openclaw-cron-mock-openai-requests.jsonl

4949

export OPENCLAW_DOCKER_OPENAI_BASE_URL=\"http://127.0.0.1:\$MOCK_PORT/v1\"

50-

node scripts/e2e/mock-openai-server.mjs >/tmp/cron-mcp-cleanup-mock-openai.log 2>&1 &

51-

mock_pid=\$!

52-

tsx scripts/e2e/cron-mcp-cleanup-seed.ts >/tmp/cron-mcp-cleanup-seed.log

53-

node \"\$entry\" gateway --port $PORT --bind loopback --allow-unconfigured >/tmp/cron-mcp-cleanup-gateway.log 2>&1 &

54-

gateway_pid=\$!

55-

stop_process() {

56-

pid=\"\$1\"

57-

kill \"\$pid\" >/dev/null 2>&1 || true

58-

for _ in \$(seq 1 40); do

59-

if ! kill -0 \"\$pid\" >/dev/null 2>&1; then

60-

wait \"\$pid\" >/dev/null 2>&1 || true

61-

return

62-

fi

63-

sleep 0.25

64-

done

65-

kill -9 \"\$pid\" >/dev/null 2>&1 || true

66-

wait \"\$pid\" >/dev/null 2>&1 || true

67-

}

50+

mock_pid=\"\$(openclaw_e2e_start_mock_openai \"\$MOCK_PORT\" /tmp/cron-mcp-cleanup-mock-openai.log)\"

51+

gateway_pid=

6852

cleanup_inner() {

69-

stop_process \"\$mock_pid\"

70-

stop_process \"\$gateway_pid\"

53+

openclaw_e2e_stop_process \"\${gateway_pid:-}\"

54+

openclaw_e2e_stop_process \"\${mock_pid:-}\"

7155

}

7256

dump_gateway_log_on_error() {

7357

status=\$?

7458

if [ \"\$status\" -ne 0 ]; then

75-

tail -n 80 /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null || true

76-

cat /tmp/cron-mcp-cleanup-seed.log 2>/dev/null || true

77-

cat /tmp/cron-mcp-cleanup-mock-openai.log 2>/dev/null || true

78-

cat \"\$MOCK_REQUEST_LOG\" 2>/dev/null || true

59+

openclaw_e2e_dump_logs \

60+

/tmp/cron-mcp-cleanup-gateway.log \

61+

/tmp/cron-mcp-cleanup-seed.log \

62+

/tmp/cron-mcp-cleanup-mock-openai.log \

63+

\"\$MOCK_REQUEST_LOG\"

7964

fi

8065

cleanup_inner

8166

exit \"\$status\"

8267

}

8368

trap cleanup_inner EXIT

8469

trap dump_gateway_log_on_error ERR

85-

for _ in \$(seq 1 80); do

86-

if node -e \"fetch('http://127.0.0.1:' + process.env.MOCK_PORT + '/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\"; then

87-

break

88-

fi

89-

sleep 0.1

90-

done

91-

node -e \"fetch('http://127.0.0.1:' + process.env.MOCK_PORT + '/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\"

92-

gateway_ready=0

93-

for _ in \$(seq 1 300); do

94-

if grep -q '\[gateway\] ready' /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null; then

95-

gateway_ready=1

96-

break

97-

fi

98-

sleep 0.25

99-

done

100-

if [ \"\$gateway_ready\" -ne 1 ]; then

101-

echo \"Gateway did not become ready\"

102-

tail -n 120 /tmp/cron-mcp-cleanup-gateway.log 2>/dev/null || true

103-

exit 1

104-

fi

70+

openclaw_e2e_wait_mock_openai \"\$MOCK_PORT\"

71+

tsx scripts/e2e/cron-mcp-cleanup-seed.ts >/tmp/cron-mcp-cleanup-seed.log

72+

gateway_pid=\"\$(openclaw_e2e_start_gateway \"\$entry\" $PORT /tmp/cron-mcp-cleanup-gateway.log)\"

73+

openclaw_e2e_wait_gateway_ready \"\$gateway_pid\" /tmp/cron-mcp-cleanup-gateway.log 300

10574

tsx scripts/e2e/cron-mcp-cleanup-docker-client.ts

10675

" >"$CLIENT_LOG" 2>&1

10776

status=${PIPESTATUS[0]}