Repository navigation
test(e2e): keep the relabeled candidate's dist content inventory truthful - #164036
Conversation
…hful #163999 relabels the published-driver candidate to the driver version when main lags npm latest, but rewriting dist/build-info.json changed an inventoried file, so the candidate's own package-verify step failed on the next hourly (dist/postinstall-content-inventory.json hash mismatch). Update that file's inventory entry (sha256 + size) after the rewrite.
|
🦞👀 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 October 3, 2026, 1:45 AM ET / 05:45 UTC (Revision 2). ClawSweeper reviewWhat this changesThe upgrade test harness refreshes the build-info file’s recorded hash and size after relabeling a candidate package. Merge readiness⛔ Blocked before merge - 1 item remains This PR remains useful: current main still has the inventory mismatch, and no introduced defect was found. The earlier migration-proof blocker does not apply to this disposable test-package repair. Priority: P2 Review scores
Verification
How this fits togetherThe published-driver test installs a released OpenClaw version and updates it to a candidate package. Candidate preparation feeds the package-integrity checks before the test verifies the updated Gateway. flowchart TD
A[Released OpenClaw driver] --> C[Upgrade test harness]
B[Candidate package] --> C
C --> D{Candidate version older?}
D -->|Yes| E[Relabel and refresh inventory]
D -->|No| F[Package integrity checks]
E --> F
F --> G[Managed update and Gateway checks]
Before merge
Agent review detailsSecurityNone. PR surfaceOther +11. Total +11 across 1 file. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the candidate’s integrity metadata synchronized with its rewritten bytes while retaining all package validation. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: relabel an older candidate’s inventoried build-info file, then run the package checker. The contributor reports the corresponding failing negative control; this read-only review did not execute it. Is this the best way to solve the issue? Yes, refreshing only the changed file’s hash and size repairs the producer’s inconsistency while preserving the existing independent integrity checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 052efb366564. LabelsLabel changes: No label 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)
|
…hful (openclaw#164036) openclaw#163999 relabels the published-driver candidate to the driver version when main lags npm latest, but rewriting dist/build-info.json changed an inventoried file, so the candidate's own package-verify step failed on the next hourly (dist/postinstall-content-inventory.json hash mismatch). Update that file's inventory entry (sha256 + size) after the rewrite; proven with check-openclaw-package-tarball on the real candidate tarball plus a stale-inventory negative control.
What Problem This Solves
Hourly 37094503398 (head 5e6794c, first run containing #163999) shows the relabel working (
candidate-relabel.json: 2026.9.7 → 2026.9.8, no more downgrade refusal) but the cell still failed one step later: the candidate'spackage-verifystep reportedInvalid package dist content inventory at dist/postinstall-content-inventory.json: expected packaged file hashes and executable bits to match current dist files→global-install-failed.Why This Change Was Made
dist/build-info.jsonis the authoritative version source (src/version.ts) and is an inventoried dist file. Rewriting it without updating its inventory entry turns the product's own integrity check into a false alarm. The harness now refreshes that entry's sha256 and size after the rewrite;package.jsonis not underdist/and needs no inventory change. Test-harness only, no production code.User Impact
None at runtime. CI: the published-driver cell can pass during the post-release window again.
Evidence
Replayed the exact relabel steps on the real candidate tarball from run 37094503398 and ran
scripts/check-openclaw-package-tarball.mts:OpenClaw package tarball integrity passed.OpenClaw package tarball integrity passed.The next hourly on
mainis the live proof; the cell skips on PR CI.