Repository navigation
fix(test): restore update restart outcome fixture - #159127
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: needs maintainer review before merge. Reviewed September 26, 2026, 3:59 PM ET / 19:59 UTC. ClawSweeper reviewWhat this changesThe branch gives the update restart test fixture stable environment values and a synthetic update history row so its existing verification and backup checks can run. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: the registered restart outcome fixture remains broken on current main, and this narrow repair restores its path through update reporting. No concrete merge blocker surfaced. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw records update guidance before restarting and verifying the Gateway. A registered Node fixture loads the production update modules with controlled service and history inputs, then checks whether verification governs package-backup retirement. flowchart LR
A[Update result] --> B[Recovery guidance]
C[Fixture environment and history row] --> B
B --> D[Gateway restart verification]
D --> E{Verified?}
E -->|Yes| F[Retire backup]
E -->|No| G[Keep backup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +9. Total +9 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain one registered regression that reaches update reporting and verifies that failed Gateway health keeps the old package while verified health permits backup retirement. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main calls reporting before restart, while the registered fixture lacks the inputs that reporting now reads. The PR reports nine baseline failures; this read-only review did not execute tests. Is this the best way to solve the issue? Yes. Supplying finite facts at the fixture boundary lets the existing production reporting callback run without changing production code or weakening the outcome assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0830a3fa459a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes the restart-outcome CI fixture failing before it reaches Gateway verification after #159072 changed update-result reporting.
Related: #159072, #158848
User Impact
No user-visible behavior change. Restores CI coverage of failed restart backup retention and verified-success backup retirement.
Why This Change Was Made
The isolated fixture now supplies finite environment facts and a synthetic ledger row to the real reporting callback. Production restart, recovery, reporting, and package-transaction code still run; all existing outcome assertions and filesystem controls remain unchanged.
Evidence
On pinned main
5899667bf77e350a0a7d82cebaa8acadff8ccfbe, the unchanged fixture fails nine of its 19 cases with the unexpected container-environment dependency before verification. The fixture repair passes all 19 cases, including real missing-module and missing-file failures that retain the previous package, plus the verified-success control that removes the backup.The registered Vitest wrapper passes. Independent Codex review is clean through P2. Formatting, focused lint, all three export scans, and the other completed tooling guards pass locally. The local changed-file gate stops at the compiler boundary because this checkout borrows dependencies; Clean-install CI is green at exact head
e33450d4fa2fb81e6b4a57b46bc1f4449467aa40.