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

推荐订阅源

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
test: harden live release validation flakes · openclaw/op...
steipete · 2026-04-28 · via Recent Commits to openclaw:main

@@ -19,7 +19,7 @@ docker_build_on_missing_enabled() {

1919

[ "${OPENCLAW_TESTBOX:-0}" = "1" ]

2020

}

212122-

docker_build_exec() {

22+

docker_build_command() {

2323

local build_cmd=(docker build)

2424

if [ "${OPENCLAW_DOCKER_BUILD_USE_BUILDX:-0}" = "1" ]; then

2525

build_cmd=(docker buildx build --load)

@@ -31,23 +31,66 @@ docker_build_exec() {

3131

fi

3232

fi

333334-

env DOCKER_BUILDKIT=1 "${build_cmd[@]}" "$@"

34+

printf '%s\0' env DOCKER_BUILDKIT=1 "${build_cmd[@]}" "$@"

3535

}

363637-

docker_build_run() {

37+

docker_build_transient_failure() {

38+

local log_file="$1"

39+

grep -Eqi \

40+

'frontend grpc server closed unexpectedly|failed to dial gRPC|no active session|buildkit.*connection.*closed|rpc error: code = Unavailable' \

41+

"$log_file"

42+

}

43+44+

docker_build_retry_count() {

45+

local configured="${OPENCLAW_DOCKER_BUILD_RETRIES:-2}"

46+

if [[ "$configured" =~ ^[0-9]+$ ]]; then

47+

echo "$configured"

48+

return 0

49+

fi

50+

echo 2

51+

}

52+53+

docker_build_with_retries() {

3854

local label="$1"

3955

shift

56+

local retries

57+

retries="$(docker_build_retry_count)"

58+

local attempt=1

59+

local max_attempts=$((retries + 1))

60+

local log_file

61+

local command=()

62+

while IFS= read -r -d '' part; do

63+

command+=("$part")

64+

done < <(docker_build_command "$@")

406541-

local build_cmd=(docker build)

42-

if [ "${OPENCLAW_DOCKER_BUILD_USE_BUILDX:-0}" = "1" ]; then

43-

build_cmd=(docker buildx build --load)

44-

if [ -n "${OPENCLAW_DOCKER_BUILD_CACHE_FROM:-}" ]; then

45-

build_cmd+=(--cache-from "${OPENCLAW_DOCKER_BUILD_CACHE_FROM}")

66+

while true; do

67+

log_file="$(docker_e2e_run_log "$label")"

68+

if "${command[@]}" >"$log_file" 2>&1; then

69+

rm -f "$log_file"

70+

return 0

4671

fi

47-

if [ -n "${OPENCLAW_DOCKER_BUILD_CACHE_TO:-}" ]; then

48-

build_cmd+=(--cache-to "${OPENCLAW_DOCKER_BUILD_CACHE_TO}")

72+73+

if [ "$attempt" -ge "$max_attempts" ] || ! docker_build_transient_failure "$log_file"; then

74+

docker_e2e_print_log "$log_file"

75+

rm -f "$log_file"

76+

return 1

4977

fi

50-

fi

517852-

run_logged "$label" env DOCKER_BUILDKIT=1 "${build_cmd[@]}" "$@"

79+

echo "Docker build failed with a transient BuildKit transport error; retrying ($attempt/$retries)..." >&2

80+

docker_e2e_print_log "$log_file"

81+

rm -f "$log_file"

82+

attempt=$((attempt + 1))

83+

sleep "$attempt"

84+

done

85+

}

86+87+

docker_build_exec() {

88+

docker_build_with_retries docker-build "$@"

89+

}

90+91+

docker_build_run() {

92+

local label="$1"

93+

shift

94+95+

docker_build_with_retries "$label" "$@"

5396

}