Repository navigation
fix: prevent release-check from hanging on prepared tarballs - #154567
Conversation
|
🦞👀 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: blocked before merge. Reviewed September 21, 2026, 3:47 AM ET / 07:47 UTC (Revision 2). ClawSweeper reviewWhat this changesRelease validation collects archive paths and unpacked size during extraction, removing an extra npm subprocess and guarding against its return in the existing CLI fixture. Merge readiness⛔ Blocked before merge - 1 item remains This focused fix remains necessary on current main. No actionable correctness or security defects were found, and the previous conflict and draft concerns are resolved. Priority: P2 Review scores
Verification
How this fits togetherRelease-check validates prepared OpenClaw packages before publication. Archive contents feed package, size, worker, and runtime checks that determine whether validation succeeds. flowchart TD
A[Prepared package archive] --> C[Strict archive extraction]
B[Source package builder] --> C
C --> D[File inventory and unpacked size]
C --> E[Extracted package]
D --> F[Package validation]
E --> F
F --> G[Success or diagnostic failure]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +15, Other +1. Total +16 across 2 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep archive inventory collection in the existing extraction owner while preserving all package validation and source-packing contracts. Do we have a high-confidence way to reproduce the issue? The blocking subprocess path is verified on current main, and the contributor reports a matching-runner reproduction. This read-only review did not independently reproduce the intermittent hang. Is this the best way to solve the issue? Yes. Reusing extraction removes the captured blocking operation while preserving npm's consumed inventory semantics and the existing validation owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 164e18ea9336. LabelsLabel 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)
|
bfb1c65 to
1d00fe5
Compare
What Problem This Solves
Fixes release-check hanging while inspecting an already prepared tarball on small Linux CI runners.
User Impact
Release validation reads the prepared artifact without starting an unnecessary npm process. Package-content, unpacked-size, worker, and gateway checks remain intact; there is no public contract change.
Why This Change Was Made
The captured blocked call was
inspectPackedTarball → execNpm → runReleaseCheckCommand → execFileSync(node, [npm-cli.js, "pack", tarball, "--dry-run", "--json", "--ignore-scripts", "--offline"]). On Node 24.19.0 with 2 CPUs and 8,220,487,680 bytes RAM, release-check waited inepoll_pwaitwhile npm's main thread futex-waited for its remaining V8 worker. The parent esbuild service was still responding. No native userspace GC stack was captured, so this does not claim a particular V8 frame.The release-check owner now collects paths and unpacked size during its existing strict tar extraction, using npm's own entry-path and size rules. The retained CLI fixture rejects the removed inventory subprocess and still asserts the missing worker artifact. No timeout increase, retry, or weakened assertion.
The branch preserves the merged #154335 worker/gateway matrix, #154345 outer-child shutdown-policy assertions, and #154506 canonical source packer and new packing test. Outer-child command-line flags do not propagate to the npm grandchild captured here; eliminating that unnecessary child fixes the remaining boundary.
Evidence
Current head:
1d00fe5d32495ca6c1257f9f0b5fc6d717781098.OPENCLAW_VITEST_MAX_WORKERS=8. Across paired runs, the sparse CLI case took 2.08–4.26 seconds, median 2.89 seconds.Prepared tarball inspection must not launch npm pack, naming the removed call chain, and passes with the fix.pnpm test test/scripts/release-check.test.ts --maxWorkers=1: 9.90 seconds wall, 8.61 seconds reported by Vitest, 16 tests, including main's new source-packing test.node scripts/check-changed.mjs, direct type-aware lint for both files with a failing floating-Promise canary,oxfmt --check, andgit diff --checkpassed on the rebased source. Linuxcheck-changedalso passed in 551 seconds. P2 autoreview is clean.Both proof leases used Node 24.19.0, 2 CPUs and 8,220,487,680 bytes RAM. Candidate source hashes matched the published head. Provisioning runs: rounds 1–10, lease
tbx_01m31e6tnxmkzvhvm7yhvhtem5; rounds 11–20 and standalone proof, leasetbx_01m31fkqsy499zg49fkecdkmcq. The scratch sizing workflow is outside this PR.An earlier candidate also passed 20 paired and 20 standalone runs. Main then changed the adjacent source-packing path, so the conflict was resolved preserving that owner and the complete campaign was repeated on the rebased source. Two initial replay-harness startup errors ran no tests and were corrected before the campaigns. No failed test was retried.
Sightings:
All three already contained the F45 fixture repair. Their tooling config was file-serial with a two-worker limit. The matching-class baseline failed once in four paired attempts; the captured timeout was 120056 ms. The repaired current-head campaign had zero failures in 20 paired attempts.