Repository navigation
fix(release): recover plugin packaging from registry stalls - #117618
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:35 PM ET / 20:35 UTC. ClawSweeper reviewWhat this changesThe PR adds a bounded three-attempt retry for package-local Merge readinessNo blocking correctness finding remains: the current head fixes the prior terminal-timeout cleanup gap and preserves fail-fast handling for ordinary npm failures. This member-authored, maintainer-labeled release change should remain open for release-owner approval of the three-minute retry policy and the resumed beta packaging evidence; likely related people are Peter Steinberger and vincentkoc. Priority: P1 Review scores
Verification
How this fits togetherPlugin release packaging temporarily prepares a publishable plugin directory and runs package-local npm installation for bundled runtime dependencies. That staging directory then feeds the package preview and publication commands, so incomplete dependency output can block later release attempts. flowchart LR
A[Plugin package input] --> B[Temporary package staging]
B --> C[Package-local npm install]
C --> D{Install timed out?}
D -->|No| E[Return result to packaging]
D -->|Yes| F[Remove partial dependencies]
F --> G[Retry up to three attempts]
G --> C
E --> H[Preview or publish plugin]
Decision needed
Why: The source proves the retry and cleanup mechanics, but no code inspection can determine the acceptable latency budget for production release runners and registries. Before merge
Agent review detailsSecurityNone. PR surfaceTests +94, Other +40. Total +134 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single installer path, retain cleanup on every timeout, and merge only after the release owner accepts the three-minute-per-attempt policy and the resumed beta child demonstrates clean package staging through the affected path. Do we have a high-confidence way to reproduce the issue? No live current-main reproduction was run in this read-only review; the supplied context links the hosted-runner timeout and current source confirms that main lacks any timeout recovery path. Is this the best way to solve the issue? Yes, the cleanup belongs inside the package-local installation owner because the outer packaging cleanup is installed only after a successful install; the remaining question is whether the chosen production timeout budget is the right release policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fb3d473a73b0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
9e8d035 to
1d28388
Compare
|
Resolved the latest ClawSweeper findings on head
The 180-second per-attempt bound is retained. The release incident stalled for roughly ten minutes on each hosted attempt, while a fresh install of the exact generated lock completed in seconds. The resumed beta plugin-publish child will provide the after-fix release-path evidence. |
|
Release-owner decision: approved. For this beta, accept the bounded policy of three attempts with a 180-second timeout per package-local npm install. The incident showed three hosted attempts hanging for roughly ten minutes each, while the exact generated lock installed normally from a fresh cache. The corrected implementation cleans partial staging after every timeout, including terminal exhaustion, so retry and later release attempts remain deterministic. The resumed beta publish child will be linked here as the release-path evidence after this infrastructure fix lands. |
|
Merged via squash.
|
|
Resumed beta publication is now running against the merged recovery:
The child is packaging the frozen |
What Problem This Solves
Resolves a release blocker where publishing a plugin with bundled runtime dependencies can hang on a transient npm registry fetch until the package preview fails. The
2026.7.2-beta.7WhatsApp preview reproduced the same ten-minutespawnSync ... ETIMEDOUTfailure on three fresh hosted runners.Why This Change Was Made
Package-local
npm cinow has a three-minute bound and retries only process timeouts. A timed-out attempt removes its partialnode_modulestree before retrying the same generated lock; ordinary install failures still fail immediately.User Impact
Plugin and OpenClaw releases can recover automatically from transient npm registry stalls instead of requiring repeated full publication attempts.
Evidence
node scripts/run-vitest.mjs test/plugin-npm-package-manifest.test.ts: 20/20 passed.oxfmtand directoxlint: passed.node scripts/check-script-declarations.mjs: 249 declaration contracts match.git diff --check: passed.