Repository navigation
fix(tests): worker recovery checks fail after input refresh - #185673
Conversation
…efresh Aligns recovery fixtures with pre-turn input refresh introduced by #185424. Co-authored-by: jalehman <[email protected]> Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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. What this changesUpdates worker-launcher recovery fixtures to complete input refresh before exercising their intended failure scenarios. Example: A paired-device execution disconnects during run-paired-device-disconnected.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs recovery fixtures left incompatible with pre-turn input refresh, preserves meaningful assertions, and has successful exact-head CI; no actionable code defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Gateway launcher coordinates placement claims, workspace refresh, worker execution, and recovery; these tests supply transport faults and inspect persisted placement outcomes. flowchart TD
A[Recovery test fixtures] --> B[Gateway turn launcher]
B --> C[Pre-turn workspace refresh]
C --> D[Worker or remote execution]
D --> E[Workspace recovery]
E --> F[Placement and pending-result store]
Technical reviewBest possible solution: Merge the focused fixture repair while preserving the existing recovery, diagnostics, and reconnect assertions. Do we have a high-confidence way to reproduce the issue? Source inspection confirms that current-main fixtures reject or omit reconciliation now required before execution; the PR reports baseline failures, but no tests were executed during this read-only review. Is this the best way to solve the issue? This is a focused repair using existing owners: successful refresh precedes post-turn fault injection, while conflicted journal recovery exercises the real local recovery implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 279739bbd9e1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +32. Total +32 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 4:31 AM ET / 08:31 UTC. |
…efresh (openclaw#185673) Aligns recovery fixtures with pre-turn input refresh introduced by openclaw#185424. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Worker launcher recovery checks fail before reaching their intended failure scenarios after #185424 introduced pre-turn input refresh.
User Impact
No production behavior change. Restores CI coverage of launch failure diagnostics, unresolved journals, and post-execution workspace recovery.
Why This Change Was Made
Model successful input refresh before injecting post-turn failures. The journal fixture uses the real local reconciliation recovery owner and checks the retained pending-result/turn fence. The paired-device fixture disconnects during execution rather than before preparation.
Co-developed with @jalehman and @vincentkoc.
Work sessions
Evidence
The authorized direct fast-forward repair was refused by the repository ruleset: changes must be made through a pull request. This is the required fallback; no CI rerun or bypass was attempted.