Repository navigation
fix(test): unblock offline reload and retain automation row contract - #189696
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates Control UI tests for separate summary and patch loading, intentional offline reloads, and automation rows containing names and schedules. Example: Open Review while an Environment summary request is pending for changes totaling +12,480 and −1,030.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs stale test contracts without changing production behavior, and no actionable introduced defect was found. The remaining CI failures also occur on main. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe browser E2E suites exercise Control UI rendering through mock Gateway RPCs and an isolated real Gateway, turning request, reconnect, and persisted-conversation behavior into validation results. flowchart LR
Tests[E2E scenarios] --> Browser[Control UI browser]
Browser --> Workspace[Workspace diff owner]
Workspace --> Mock[Mock Gateway RPC]
Browser --> Recovery[Placement recovery]
Browser --> Gateway[Isolated real Gateway]
Gateway --> Automation[Automation state and history]
Technical reviewBest possible solution: Retain these focused test repairs and handle the independently evidenced main CI failures through the existing landing policy. Do we have a high-confidence way to reproduce the issue? The scheduled main run records the obsolete Review loading assertion failing, and source confirms the intentional summary/full split; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete repair: update existing expectations and use the fixture's existing readiness option while preserving patch rendering, reconnect delivery, and persisted chat-result checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 042216e86b4c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +22. Total +22 across 3 files. 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 31, 2026, 4:02 PM ET / 20:02 UTC. |
|
Merged via squash auto-merge.
|
…penclaw#189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in openclaw#189526. Keep Environment summary reads separate from the deferred Review patch request introduced in openclaw#189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload
…189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload (cherry picked from commit 01ac91c) Co-authored-by: RomneyDa <[email protected]>
The release backport of #189696 (613a528) carried a row-contract hunk that only holds after main's c9a75b2, which removes results from automation rows. That change is not on release/2026.11.5, so the test asserted the row both contains the visible result (before reload) and omits it (after reload) and could never pass. Restore the release's shipped contract after reload: the row still shows the automation name and schedule, and it still shows the visible result. Release-branch only; main keeps its own contract.
What Problem This Solves
Two adjacent E2E regressions remain after the original scheduled-run investigation: the placement recovery fixture waits for a roster during an intentional offline reload, and the automation reload assertion expects a result summary that the UI intentionally removed. This PR fixes those two test contracts. The original badge and Review regressions are now fixed on main.
User Impact
Test-only repair; no product behavior, startup assets, lazy boundaries, routes, or appearance change.
Why This Change Was Made
awaitInitialRoster: falseoption; retain explicit initial readiness, held-runtime, reconnect, queue delivery, and request-count assertions.c9a75b2a16fintentionally limited automation rows to name and schedule. Verify that contract after reload while preserving the persisted result assertion in chat and the existing run-history/audit checks.The other two originally reported failures expected healthy worker badges to disappear. The placement case was already repaired by #189641 (
aff1c6fd3ba); the cloud disk case was repaired in parallel by #189701 (114adcd6e5b), now merged into this branch. The Review repair landed independently in #189730 (4ade7ee96f8); the conflict resolution adopts its test byte for byte and removes this PR's duplicate. No chunk boundary regression was found.Evidence
41224492067,73bd1e4af79e: all three exact cases passed6df00ffde9: all three failed twice at the exact CI assertionse8621deb4a6: both badge cases failed twice; Review passed twicec386751b559: both real-Gateway shards and six UI shards passed; UI 1 failed only the two exact matched main PR-chip casesf44c1845cd5: conflict resolved by adopting #189730; remaining two repairs unchanged; fresh independent review and E2E typecheck passed; CI 41241312436 fully green, including all seven UI and both real-Gateway shardsThe 20-repeat composition proof uses production base
9e64fc4ab762624849d9256524bf2480a7ba3fb2with the corrected tests and temporary per-target repetition options. These options are not committed. The requested 20-repeat Review proof used this lane's equivalent repair before #189730 landed; final source now uses the independently landed main version. Current-head PR CI supplies integration proof after the conflict-resolution merge. Prior-head PR run41235730235failed only these two exact test names, both also failing in the then-latest completed scheduled main run41238866951(UI job124648551332); they also failed in the previous scheduled run41234198377:session pull request chips > keeps every PR visible and actionable at 1440 in lightsession pull request chips > offers a compact publication row while rate limited on desktopThe local shard-2 run also exposed
Control UI dashboard side-panel selection > uses Panels for the main Dashboard conversation without replacing its content: after closing/reopening Panels,scrollTopwas 402 instead of 1444 at line 166. The unchanged test reproduces independently on both production base9e64fc4ab76and prior headc386751b559(each replay: 1 failed, 2 passed). No source in that flow is changed by this PR. The layout helper waits for bounding-box stability rather than transcript scroll stability, but whether the failure is a settling assumption or a product restoration defect remains unresolved. This is recorded as an investigated local failure, not a passing test; the original three target cases are all 20/20. The prior-head CI has no dashboard failure. The unrelated dashboard case was not rerun after the later main integration. Those prior-head CI failures were qualified as inherited; after the conflict-resolution merge, final-head CI passed completely and native auto-merge landed the PR.Changed test files: 783 → 787 lines (+4). Production LOC unchanged. Screenshots, startup-byte measurement, and port-only Knip are not applicable to this test-only change.
UI commits between the last passing and failing scheduled heads
Merged as
01ac91c280f7d9b4f50feae72dbf55d17d72bfcfthrough native auto-merge after fully green final-head CI. The earlier inherited-failure admission did not merge; it was superseded by the conflict-resolution head.