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

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网

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): time out Docker image reuse probes · openclaw/o...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -118,6 +118,8 @@ describe("docker build helper", () => {

118118

expect(helper).toContain("OPENCLAW_TESTBOX");

119119

expect(e2eImageHelper).toContain("docker_build_on_missing_enabled");

120120

expect(e2eImageHelper).toContain("Docker image not available; building");

121+

expect(e2eImageHelper).toContain('docker_e2e_docker_cmd image inspect "$image_name"');

122+

expect(e2eImageHelper).toContain('docker_e2e_docker_cmd pull "$image_name"');

121123

expect(liveBuild).toContain("docker image inspect");

122124

expect(liveBuild).toContain("docker pull");

123125

expect(liveBuild).toContain("Live-test image not available; building");

@@ -131,6 +133,65 @@ describe("docker build helper", () => {

131133

);

132134

});

133135136+

it("keeps reused Docker image probes behind the timeout-aware helper", () => {

137+

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-image-reuse-timeout-"));

138+139+

try {

140+

const rootDir = process.cwd();

141+

const script = `

142+

set -euo pipefail

143+

ROOT_DIR=${shellQuote(rootDir)}

144+

TMPDIR=${shellQuote(workDir)}

145+

export ROOT_DIR TMPDIR

146+

export DOCKER_COMMAND_TIMEOUT=3s

147+

export OPENCLAW_SKIP_DOCKER_BUILD=1

148+149+

mkdir -p "$TMPDIR/bin"

150+

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

151+

#!/usr/bin/env bash

152+

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

153+

shift

154+

"$@"

155+

SH

156+

chmod +x "$TMPDIR/bin/timeout"

157+

export PATH="$TMPDIR/bin:$PATH"

158+159+

docker() {

160+

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

161+

case "$1 $2" in

162+

"image inspect")

163+

return 1

164+

;;

165+

"pull openclaw-reuse-image")

166+

return 0

167+

;;

168+

*)

169+

return 9

170+

;;

171+

esac

172+

}

173+

export -f docker

174+175+

source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"

176+177+

docker_e2e_build_or_reuse \\

178+

openclaw-reuse-image \\

179+

reuse-timeout-proof \\

180+

"$ROOT_DIR/scripts/e2e/Dockerfile" \\

181+

"$ROOT_DIR" \\

182+

functional

183+184+

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

185+

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

186+

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

187+

`;

188+189+

execFileSync("bash", ["-lc", script], { encoding: "utf8" });

190+

} finally {

191+

rmSync(workDir, { recursive: true, force: true });

192+

}

193+

});

194+134195

it("removes functional Docker build package inputs after the build", () => {

135196

const workDir = mkdtempSync(join(tmpdir(), "openclaw-docker-build-cleanup-"));

136197