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

推荐订阅源

Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
IT之家
IT之家
Vercel News
Vercel News
C
Check Point Blog
Google DeepMind News
Google DeepMind News
月光博客
月光博客
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog

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 transient GitHub API suspension errors...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -287,7 +287,7 @@ jobs:

287287

printf '%s\n' "$output"

288288

return 0

289289

fi

290-

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

290+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

291291

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

292292

sleep $((attempt * 10))

293293

continue

@@ -417,7 +417,7 @@ jobs:

417417

printf '%s\n' "$output"

418418

return 0

419419

fi

420-

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

420+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

421421

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

422422

sleep $((attempt * 10))

423423

continue

@@ -557,7 +557,7 @@ jobs:

557557

printf '%s\n' "$output"

558558

return 0

559559

fi

560-

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

560+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

561561

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

562562

sleep $((attempt * 10))

563563

continue

@@ -859,7 +859,7 @@ jobs:

859859

printf '%s\n' "$output"

860860

return 0

861861

fi

862-

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

862+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

863863

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

864864

sleep $((attempt * 10))

865865

continue

@@ -975,7 +975,7 @@ jobs:

975975

printf '%s\n' "$output"

976976

return 0

977977

fi

978-

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

978+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

979979

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

980980

sleep $((attempt * 10))

981981

continue

@@ -1089,6 +1089,29 @@ jobs:

10891089

run: |

10901090

set -euo pipefail

109110911092+

gh_with_retry() {

1093+

local output status attempt

1094+

for attempt in 1 2 3 4 5 6; do

1095+

set +e

1096+

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

1097+

status=$?

1098+

set -e

1099+

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

1100+

printf '%s\n' "$output"

1101+

return 0

1102+

fi

1103+

if [[ "$output" == *"Bad credentials"* || "$output" == *"HTTP 401"* || "$output" == *"secondary rate limit"* || "$output" == *"API rate limit"* || "$output" == *"Sorry. Your account was suspended"* ]]; then

1104+

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

1105+

sleep $((attempt * 10))

1106+

continue

1107+

fi

1108+

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

1109+

return "$status"

1110+

done

1111+

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

1112+

return "$status"

1113+

}

1114+10921115

release_check_blocking_job() {

10931116

case "$1" in

10941117

"resolve_target" | \

@@ -1145,7 +1168,7 @@ jobs:

11451168

fi

1146116911471170

local run_json status conclusion url attempt head_sha

1148-

run_json="$(gh run view "$run_id" --json status,conclusion,url,attempt,headSha,jobs)"

1171+

run_json="$(gh_with_retry run view "$run_id" --json status,conclusion,url,attempt,headSha,jobs)"

11491172

status="$(jq -r '.status' <<< "$run_json")"

11501173

conclusion="$(jq -r '.conclusion' <<< "$run_json")"

11511174

url="$(jq -r '.url' <<< "$run_json")"

@@ -1192,7 +1215,7 @@ jobs:

11921215

fi

1193121611941217

local run_json row

1195-

run_json="$(gh run view "$run_id" --json status,conclusion,url,createdAt,updatedAt,headSha)"

1218+

run_json="$(gh_with_retry run view "$run_id" --json status,conclusion,url,createdAt,updatedAt,headSha)"

11961219

row="$(

11971220

jq -r --arg label "$label" '

11981221

def ts: fromdateiso8601;

@@ -1228,7 +1251,7 @@ jobs:

12281251

echo

12291252

echo "### Slowest jobs: ${label}"

12301253

echo

1231-

gh run view "$run_id" --json jobs --jq '

1254+

gh_with_retry run view "$run_id" --json jobs --jq '

12321255

def ts: fromdateiso8601;

12331256

"| Job | Result | Minutes |",

12341257

"| --- | --- | ---: |",

@@ -1245,7 +1268,7 @@ jobs:

12451268

echo

12461269

echo "### Longest queues: ${label}"

12471270

echo

1248-

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

1271+

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

12491272

def ts: fromdateiso8601;

12501273

"| Job | Result | Queue minutes | Run minutes |",

12511274

"| --- | --- | ---: | ---: |",

@@ -1274,7 +1297,7 @@ jobs:

12741297

fi

1275129812761299

local run_json status conclusion artifacts_json

1277-

run_json="$(gh run view "$run_id" --json status,conclusion,url,jobs)"

1300+

run_json="$(gh_with_retry run view "$run_id" --json status,conclusion,url,jobs)"

12781301

status="$(jq -r '.status' <<< "$run_json")"

12791302

conclusion="$(jq -r '.conclusion' <<< "$run_json")"

12801303

if [[ "$status" == "completed" && "$conclusion" == "success" ]]; then

@@ -1297,7 +1320,7 @@ jobs:

12971320

echo

12981321

echo "Artifacts:"

12991322

artifacts_json="$(

1300-

gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/artifacts?per_page=100" 2>/dev/null || true

1323+

gh_with_retry api "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/artifacts?per_page=100" 2>/dev/null || true

13011324

)"

13021325

if [[ -n "${artifacts_json// }" ]]; then

13031326

jq -r '