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

推荐订阅源

腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
The Cloudflare Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
Jina AI
Jina AI
V
V2EX
罗磊的独立博客
V
Visual Studio Blog
A
About on SuperTechFans
IT之家
IT之家
P
Proofpoint News Feed
B
Blog
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Y
Y Combinator 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: parallelize release publish workflows · openclaw/open...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -33,7 +33,7 @@ on:

3333

required: false

3434

type: string

3535

publish_openclaw_npm:

36-

description: Publish the OpenClaw npm package after plugin npm and ClawHub publish complete

36+

description: Publish the OpenClaw npm package after plugin npm succeeds; ClawHub may still run

3737

required: true

3838

default: true

3939

type: boolean

@@ -169,15 +169,15 @@ jobs:

169169

run: |

170170

set -euo pipefail

171171172-

dispatch_and_wait() {

172+

dispatch_workflow() {

173173

local workflow="$1"

174174

shift

175175176-

local before_json dispatch_output run_id status conclusion url

176+

local before_json dispatch_output run_id

177177

before_json="$(gh run list --repo "$GITHUB_REPOSITORY" --workflow "$workflow" --event workflow_dispatch --limit 100 --json databaseId --jq '[.[].databaseId]')"

178178179179

dispatch_output="$(gh workflow run --repo "$GITHUB_REPOSITORY" "$workflow" --ref "$CHILD_WORKFLOW_REF" "$@" 2>&1)"

180-

printf '%s\n' "$dispatch_output"

180+

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

181181

run_id="$(

182182

printf '%s\n' "$dispatch_output" |

183183

sed -nE 's#.*actions/runs/([0-9]+).*#\1#p' |

@@ -202,15 +202,14 @@ jobs:

202202

exit 1

203203

fi

204204205-

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

205+

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

206+

printf '%s\n' "${run_id}"

207+

}

206208207-

cancel_child() {

208-

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

209-

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

210-

gh run cancel --repo "$GITHUB_REPOSITORY" "$run_id" >/dev/null 2>&1 || true

211-

fi

212-

}

213-

trap cancel_child EXIT INT TERM

209+

wait_for_run() {

210+

local workflow="$1"

211+

local run_id="$2"

212+

local status conclusion url

214213215214

while true; do

216215

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

@@ -219,7 +218,6 @@ jobs:

219218

fi

220219

sleep 30

221220

done

222-

trap - EXIT INT TERM

223221224222

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

225223

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

@@ -229,16 +227,36 @@ jobs:

229227

} >> "$GITHUB_STEP_SUMMARY"

230228

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

231229

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

232-

exit 1

230+

return 1

233231

fi

234232

}

235233234+

wait_for_run_background() {

235+

local workflow="$1"

236+

local run_id="$2"

237+

local result_file="$3"

238+

(

239+

if wait_for_run "${workflow}" "${run_id}"; then

240+

printf 'success\n' > "${result_file}"

241+

else

242+

printf 'failure\n' > "${result_file}"

243+

fi

244+

) &

245+

wait_run_pid="$!"

246+

}

247+236248

{

237249

echo "### Publish sequence"

238250

echo

239251

echo "- Workflow ref: \`${CHILD_WORKFLOW_REF}\`"

240252

echo "- Release tag: \`${RELEASE_TAG}\`"

241253

echo "- Release SHA: \`${TARGET_SHA}\`"

254+

echo "- Plugin npm and ClawHub publish: dispatched in parallel"

255+

if [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then

256+

echo "- OpenClaw npm publish: starts after plugin npm succeeds; ClawHub may still be running"

257+

else

258+

echo "- OpenClaw npm publish: skipped by input"

259+

fi

242260

} >> "$GITHUB_STEP_SUMMARY"

243261244262

npm_args=(-f publish_scope="${PLUGIN_PUBLISH_SCOPE}" -f ref="${TARGET_SHA}")

@@ -248,15 +266,53 @@ jobs:

248266

clawhub_args+=(-f plugins="${PLUGINS}")

249267

fi

250268251-

dispatch_and_wait plugin-npm-release.yml "${npm_args[@]}"

252-

dispatch_and_wait plugin-clawhub-release.yml "${clawhub_args[@]}"

269+

plugin_npm_run_id="$(dispatch_workflow plugin-npm-release.yml "${npm_args[@]}")"

270+

plugin_clawhub_run_id="$(dispatch_workflow plugin-clawhub-release.yml "${clawhub_args[@]}")"

271+272+

if ! wait_for_run plugin-npm-release.yml "${plugin_npm_run_id}"; then

273+

echo "Plugin npm publish failed; cancelling ClawHub publish child ${plugin_clawhub_run_id}." >&2

274+

gh run cancel --repo "$GITHUB_REPOSITORY" "${plugin_clawhub_run_id}" >/dev/null 2>&1 || true

275+

exit 1

276+

fi

253277278+

openclaw_npm_run_id=""

254279

if [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then

255-

dispatch_and_wait openclaw-npm-release.yml \

280+

openclaw_npm_run_id="$(dispatch_workflow openclaw-npm-release.yml \

256281

-f tag="${RELEASE_TAG}" \

257282

-f preflight_only=false \

258283

-f preflight_run_id="${PREFLIGHT_RUN_ID}" \

259-

-f npm_dist_tag="${RELEASE_NPM_DIST_TAG}"

284+

-f npm_dist_tag="${RELEASE_NPM_DIST_TAG}")"

260285

else

261286

echo "- OpenClaw npm publish: skipped by input" >> "$GITHUB_STEP_SUMMARY"

262287

fi

288+289+

clawhub_result="$RUNNER_TEMP/clawhub-result.txt"

290+

wait_run_pid=""

291+

wait_for_run_background plugin-clawhub-release.yml "${plugin_clawhub_run_id}" "${clawhub_result}"

292+

clawhub_pid="${wait_run_pid}"

293+294+

openclaw_result=""

295+

openclaw_pid=""

296+

if [[ -n "${openclaw_npm_run_id}" ]]; then

297+

openclaw_result="$RUNNER_TEMP/openclaw-npm-result.txt"

298+

wait_run_pid=""

299+

wait_for_run_background openclaw-npm-release.yml "${openclaw_npm_run_id}" "${openclaw_result}"

300+

openclaw_pid="${wait_run_pid}"

301+

fi

302+303+

failed=0

304+

if ! wait "${clawhub_pid}"; then

305+

failed=1

306+

fi

307+

if [[ -n "${openclaw_pid}" ]] && ! wait "${openclaw_pid}"; then

308+

failed=1

309+

fi

310+

if [[ -f "${clawhub_result}" && "$(cat "${clawhub_result}")" != "success" ]]; then

311+

failed=1

312+

fi

313+

if [[ -n "${openclaw_result}" && -f "${openclaw_result}" && "$(cat "${openclaw_result}")" != "success" ]]; then

314+

failed=1

315+

fi

316+

if [[ "${failed}" != "0" ]]; then

317+

exit 1

318+

fi