Repository navigation
fix(test): prevent config CI hangs after cold-read optimization - #186152
roboclaw-bot wants to merge 4 commits into
Conversation
Refuse the retained post-open validation publication instead of the redundant schema-open checkpoint intentionally removed by #185760. Keep the during-open refusal, all four failure rows, real reader barrier, exact refusal count, physical-owner rejection, and cleanup assertions. Production code is unchanged. Reproduced scheduled main run 40496973076, attempt 1, job 122165204064 at 8d9d946: 11 passing tests and the same after-open failure. The final candidate and schema-admission keeper pass all 16 tests in 22.69 seconds wall time. Typed lint, formatting, line ratchets and independent P0-P2 review pass. The patch adds zero net test lines. At the tested a4a8f63 base, the full-tree unused-file scan reports eight untouched scripts; production scan passes and no changed path is reported. The subsequently incorporated main changes are disjoint from the reviewed reader, worker, state, transcript, test-runner and dependency inputs. Work session: https://team.openclaw.ai/chat/roboclaw/~key/dashboard/f2d13397-ed54-4d44-ade1-12b2edc3d0e3 Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b4478a06-9f85-4034-aeec-975c3e197b4c
Reconcile the completed worktree with the verified failing main head and preserve its history. Explicitly restore the cold transcript before the lifecycle fixture reads it. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: f37bdf97-875f-4437-ac04-32a29baab130
|
🦞👀 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 changesThis PR explicitly restores the cold transcript before reading it in the existing archive-worker retirement test. Example: The retirement test requests a historical transcript containing three events after the archive worker reaches its five-minute idle deadline.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep this useful, maintainer-authored PR open: it repairs an obsolete test trigger while preserving the intentional cold-read behavior and all lifecycle assertions; no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe archive lifecycle fixture supplies synthetic session state to production cold-storage and archive-worker owners, then checks native worker exit, transcript contents, database leases, and cleanup. flowchart TD
A[Archive lifecycle fixture] --> B[Explicit cold restoration]
B --> C[Existing archive mutation owner]
C --> D[Retiring worker exits]
D --> E[Replacement worker restores transcript]
E --> F[Raw transcript read]
F --> G[Lifecycle and snapshot assertions]
Technical reviewBest possible solution: Use the existing explicit restoration owner in this fixture and retain the non-restoring raw-read contract. Do we have a high-confidence way to reproduce the issue? The current-main fixture awaits mutation admission after a raw read whose owner intentionally performs no restoration; the body reports the matching failing replay, but no target code was executed during this review. Is this the best way to solve the issue? The patch is the smallest complete repair: it invokes the existing restoration owner before the original read and preserves both lifecycle variants without weakening assertions or increasing timeouts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 83c57bf38402. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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, 1:25 PM ET / 17:25 UTC. |
|
Closing as superseded. Superseded by #186193. The test explicitly restores the transcript before reading it; existing scope, worker, snapshot and cleanup assertions remain. This closes the PR without deleting its branch. |
Related: #185955
What Problem This Solves
Fixes: the config CI shard times out when its archive-retirement fixture waits for a raw transcript read to start cold restoration.
User Impact
No production behavior changes. The existing regression again exercises idle archive retirement and cold restoration without hanging the shard. No configuration, schema, migration, or timeout changes are required.
Why This Change Was Made
Raw hydration intentionally reads verified cold archives without restoring them after #185955. Request restoration explicitly, then perform the original read. Preserve both open-scope variants and every existing worker-exit, replacement, lease, snapshot, and cleanup assertion.
Evidence
c168d2b0b7fb11f4cd463191a4f508c6775fbc9b. The native case reaches its 120-second test and 180-second hook timeouts before the later 300-second no-output termination.1.4.4-canary.1+807211511.git diff --checkpass. Reversing only the import and restoration-trigger changes reconstructs the original file byte-for-byte, including all assertions andfinallyblocks.gpt-6.1-sol, P0–P2, reviewed the complete candidate againstc168d2b0b7fb11f4cd463191a4f508c6775fbc9bwith the full fixture and relevant owners: no actionable findings. Runtime results were author-supplied evidence, not independently executed by the reviewer. A separate read-only source check independently confirmed the intentional read-contract change and the explicit-restoration correction.6ba9861ba12a4111be09c8224d2ade180389fe04and managed-worktree commitabc57855ad1ebf14ce0ff1f258c58d81713d6281have the identical complete treea1c4df6897d9753e0d66fdfe35a46098d71d0fc3. Registered-worktree history was preserved without a reset; only this fixture differs from the verified failing head.Requested and co-authored by @vincentkoc.
Work sessions
Worked on by