Repository navigation
fix(e2e): restore generic survivor candidate identity checks - #162976
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 October 1, 2026, 4:22 PM ET / 20:22 UTC. ClawSweeper reviewWhat this changesThe PR restores generic upgrade-test package identity checks, adds contextual errors for unreadable package files, and extends regression coverage and documentation. Merge readiness⛔ Blocked before merge - 1 item remains This repair remains necessary on current main, and the inspected patch has no blocking correctness findings. Priority: P2 Review scores
Verification
How this fits togetherUpgrade survivor tests install a published OpenClaw package and update it to a selected candidate. Package identity checks verify candidate source and installed application bytes before subsequent probes. flowchart TD
A[Selected source and candidate tarball] --> B[Candidate identity check]
C[Scenario baseline] --> B
B --> D[Package update]
D --> E[Installed payload comparison]
E --> F[Candidate probes]
E --> G[Identity failure diagnostic]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +18, Docs +3, Other +14. Total +35 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one package-identity owner with scenario-appropriate baseline checks and unchanged source and installed-byte verification. Do we have a high-confidence way to reproduce the issue? Yes, from source: generic source-pinned survivor runs reach an unconditional read of baseline metadata they never create. Execution was not performed in this read-only review. Is this the best way to solve the issue? Yes. Scenario-specific baseline selection repairs the existing owner while preserving source, tarball, and installed-payload assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74a47d542ee3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
83db916 to
812cb68
Compare
|
Landed (squash |
…w#162976) The upgrade-survivor candidate identity check surfaced a raw node:fs read error instead of the identity messages when the candidate payload was missing or unreadable (test/scripts/upgrade-survivor-candidate-identity red on main since openclaw#160448 narrowed the contract). The generic baseline contract is restored (the captured baseline stays mandatory for cron-owner-doctor; generic scenarios use baselineCommit), and both filesystem error boundaries now produce the contextual identity error with the original cause retained. Refs openclaw#160448
What Problem This Solves
Restores source-pinned
baseandsqlite-volumesurvivor candidate checks, which failed before their intended payload comparison because they do not create worker-only baseline metadata.Refs #162586
Refs #160448
User Impact
Published-upgrade validation again verifies the selected candidate and installed bytes. Missing or unreadable post-update tarballs and payloads report the existing identity failure diagnostics instead of only raw filesystem errors. Installed updater and Gateway behavior is unchanged.
Why This Change Was Made
Bisect identified
d89da7595d0d6c51f4e17b5631114023e49f931bin the cron Doctor landing, rather than the initially suspected executable-admission change. Keep the captured dynamic baseline mandatory forcron-owner-doctor; generic scenarios retain their original pinned baseline check. The installed identity boundary adds context while retaining the underlying error cause. Existing assertions are unchanged, and two table cases cover missing tarball and missing entrypoint failures.Evidence
4f0541eb4691d155027d4febbe9e304a6e947127failed 3/4 cases. Requested parentc4f5599a74a857013af36a8538bb6b8668779c8bpassed all 4. Actual parent0a2eba4eadf0d7e0f0dc4f536e44767c7f883654passed all 4;d89da7595d0d6c51f4e17b5631114023e49f931bfailed the same 3.83db916487f36550ab117eb94c5b6d93e7e42b62, fetched directly on fresh Blacksmith Testboxtbx_01m3wgf9xe9dg43d1ze7cjnd2qwithout a tree sync (lease run): frozen install passed; candidate identity and all three importing sibling files passed, 32 tests across 4 files, 3.11 seconds wall. The changed identity file's 6 cases took 373 ms test time.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 node scripts/check-changed.mjs --base 57396d3cfef392c5acdeefa8f6f9ebf144b78b73 --head 83db916487f36550ab117eb94c5b6d93e7e42b62: passed, 354.39 seconds wall.git diff --checkpassed.The initial diagnostic lease expired its ten-minute admission window while queued and failed before tests. A fresh lease completed the contrasts; final proof used the separate pinned-head lease above. No test retry or assertion weakening was used.