Repository navigation
test(ui): share startup storage failure fixtures - #150505
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 17, 2026, 4:31 PM ET / 20:31 UTC (Revision 4). ClawSweeper reviewWhat this changesShares the storage-write failure fixture across startup disconnect, reload, and Stop tests while preserving their assertions and storage restoration. Merge readiness✅ Ready for maintainer review The cleanup remains useful and has no actionable findings. Exact-head CI now passes, and current main still contains the duplicated fixtures. Priority: P3 Review scores
Verification
How this fits togetherControl UI startup recovery retains an initial message while a worker starts and handles interruptions before delivery. These tests inject browser-storage failures to verify that recovery preserves pending input without sending it unexpectedly. flowchart LR
A[Startup test scenarios] --> B[Shared storage failure fixture]
B --> C[Writes throw quota errors]
B --> D[Reads and removals use backing storage]
C --> E[Startup recovery owner]
D --> E
E --> F[Pending input and delivery assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -18. Total -18 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared failure fixture in startup test support while retaining each scenario's assertions and cleanup lifecycle. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing test setup rather than reporting a runtime defect; the duplication is directly visible in current main. Is this the best way to solve the issue? Yes: the existing shared test-support module is the narrowest owner, and the extraction preserves failure timing, storage identity, restoration, and assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80b92306e409. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
4cfd4ca to
ce5be00
Compare
ce5be00 to
99ef50d
Compare
|
Exact head The test-only patch remains unchanged. Historical 93-case baseline/candidate parity and its recorded observation gaps remain as described in the PR; they are not fresh execution of current main. Native review metadata has been refreshed for the exact head. @clawsweeper re-review — the last completed review is now older than 12 hours. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…1148) The Research fixture returned two rows for a 200-row query. A trailing refresh after pagination then replaced the appended rows with that short page. Seed a full first page and return the expanded retained window. Keep the named-row assertions and verify Active retains its expanded window while All starts a fresh page on agent re-entry. Related: #150505 (startup fixture extraction ruled out; the pagination fixture predates it in #149959 and #150305). Observed in main run 35272742639, checks-ui-e2e (10/13).
…nclaw#151148) The Research fixture returned two rows for a 200-row query. A trailing refresh after pagination then replaced the appended rows with that short page. Seed a full first page and return the expanded retained window. Keep the named-row assertions and verify Active retains its expanded window while All starts a fresh page on agent re-entry. Related: openclaw#150505 (startup fixture extraction ruled out; the pagination fixture predates it in openclaw#149959 and openclaw#150305). Observed in main run 35272742639, checks-ui-e2e (10/13).
What Problem This Solves
Startup recovery tests repeat the same storage write-failure fixture across disconnect, reload and Stop scenarios.
User Impact
No user-visible behavior change. All 93 cases across the five startup suites remain intact.
Why This Change Was Made
Reuse the existing startup test-support module while preserving the backing storage, bound reads/removals, live length, synchronous quota error and reload's explicit restoration.
Production is unchanged; tests and test support shrink by 18 lines (+21/-39).
The signed mechanical refresh is 99ef50d on main b54d624. Its four reviewed afterimages and stable patch identity are unchanged.
Evidence
5d1389f2: native exit 0, 93/93 cases each, with matching per-file identities, order, status and counts.Earlier hosted CI on
4cfd4cadfailed compact Node shards 37, 38, 42, 44 and 46; failed-log downloads were unavailable, so their causes remain unknown. This refresh incorporates newer main, but does not claim those failures are cured. Exact-head hosted CI is still required before landing.The subsequent ce5 CI run35186349908 failed its test compiler on an unrelated Slack RawData overload error from main. The canonical fix in #149291 and follow-up refinement #150678 are included in the new base; no Slack code is added by this cleanup. The retained 93-case proof is historical evidence for the unchanged patch, not a new b54 execution. Fresh exact-head CI is required.