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

推荐订阅源

P
Proofpoint News Feed
博客园_首页
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
Last Week in AI
Last Week in AI

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): poll child workflows through actions api · o...
steipete · 2026-05-23 · via Recent Commits to openclaw:main

@@ -301,6 +301,14 @@ jobs:

301301

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

302302

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

303303304+

fetch_child_run_json() {

305+

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

306+

}

307+308+

fetch_child_jobs() {

309+

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

310+

}

311+304312

cancel_child() {

305313

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

306314

echo "Cancelling child workflow ${workflow}: ${run_id}" >&2

@@ -311,26 +319,26 @@ jobs:

311319312320

poll_count=0

313321

while true; do

314-

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

322+

status="$(fetch_child_run_json | jq -r '.status')"

315323

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

316324

break

317325

fi

318326

poll_count=$((poll_count + 1))

319327

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

320328

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

321-

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

329+

fetch_child_jobs | jq 'select(.status != "completed") | {name, status, url: .html_url}' || true

322330

fi

323331

sleep 30

324332

done

325333

trap - EXIT INT TERM

326334327-

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

328-

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

335+

conclusion="$(fetch_child_run_json | jq -r '.conclusion // ""')"

336+

url="$(fetch_child_run_json | jq -r '.html_url')"

329337

echo "${workflow} finished with ${conclusion}: ${url}"

330338

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

331339

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

332340

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

333-

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

341+

fetch_child_jobs | jq 'select(.conclusion != "success" and .conclusion != "skipped") | {name, conclusion, url: .html_url}' || true

334342

exit 1

335343

fi

336344

}

@@ -401,6 +409,14 @@ jobs:

401409

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

402410

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

403411412+

fetch_child_run_json() {

413+

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

414+

}

415+416+

fetch_child_jobs() {

417+

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

418+

}

419+404420

cancel_child() {

405421

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

406422

echo "Cancelling child workflow ${workflow}: ${run_id}" >&2

@@ -411,26 +427,26 @@ jobs:

411427412428

poll_count=0

413429

while true; do

414-

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

430+

status="$(fetch_child_run_json | jq -r '.status')"

415431

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

416432

break

417433

fi

418434

poll_count=$((poll_count + 1))

419435

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

420436

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

421-

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

437+

fetch_child_jobs | jq 'select(.status != "completed") | {name, status, url: .html_url}' || true

422438

fi

423439

sleep 30

424440

done

425441

trap - EXIT INT TERM

426442427-

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

428-

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

443+

conclusion="$(fetch_child_run_json | jq -r '.conclusion // ""')"

444+

url="$(fetch_child_run_json | jq -r '.html_url')"

429445

echo "${workflow} finished with ${conclusion}: ${url}"

430446

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

431447

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

432448

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

433-

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

449+

fetch_child_jobs | jq 'select(.conclusion != "success" and .conclusion != "skipped") | {name, conclusion, url: .html_url}' || true

434450

exit 1

435451

fi

436452

}

@@ -511,6 +527,14 @@ jobs:

511527

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

512528

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

513529530+

fetch_child_run_json() {

531+

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

532+

}

533+534+

fetch_child_jobs() {

535+

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

536+

}

537+514538

release_check_blocking_job() {

515539

case "$1" in

516540

"resolve_target" | \

@@ -561,20 +585,25 @@ jobs:

561585562586

poll_count=0

563587

while true; do

564-

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

588+

status="$(fetch_child_run_json | jq -r '.status')"

565589

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

566590

break

567591

fi

568592

poll_count=$((poll_count + 1))

569593

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

570594

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

571-

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

595+

fetch_child_jobs | jq 'select(.status != "completed") | {name, status, url: .html_url}' || true

572596

fi

573597

sleep 30

574598

done

575599

trap - EXIT INT TERM

576600577-

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

601+

jobs_json="$(fetch_child_jobs | jq -s '{jobs: [.[] | {name, conclusion, url: .html_url}]}')"

602+

run_json="$(

603+

jq -s '.[0] + .[1]' \

604+

<(fetch_child_run_json | jq '{conclusion: (.conclusion // ""), url: .html_url}') \

605+

<(printf '%s\n' "$jobs_json")

606+

)"

578607

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

579608

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

580609

echo "${workflow} finished with ${conclusion}: ${url}"