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

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
月光博客
月光博客
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
有赞技术团队
有赞技术团队
博客园 - 司徒正美
V
Visual Studio Blog
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
The Cloudflare 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
refactor: reuse docker gateway e2e helpers · openclaw/ope...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -16,6 +16,7 @@ cleanup() {

1616

trap cleanup EXIT

17171818

docker_e2e_build_or_reuse "$IMAGE_NAME" config-reload "$ROOT_DIR/scripts/e2e/Dockerfile" "$ROOT_DIR" "" "$SKIP_BUILD"

19+

docker_e2e_harness_mount_args

1920

OPENCLAW_TEST_STATE_SCRIPT_B64="$(docker_e2e_test_state_shell_b64 config-reload empty)"

20212122

echo "Starting gateway container..."

@@ -29,19 +30,13 @@ docker run -d \

2930

-e OPENCLAW_SKIP_CRON=1 \

3031

-e OPENCLAW_SKIP_CANVAS_HOST=1 \

3132

-e "OPENCLAW_TEST_STATE_SCRIPT_B64=$OPENCLAW_TEST_STATE_SCRIPT_B64" \

33+

"${DOCKER_E2E_HARNESS_ARGS[@]}" \

3234

"$IMAGE_NAME" \

3335

bash -lc "set -euo pipefail

34-

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

35-

{

36-

printf 'export HOME=%q\n' \"\$HOME\"

37-

printf 'export OPENCLAW_HOME=%q\n' \"\$OPENCLAW_HOME\"

38-

printf 'export OPENCLAW_STATE_DIR=%q\n' \"\$OPENCLAW_STATE_DIR\"

39-

printf 'export OPENCLAW_CONFIG_PATH=%q\n' \"\$OPENCLAW_CONFIG_PATH\"

40-

printf 'export OPENCLAW_AGENT_DIR=%q\n' \"\${OPENCLAW_AGENT_DIR-}\"

41-

printf 'export PI_CODING_AGENT_DIR=%q\n' \"\${PI_CODING_AGENT_DIR-}\"

42-

} >/tmp/openclaw-test-state-env

43-

entry=dist/index.mjs

44-

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

36+

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

37+

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

38+

openclaw_e2e_write_state_env

39+

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

4540

cat > \"\$OPENCLAW_CONFIG_PATH\" <<'JSON'

4641

{

4742

\"gateway\": {

@@ -65,31 +60,15 @@ cat > \"\$OPENCLAW_CONFIG_PATH\" <<'JSON'

6560

}

6661

}

6762

JSON

68-

node \"\$entry\" gateway --port $PORT --bind loopback --allow-unconfigured > /tmp/config-reload-e2e.log 2>&1" >/dev/null

63+

openclaw_e2e_exec_gateway \"\$entry\" $PORT loopback /tmp/config-reload-e2e.log" >/dev/null

69647065

echo "Waiting for gateway..."

7166

ready=0

7267

for _ in $(seq 1 180); do

7368

if [ "$(docker inspect -f '{{.State.Running}}' "$CONTAINER_NAME" 2>/dev/null || echo false)" != "true" ]; then

7469

break

7570

fi

76-

if docker exec "$CONTAINER_NAME" bash -lc "node --input-type=module -e '

77-

import net from \"node:net\";

78-

const socket = net.createConnection({ host: \"127.0.0.1\", port: $PORT });

79-

const timeout = setTimeout(() => {

80-

socket.destroy();

81-

process.exit(1);

82-

}, 400);

83-

socket.on(\"connect\", () => {

84-

clearTimeout(timeout);

85-

socket.end();

86-

process.exit(0);

87-

});

88-

socket.on(\"error\", () => {

89-

clearTimeout(timeout);

90-

process.exit(1);

91-

});

92-

' >/dev/null 2>&1"; then

71+

if docker exec "$CONTAINER_NAME" bash -lc "source scripts/lib/openclaw-e2e-instance.sh; openclaw_e2e_probe_tcp 127.0.0.1 $PORT" >/dev/null 2>&1; then

9372

ready=1

9473

break

9574

fi

@@ -106,8 +85,8 @@ fi

10685

echo "Checking initial RPC status..."

10786

docker exec "$CONTAINER_NAME" bash -lc "

10887

source /tmp/openclaw-test-state-env

109-

entry=dist/index.mjs

110-

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

88+

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

89+

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

11190

node \"\$entry\" gateway status --url ws://127.0.0.1:$PORT --token '$TOKEN' --require-rpc --timeout 30000 >/tmp/config-reload-status-before.log

11291

"

11392

@@ -133,8 +112,8 @@ fi

133112

echo "Checking post-write RPC status..."

134113

docker exec "$CONTAINER_NAME" bash -lc "

135114

source /tmp/openclaw-test-state-env

136-

entry=dist/index.mjs

137-

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

115+

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

116+

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

138117

node \"\$entry\" gateway status --url ws://127.0.0.1:$PORT --token '$TOKEN' --require-rpc --timeout 30000 >/tmp/config-reload-status-after.log

139118

"

140119