Repository navigation
fix(release): retry plugin lock generation - #117668
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 6:38 PM ET / 22:38 UTC. ClawSweeper reviewWhat this changesThe PR retries transient Merge readinessThis PR is still necessary: current Priority: P2 Review scores
Verification
How this fits togetherThe plugin release packager temporarily stages a plugin’s npm manifest, generates its flowchart LR
A[Plugin release package] --> B[Stage package metadata]
B --> C[Generate npm package lock]
C --> D{Registry timeout?}
D -- no --> E[Install bundled dependencies]
D -- retry budget remains --> C
D -- other error or exhausted --> F[Fail plugin publish]
E --> G[Publishable plugin package]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +48, Other +42. Total +90 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the bounded timeout retry at the package-lock generation boundary, keep non-timeout validation failures terminal, and land it after the exact-head hosted checks complete. Do we have a high-confidence way to reproduce the issue? Yes. Current main directly invokes npm while generating the lock at Is this the best way to solve the issue? Yes. The patch repairs the failing subprocess boundary with the repository’s existing bounded retry policy rather than broadening retries or masking ordinary dependency validation errors. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against eec96d96344a. 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
|
|
Merged via squash.
|
What Problem This Solves
Resolves a release publication failure where plugins with bundled dependencies could spend ten minutes generating
package-lock.json, then abort the entire plugin npm release on a transient registry timeout.Why This Change Was Made
Plugin package-lock generation now uses the same bounded retry policy as the subsequent package-local install: three 180-second attempts, retrying only
ETIMEDOUT. The timeout is threaded into the existing lock generator without changing frozen release package inputs.User Impact
Release operators can complete all-publishable plugin npm releases despite transient npm registry stalls. Ordinary dependency and lock validation failures still fail immediately.
Evidence
node scripts/run-vitest.mjs test/plugin-npm-package-manifest.test.ts test/scripts/generate-npm-package-lock.test.ts- 49 tests passed.node scripts/check-script-declarations.mjs- 249 declaration contracts match.git diff --check- passed.mainerrors inpackages/terminal-core/src/ansi.tsand missing sparse UI/QA/Android artifacts; hosted exact-head CI is required.30720863740timed out duringnpm install --package-lock-onlybefore reaching the already-retriednpm ciphase.AI-assisted: yes.