Repository navigation
fix(release): avoid npm publish timeout on prior beta selector - #124080
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 3:48 AM ET / 07:48 UTC. ClawSweeper reviewWhat this changesThe branch resolves the npm selector tag from the trusted full-history checkout, updates its workflow guard, and carries a no-shadow Control UI test-helper cleanup already present on current main. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open for the protected maintainer release-path decision. Current main still performs the timed tag fetch; the PR removes that dependency while retaining the provenance verifier inputs. Priority: P2 Review scores
Verification
How this fits togetherThe npm release workflow validates a prepared tarball against npm’s current selector before publication. It combines the frozen release checkout, immutable preflight evidence, and trusted workflow tooling to decide whether publishing may proceed. flowchart LR
A[Prepared release] --> B[NPM dist-tag lookup]
B --> C[Trusted full-history checkout]
D[Frozen release checkout] --> E[Provenance validator]
C --> E
E --> F[NPM publish]
Decision needed
Why: A disposable end-to-end rehearsal could publish to npm, so the remaining evidence cannot be obtained safely through ordinary PR validation. Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +15, Config -4. Total +11 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused release repair only with explicit acceptance of the production-validation gap, retain the trusted checkout’s full-history setting, and record the next beta publish outcome. Do we have a high-confidence way to reproduce the issue? Yes in source: current main fetches a missing prior selector tag from the frozen release checkout; the reported timeout is the matching production path. A new publish was not run because it could perform a real npm publication. Is this the best way to solve the issue? Yes. Resolving the tag from the existing full-history trusted checkout removes only the redundant fetch while preserving the verifier’s fail-closed selector, evidence, and workflow-SHA checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 49e1ea2c9f08. 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)
|
6c86209 to
6b74099
Compare
|
Land-ready review completed on exact head Root cause: publish provenance resolved the live npm selector from the shallow release-tag checkout, so a missing prior beta tag triggered a redundant 120-second fetch even though Proof:
ClawSweeper rank-up move: a disposable publish-job rehearsal was not run because exercising this exact step requires the real publish path and could reach npm publication. The safe substitute is the observed production failure, the pre-fix/post-fix workflow regression, direct inspection of the pinned checkout contract, and green exact-head CI. This gap is accepted for landing; production confirmation will occur on the next beta publish. The exact-head CI repair also includes the minimal current-main |
|
Merged via squash.
|
…law#124080) * fix(release): avoid prior beta selector fetch timeout * fix(ci): repair test typecheck and UI lint
What Problem This Solves
Fixes an issue where publishing a prepared beta release could time out while validating the current npm selector. During
v2026.8.1-beta.2, the publish job's shallow release-tag checkout attempted to fetchv2026.8.1-beta.1and exhausted the 120-second fetch timeout, even though the trusted workflow checkout already contained all tags.Incident evidence: https://github.com/openclaw/openclaw/actions/runs/31866304845/job/94967932650
Why This Change Was Made
The publish-time npm selector recheck remains fail-closed, but its tag commit is now resolved from the existing trusted full-history checkout. This removes the redundant network fetch from the frozen release checkout while preserving the immutable manifest, release SHA, dist-tag, tarball digest, Plugin SDK evidence, acknowledgement, and trusted-workflow SHA checks.
Exact-head CI also exposed two merge-gate failures: this PR's new source-order assertion needed an explicit workflow-script type guard, and current
mainhad two shadowed diagnostic catch bindings in the Control UI E2E helper. Both are repaired without changing runtime behavior.User Impact
Release operators can publish prepared beta candidates without a redundant prior-selector tag fetch blocking the core npm publish path. Candidate evidence and provenance enforcement are unchanged.
Evidence
v2026.8.1-beta.1.node scripts/run-vitest.mjs test/scripts/openclaw-npm-extended-stable-workflow.test.ts— 14 passed.node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts test/scripts/package-acceptance-workflow.test.ts— 310 passed, 2 skipped.node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.json --incremental --tsBuildInfoFile /tmp/openclaw-pr-124080-lead-test-root.tsbuildinfo— passed.node scripts/run-oxlint.mjs ui/src/test-helpers/control-ui-e2e.ts— passed.node scripts/check-changed.mjs --dry-run -- .github/workflows/openclaw-npm-release.yml test/scripts/openclaw-npm-extended-stable-workflow.test.ts— lanestestRoot, tooling.node_modules/.bin/oxfmt --check test/scripts/openclaw-npm-extended-stable-workflow.test.ts— clean.git diff --check— clean.--mode branch --base origin/main) — no accepted/actionable findings.AI-assisted: yes.