Repository navigation
fix(release): publish parent fails after dispatch on a gate-blocked stale child, and on a slow beta-floor sync - #161632
Conversation
…or the beta-floor sync
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 2:37 AM ET / 06:37 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch moves stale release-child checks before publisher dispatch, extends the npm beta-floor sync wait, improves operator diagnostics, and updates release guidance and tests. Merge readiness✅ Ready for maintainer review The fix remains useful: current main and the latest release retain the dispatch-time sweep and shorter beta-sync wait. The previous review raised no findings, and the later commit changes only tests. I found no definite defect introduced by this head. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s release publish parent starts npm and ClawHub child workflows after release approval. It waits for publication results and the beta-floor sync before recording postpublish verification. flowchart LR
A[Approved release] --> B[Publish parent]
B --> C[Check stale children]
C --> D{Publisher slot available?}
D -->|Yes| E[Npm and ClawHub children]
D -->|No| F[Operator guidance]
E --> G[Beta floor sync]
G --> H[Postpublish verification]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +93, Docs +12, Config +13, Other +13. Total +131 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep stale-child admission in the publish parent, preserve each child’s own publication authority checks, and report a still-running beta sync before postpublish verification. Do we have a high-confidence way to reproduce the issue? No high-confidence current-main end-to-end reproduction was run in this read-only review. Current main shows the reported ordering and 600-second wait, while the PR body identifies historical release runs. Is this the best way to solve the issue? Yes. The patch changes the existing publish parent and child helper, with focused tests for pre-dispatch refusal and late sync completion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fad7d345a0c7. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…tale child, and on a slow beta-floor sync (openclaw#161632) * fix(release): sweep stale publish children before dispatch and wait for the beta-floor sync * test(release): drive stale-child guards before dispatch in workflow fixtures
What Problem This Solves
Fixes: a stable publish parent failed after it had already dispatched its npm and ClawHub children, when an older parent's child was stuck on an environment gate. Separately, post-publish verification failed on a beta floor that was only slow to sync.
User Impact
User impact: none for end users. Release operators no longer lose a publish parent (and have it cancel its own fresh ClawHub child) to stale-child cleanup, and no longer need a resume publish because the beta-floor sync took 19 minutes.
Why This Change Was Made
Stale children (2026.9.7 parent 36666756291). The parent dispatched plugin npm and ClawHub, then swept a stale
plugin-clawhub-new.ymlchild that was waiting onclawhub-plugin-bootstrap. The workflow token can't reject a pending deployment (HTTP 403: only a required reviewer can), and cancelling a gate-waiting run doesn't take effect. So the five-minute deadline failed the step, and failure cleanup cancelled the parent's own new ClawHub child.concurrency: ...-${{ inputs.ref }},cancel-in-progress: false), so a stuck stale child really does hold the slot. In that case the parent now refuses before creating any child, and prints the reviewer's reject/cancel commands.Beta floor (2026.9.7 parent 36662344193).
sync_npm_beta_floorgave up after 600 s with only a warning, so verification judged a stale floor ("npm beta must be at or above latest"). The sync (openclaw/releases run 36665313413) went green about 6 minutes later. Measured post-releasesync_beta_to_stableruns take 17m57s–18m53s (2026-09-11, -19, -23, -30).RELEASE_NPM_DIST_TAG_SYNC_TIMEOUT_SECONDS. The publish job timeout goes from 120 to 180 minutes to keep headroom.The skill and reference docs describe the new ordering and budgets. Production LOC: +51/−25 (net +26), spent on progress output and the distinct outcomes; removing the lazy per-dispatch sweep offsets part of it. Tests: net +91. Docs: net +12.
Evidence
node scripts/run-vitest.mjs test/scripts/release-publish-parent.test.ts: 31 passed (60.5 s on a loaded host).release-clawhub-children.test.ts: 15 passed (37.3 s).release-publish-children.test.ts: 12 passed (19.3 s).pnpm check:workflows,pnpm tsgo:test:root,bash -n, shellcheck: no new findings versus the baseline. Scoped oxfmt/oxlint,check:line-cap-ratchet,check-deadcode-exports,git diff --check: pass.The live 2026.9.7 publication runs on pinned tooling (
release-publish/2b4055f8dd70-1790734526) and isn't affected. This is release tooling for the next run.