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

推荐订阅源

Y
Y Combinator Blog
腾讯CDC
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园_首页
D
DataBreaches.Net
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
月光博客
月光博客
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Vercel News
Vercel News
WordPress大学
WordPress大学
J
Java Code Geeks
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42

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): validate docker build limits · openclaw/opencla...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -614,6 +614,82 @@ source "$ROOT_DIR/scripts/lib/docker-build.sh"

614614

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

615615

});

616616
617+

it("normalizes zero-padded centralized Docker build retry counts", () => {

618+

const rootDir = process.cwd();

619+

const script = `

620+

set -euo pipefail

621+

ROOT_DIR=${shellQuote(rootDir)}

622+

export ROOT_DIR

623+

export OPENCLAW_DOCKER_BUILD_RETRIES=08

624+
625+

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

626+
627+

[[ "$(docker_build_retry_count)" = "8" ]]

628+

`;

629+
630+

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

631+

});

632+
633+

it.each([

634+

[

635+

"retry count",

636+

"OPENCLAW_DOCKER_BUILD_RETRIES",

637+

"2x",

638+

"invalid OPENCLAW_DOCKER_BUILD_RETRIES: 2x",

639+

],

640+

[

641+

"heartbeat interval",

642+

"OPENCLAW_DOCKER_BUILD_HEARTBEAT_SECONDS",

643+

"soon",

644+

"invalid OPENCLAW_DOCKER_BUILD_HEARTBEAT_SECONDS: soon",

645+

],

646+

])(

647+

"rejects invalid centralized Docker build %s before invoking docker",

648+

(_label, envName, value, expectedError) => {

649+

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

650+
651+

try {

652+

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

653+

const markerPath = join(workDir, "docker-invoked");

654+

mkdirSync(binDir);

655+

writeFileSync(

656+

join(binDir, "docker"),

657+

`#!/bin/bash

658+

printf invoked >${shellQuote(markerPath)}

659+

exit 0

660+

`,

661+

);

662+

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

663+

const rootDir = process.cwd();

664+

const script = `

665+

set -euo pipefail

666+

ROOT_DIR=${shellQuote(rootDir)}

667+

TMPDIR=${shellQuote(workDir)}

668+

export ROOT_DIR TMPDIR

669+

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

670+
671+

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

672+
673+

docker_build_run e2e-build -t demo-image .

674+

`;

675+
676+

const result = spawnSync("bash", ["-lc", script], {

677+

encoding: "utf8",

678+

env: {

679+

...process.env,

680+

[envName]: value,

681+

},

682+

});

683+
684+

expect(result.status).toBe(2);

685+

expect(result.stderr).toContain(expectedError);

686+

expect(existsSync(markerPath)).toBe(false);

687+

} finally {

688+

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

689+

}

690+

},

691+

);

692+
617693

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

618694

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

619695