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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
Engineering at Meta
Engineering at Meta
量子位
A
About on SuperTechFans
阮一峰的网络日志
阮一峰的网络日志
Recent Announcements
Recent Announcements
博客园 - 司徒正美
V
Visual Studio Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
腾讯CDC
Jina AI
Jina AI
C
Check Point Blog
H
Help Net Security
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
爱范儿
爱范儿
I
InfoQ

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
ci(release): retry child workflow polling · openclaw/open...
steipete · 2026-05-23 · via Recent Commits to openclaw:main

@@ -301,12 +301,35 @@ jobs:

301301

echo "Dispatched ${workflow}: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

302302

echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"

303303304+

gh_with_retry() {

305+

local output status attempt

306+

for attempt in 1 2 3 4 5 6; do

307+

set +e

308+

output="$(gh "$@" 2>&1)"

309+

status=$?

310+

set -e

311+

if [[ "$status" -eq 0 ]]; then

312+

printf '%s\n' "$output"

313+

return 0

314+

fi

315+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* ]]; then

316+

echo "::warning::gh $* failed on attempt ${attempt}: ${output}" >&2

317+

sleep $((attempt * 10))

318+

continue

319+

fi

320+

printf '%s\n' "$output" >&2

321+

return "$status"

322+

done

323+

printf '%s\n' "$output" >&2

324+

return "$status"

325+

}

326+304327

fetch_child_run_json() {

305-

gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

328+

gh_with_retry api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

306329

}

307330308331

fetch_child_jobs() {

309-

gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

332+

gh_with_retry api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

310333

}

311334312335

cancel_child() {

@@ -409,12 +432,35 @@ jobs:

409432

echo "Dispatched ${workflow}: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

410433

echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"

411434435+

gh_with_retry() {

436+

local output status attempt

437+

for attempt in 1 2 3 4 5 6; do

438+

set +e

439+

output="$(gh "$@" 2>&1)"

440+

status=$?

441+

set -e

442+

if [[ "$status" -eq 0 ]]; then

443+

printf '%s\n' "$output"

444+

return 0

445+

fi

446+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* ]]; then

447+

echo "::warning::gh $* failed on attempt ${attempt}: ${output}" >&2

448+

sleep $((attempt * 10))

449+

continue

450+

fi

451+

printf '%s\n' "$output" >&2

452+

return "$status"

453+

done

454+

printf '%s\n' "$output" >&2

455+

return "$status"

456+

}

457+412458

fetch_child_run_json() {

413-

gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

459+

gh_with_retry api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

414460

}

415461416462

fetch_child_jobs() {

417-

gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

463+

gh_with_retry api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

418464

}

419465420466

cancel_child() {

@@ -527,12 +573,35 @@ jobs:

527573

echo "Dispatched ${workflow}: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

528574

echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"

529575576+

gh_with_retry() {

577+

local output status attempt

578+

for attempt in 1 2 3 4 5 6; do

579+

set +e

580+

output="$(gh "$@" 2>&1)"

581+

status=$?

582+

set -e

583+

if [[ "$status" -eq 0 ]]; then

584+

printf '%s\n' "$output"

585+

return 0

586+

fi

587+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* ]]; then

588+

echo "::warning::gh $* failed on attempt ${attempt}: ${output}" >&2

589+

sleep $((attempt * 10))

590+

continue

591+

fi

592+

printf '%s\n' "$output" >&2

593+

return "$status"

594+

done

595+

printf '%s\n' "$output" >&2

596+

return "$status"

597+

}

598+530599

fetch_child_run_json() {

531-

gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

600+

gh_with_retry api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

532601

}

533602534603

fetch_child_jobs() {

535-

gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

604+

gh_with_retry api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq '.jobs[]'

536605

}

537606538607

release_check_blocking_job() {

@@ -816,6 +885,29 @@ jobs:

816885

echo "Dispatched npm-telegram-beta-e2e.yml: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

817886

echo "run_id=${run_id}" >> "$GITHUB_OUTPUT"

818887888+

gh_with_retry() {

889+

local output status attempt

890+

for attempt in 1 2 3 4 5 6; do

891+

set +e

892+

output="$(gh "$@" 2>&1)"

893+

status=$?

894+

set -e

895+

if [[ "$status" -eq 0 ]]; then

896+

printf '%s\n' "$output"

897+

return 0

898+

fi

899+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* ]]; then

900+

echo "::warning::gh $* failed on attempt ${attempt}: ${output}" >&2

901+

sleep $((attempt * 10))

902+

continue

903+

fi

904+

printf '%s\n' "$output" >&2

905+

return "$status"

906+

done

907+

printf '%s\n' "$output" >&2

908+

return "$status"

909+

}

910+819911

cancel_child() {

820912

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

821913

echo "Cancelling child workflow npm-telegram-beta-e2e.yml: ${run_id}" >&2

@@ -826,26 +918,26 @@ jobs:

826918827919

poll_count=0

828920

while true; do

829-

status="$(gh run view "$run_id" --json status --jq '.status')"

921+

status="$(gh_with_retry run view "$run_id" --json status --jq '.status')"

830922

if [[ "$status" == "completed" ]]; then

831923

break

832924

fi

833925

poll_count=$((poll_count + 1))

834926

if (( poll_count % 10 == 0 )); then

835927

echo "Still waiting on npm-telegram-beta-e2e.yml: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}"

836-

gh run view "$run_id" --json jobs --jq '.jobs[] | select(.status != "completed") | {name, status, url}' || true

928+

gh_with_retry run view "$run_id" --json jobs --jq '.jobs[] | select(.status != "completed") | {name, status, url}' || true

837929

fi

838930

sleep 30

839931

done

840932

trap - EXIT INT TERM

841933842-

conclusion="$(gh run view "$run_id" --json conclusion --jq '.conclusion')"

843-

url="$(gh run view "$run_id" --json url --jq '.url')"

934+

conclusion="$(gh_with_retry run view "$run_id" --json conclusion --jq '.conclusion')"

935+

url="$(gh_with_retry run view "$run_id" --json url --jq '.url')"

844936

echo "npm-telegram-beta-e2e.yml finished with ${conclusion}: ${url}"

845937

echo "url=${url}" >> "$GITHUB_OUTPUT"

846938

echo "conclusion=${conclusion}" >> "$GITHUB_OUTPUT"

847939

if [[ "$conclusion" != "success" ]]; then

848-

gh run view "$run_id" --json jobs --jq '.jobs[] | select(.conclusion != "success" and .conclusion != "skipped") | {name, conclusion, url}' || true

940+

gh_with_retry run view "$run_id" --json jobs --jq '.jobs[] | select(.conclusion != "success" and .conclusion != "skipped") | {name, conclusion, url}' || true

849941

exit 1

850942

fi

851943