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

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

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

@@ -11,7 +11,7 @@ TOKEN="reload-e2e-token"

1111

CONTAINER_NAME="openclaw-config-reload-e2e-$$"

12121313

cleanup() {

14-

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

14+

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

1515

}

1616

trap cleanup EXIT

1717

@@ -61,88 +61,42 @@ JSON

6161

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

62626363

echo "Waiting for gateway..."

64-

ready=0

65-

for _ in $(seq 1 180); do

66-

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

67-

break

68-

fi

69-

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

70-

ready=1

71-

break

72-

fi

73-

sleep 0.5

74-

done

75-76-

if [ "$ready" -ne 1 ]; then

64+

if ! docker_e2e_wait_container_bash "$CONTAINER_NAME" 180 0.5 "source scripts/lib/openclaw-e2e-instance.sh; openclaw_e2e_probe_tcp 127.0.0.1 $PORT"; then

7765

echo "Gateway failed to start"

78-

docker logs "$CONTAINER_NAME" 2>&1 | tail -n 120 || true

79-

docker exec "$CONTAINER_NAME" bash -lc "tail -n 120 /tmp/config-reload-e2e.log" || true

66+

docker_e2e_docker_cmd logs "$CONTAINER_NAME" 2>&1 | tail -n 120 || true

67+

docker_e2e_docker_cmd exec "$CONTAINER_NAME" bash -lc "tail -n 120 /tmp/config-reload-e2e.log" || true

8068

exit 1

8169

fi

82708371

echo "Checking initial RPC status..."

84-

docker exec "$CONTAINER_NAME" bash -lc "

72+

docker_e2e_docker_cmd exec "$CONTAINER_NAME" bash -lc "

8573

source /tmp/openclaw-test-state-env

8674

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

8775

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

8876

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

8977

"

90789179

echo "Mutating hot-reload gateway metadata..."

92-

docker exec "$CONTAINER_NAME" bash -lc "source /tmp/openclaw-test-state-env

93-

node --input-type=module - <<'NODE'

94-

import fs from 'node:fs';

95-96-

const configPath = process.env.OPENCLAW_CONFIG_PATH;

97-

const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));

98-

config.gateway.channelHealthCheckMinutes = 2;

99-

fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + '\n', 'utf8');

100-

NODE"

80+

docker_e2e_docker_cmd exec "$CONTAINER_NAME" bash -lc "source /tmp/openclaw-test-state-env

81+

node scripts/e2e/lib/config-reload/mutate-metadata.mjs"

1018210283

sleep 2

10384104-

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

85+

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

10586

echo "Gateway container exited after config metadata write"

106-

docker logs "$CONTAINER_NAME" 2>&1 | tail -n 120 || true

87+

docker_e2e_docker_cmd logs "$CONTAINER_NAME" 2>&1 | tail -n 120 || true

10788

exit 1

10889

fi

1099011091

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

111-

docker exec "$CONTAINER_NAME" bash -lc "

92+

docker_e2e_docker_cmd exec "$CONTAINER_NAME" bash -lc "

11293

source /tmp/openclaw-test-state-env

11394

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

11495

entry=\"\$(openclaw_e2e_resolve_entrypoint)\"

11596

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

11697

"

1179811899

echo "Checking reload log..."

119-

docker exec "$CONTAINER_NAME" bash -lc "node --input-type=module - <<'NODE'

120-

import fs from 'node:fs';

121-122-

const log = fs.readFileSync('/tmp/config-reload-e2e.log', 'utf8');

123-

const reloadLines = log

124-

.split('\n')

125-

.filter((line) => line.includes('config change detected; evaluating reload'));

126-

const restartLines = log

127-

.split('\n')

128-

.filter((line) => line.includes('config change requires gateway restart'));

129-

if (restartLines.length > 0) {

130-

console.error(log.split('\n').slice(-160).join('\n'));

131-

throw new Error('unexpected restart-required reload line found');

132-

}

133-

for (const line of reloadLines) {

134-

for (const needle of ['gateway.auth.token', 'plugins.entries.firecrawl.config.webFetch']) {

135-

if (line.includes(needle)) {

136-

console.error(log.split('\n').slice(-160).join('\n'));

137-

throw new Error('runtime-only path appeared in reload diff: ' + needle);

138-

}

139-

}

140-

}

141-

if (reloadLines.length === 0) {

142-

console.error(log.split('\n').slice(-160).join('\n'));

143-

throw new Error('expected config reload detection log after metadata write');

144-

}

145-

console.log('ok');

146-

NODE"

100+

docker_e2e_docker_cmd exec "$CONTAINER_NAME" bash -lc "node scripts/e2e/lib/config-reload/assert-log.mjs"

147101148102

echo "Config reload Docker E2E passed."