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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
J
Java Code Geeks
G
Google Developers Blog
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
月光博客
月光博客
B
Blog
WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
博客园_首页
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Jina AI
Jina AI
S
SegmentFault 最新的问题
H
Help Net Security
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News

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(ci): show docker build heartbeats · openclaw/openclaw...
vincentkoc · 2026-06-03 · via Recent Commits to openclaw:main

@@ -115,7 +115,7 @@ describe("docker build helper", () => {

115115

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

116116

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

117117

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

118-

expect(helper).toContain('docker_build_run_command "$timeout_value" "${command[@]}"');

118+

expect(helper).toContain('docker_build_run_logged "$label" "$timeout_value" "$log_file"');

119119

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

120120

expect(helper).toContain("frontend grpc server closed unexpectedly");

121121

});

@@ -241,6 +241,104 @@ grep -q '^build -t demo-image .$' "$TMPDIR/docker-seen"

241241

}

242242

});

243243244+

it("prints heartbeat progress for long successful centralized Docker builds", () => {

245+

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

246+247+

try {

248+

const binDir = join(workDir, "bin");

249+

mkdirSync(binDir);

250+

writeFileSync(

251+

join(binDir, "timeout"),

252+

`#!/bin/bash

253+

set -euo pipefail

254+

if [[ "$1" = "--kill-after=1s" ]]; then

255+

exit 0

256+

fi

257+

shift 2

258+

"$@"

259+

`,

260+

);

261+

chmodSync(join(binDir, "timeout"), 0o755);

262+

writeFileSync(

263+

join(binDir, "docker"),

264+

`#!/bin/sh

265+

printf "captured docker build log\\n"

266+

/bin/sleep 2

267+

`,

268+

);

269+

chmodSync(join(binDir, "docker"), 0o755);

270+

const rootDir = process.cwd();

271+

const script = `

272+

set -euo pipefail

273+

ROOT_DIR=${shellQuote(rootDir)}

274+

TMPDIR=${shellQuote(workDir)}

275+

export ROOT_DIR TMPDIR

276+

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

277+

export OPENCLAW_DOCKER_BUILD_HEARTBEAT_SECONDS=1

278+279+

source "$ROOT_DIR/scripts/lib/docker-build.sh"

280+281+

output="$(docker_build_run e2e-build -t demo-image .)"

282+

[[ "$output" = *"Docker build e2e-build still running ("* ]]

283+

[[ "$output" = *"log bytes captured"* ]]

284+

[[ "$output" != *"captured docker build log"* ]]

285+

`;

286+287+

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

288+

} finally {

289+

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

290+

}

291+

});

292+293+

it("does not delay fast successful centralized Docker builds until the next heartbeat", () => {

294+

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

295+296+

try {

297+

const binDir = join(workDir, "bin");

298+

mkdirSync(binDir);

299+

writeFileSync(

300+

join(binDir, "timeout"),

301+

`#!/bin/bash

302+

set -euo pipefail

303+

if [[ "$1" = "--kill-after=1s" ]]; then

304+

exit 0

305+

fi

306+

shift 2

307+

"$@"

308+

`,

309+

);

310+

chmodSync(join(binDir, "timeout"), 0o755);

311+

writeFileSync(

312+

join(binDir, "docker"),

313+

`#!/bin/sh

314+

printf "quick docker build log\\n"

315+

`,

316+

);

317+

chmodSync(join(binDir, "docker"), 0o755);

318+

const rootDir = process.cwd();

319+

const script = `

320+

set -euo pipefail

321+

ROOT_DIR=${shellQuote(rootDir)}

322+

TMPDIR=${shellQuote(workDir)}

323+

export ROOT_DIR TMPDIR

324+

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

325+

export OPENCLAW_DOCKER_BUILD_HEARTBEAT_SECONDS=30

326+327+

source "$ROOT_DIR/scripts/lib/docker-build.sh"

328+329+

output="$(docker_build_run e2e-build -t demo-image .)"

330+

[[ -z "$output" ]]

331+

`;

332+

const startedAt = Date.now();

333+334+

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

335+336+

expect(Date.now() - startedAt).toBeLessThan(5_000);

337+

} finally {

338+

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

339+

}

340+

});

341+244342

it("fails centralized Docker builds fast when timeout is unavailable", () => {

245343

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

246344