Repository navigation
fix(release): bound ClawHub publish without GNU timeout - #125296
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 8:34 AM ET / 12:34 UTC. ClawSweeper reviewWhat this changesThis PR lets ClawHub publishing use a Node-managed timeout on hosts without GNU timeout while retaining the existing GNU timeout path. Merge readinessKeep open. Current main still fails the no-GNU-timeout path, while this focused fallback preserves the GNU path and has no supported introduced correctness finding. Priority: P2 Review scores
Verification
How this fits togetherThe ClawHub release script validates and publishes plugin packages under a bounded attempt deadline. Its exit status feeds the retry loop; the new fallback delegates deadline cleanup to the shared managed-child-process owner. flowchart LR
A[Release maintainer] --> B[ClawHub publish script]
B --> C{GNU timeout available?}
C -->|Yes| D[GNU timeout]
C -->|No| E[Node bounded command]
D --> F[ClawHub publish CLI]
E --> F
F --> G[Retry and release result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +153, Other +72. Total +225 across 7 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the GNU path and land the shared managed-process fallback with the existing exact-head timeout and cleanup evidence. Do we have a high-confidence way to reproduce the issue? Yes—current main's explicit missing-binary branch exits before publish behavior, and the linked report supplies a focused stock-macOS invocation path. Is this the best way to solve the issue? Yes—the patch preserves the supported GNU implementation and reuses the existing managed process-tree owner instead of adding a platform dependency or duplicate timeout logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 46c1eef6e6d4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review\n\nAdded reviewer-inspectable exact-head stock-macOS terminal evidence to the PR body: neither GNU timeout binary is present, the release suite passes 56/56, and the forced fallback deadline returns 124. |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
f20dba8 to
759e574
Compare
0d979bc to
6adf020
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
591f330 to
29775b2
Compare
|
Exact-head CI classification for |
29de4a1 to
fbee782
Compare
|
@codex review Please review exact head |
|
To use Codex here, create a Codex account and connect to github. |
fbee782 to
72900b3
Compare
72900b3 to
9e4abb2
Compare
|
@clawsweeper re-review Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks @PollyBot13! Proof: On stock macOS with neither
Example
|
) Allow ClawHub release validation and publish retries to stay bounded on stock macOS by using the existing managed-process owner when GNU timeout is unavailable. Preserve the GNU timeout path and status 124 retry contract. Verify TERM-before-KILL cleanup, descendant exit, and release-plan ownership for the portable fallback. Closes openclaw#125295 Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #125295
What Problem This Solves
Fixes an issue where ClawHub publish validation and retry calls could not run on stock macOS because the release script hard-required GNU
timeout/gtimeout, neither of which ships with macOS.Why This Change Was Made
The release script continues to prefer GNU
timeoutwhere available and otherwise uses a small Node entrypoint backed by OpenClaw's existing managed child-process owner. The fallback preserves status 124 and the existing retry policy, sends TERM before KILL, bounds Node timer inputs to Node's supported range, and immediately cleans up remaining descendants if the process-group leader exits during the grace interval.The current-head refresh integrates with the immutable release-plan authority and unified managed-process cleanup now on
main: timeout helpers are tracked as ClawHub release authorities, and grace-period liveness uses the sharedinspectManagedProcessGroupowner.The immediate leader-exit escalation is opt-in for the ClawHub timeout path, so existing abort and signal callers retain their graceful-drain windows. The JavaScript launcher also remains alive beyond the inner manager's complete TERM, force-kill, and verification budget, preventing cancellation from orphaning a resistant publish descendant.
Pack-only mode and the Linux release path are unchanged.
User Impact
Release maintainers can run the bounded ClawHub publish path on stock macOS without installing GNU coreutils, while Linux hosts retain the existing GNU timeout path.
Evidence
Exact head:
9e4abb24f5dcf4403aac6da0b6dc9fee29c5c327, rebased onto16367468a7edce977360becc72443943d805593d.Stock-macOS release-script proof
The macOS host had neither
timeoutnorgtimeout, soscripts/plugin-clawhub-publish.shselectedscripts/lib/bounded-command.mjsfor every bounded ClawHub call.The exact-head test
bounds each packed publish attempt and retries a timed-out CLIran the full--publish-packedscript. Its first fixture attempt slept for 60 seconds, the one-second fallback returned timeout status 124, and the script completed its second attempt in under five seconds.The same macOS run passed the launcher cleanup regression. That test sends SIGTERM to the launcher group, expects wrapper status 143, and waits until the resistant leaf PID is dead before it can pass.
The managed-process regressions also passed TERM-before-KILL and leader-exit descendant cleanup, so no child remained after the bounded command returned.
A 2026-08-30 current-main check used
46c1eef6e6d4118dba29cf11285601e8b5e35a5b. No touched owner file changed after the PR merge base, andgit merge-tree --write-tree origin/main HEADproduced clean tree7a012ae367772faf6f4c8aa06faf5b72293693d1.The focused exact-head suite was rerun on 2026-08-30: 3 files and 131 tests passed.
node scripts/check-changed.mjs --timed, focused formatting,/bin/bash -n scripts/plugin-clawhub-publish.sh, andgit diff --checkpass.The exact launcher-level cancellation regression returns 143 and proves its SIGTERM-resistant target is dead before wrapper completion.
Process-tree regressions cover TERM-before-KILL, leader-exit cleanup, graceful sibling drainage, timer overflow, and process-group reuse exposure.
The exact seven-file diff is 241 additions and 16 deletions. TruffleHog found zero verified or unverified secrets in the exact patch.
A fresh independent reviewer found the competing outer/inner kill-timer race; the final head fixes it, and the same reviewer verified the P1 closed with no remaining actionable findings.
Hosted exact-head CI completed successfully on this head: 120 jobs passed, 18 skipped, and 0 failed (run 33253290140).
Workflow Sanity run 33253290110 initially failed before branch linting because all trusted-base fetch attempts timed out with status 124. Its exact-head attempt 2 passed on 2026-08-30.
Owner acceptance
mainowners are reused instead of duplicating release-plan selection or process-group inspection.AI-assisted: yes. Codex isolated the missing-host-tool failure, implemented the managed-process fallback, rebased it onto current main, adapted it to the merged release-plan and process-group owners, and addressed clean-context findings at the timer, launcher, and process-group boundaries.