Repository navigation
fix(ui): preserve failures during cloud test cleanup - #149456
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 25, 2026, 5:09 PM ET / 21:09 UTC (Revision 5). ClawSweeper reviewWhat this changesMoves two cloud startup browser-test groups to the shared page fixture so setup failures and combined test and cleanup failures remain visible. Merge readiness✅ Ready for maintainer review Keep open. The merged browser route-drain repairs do not cover the cloud callers’ remaining setup and error-reporting path. The reconstructed head retains main’s cleanup policy, and the prior mixed-route finding no longer applies. Priority: P2 Review scores
Verification
How this fits togetherControl UI browser tests drive Chromium against a test server with a mocked Gateway. A shared fixture owns page creation, failure diagnostics, route drainage, and context closure before CI records each result. flowchart LR
A[Cloud test cases] --> B[Chromium page]
B --> C[Mock Gateway responses]
B --> D[Shared page fixture]
C --> D
D --> E[Drain routes and close context]
E --> F[CI test result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Have the shared fixture own both cloud groups through page acquisition, diagnostics, held-route release, and completed context closure while preserving their existing assertions. Do we have a high-confidence way to reproduce the issue? Yes. Current main places page creation before the affected group's manual finally block, giving a clear fault-injection path; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Using the existing fixture is the narrowest owner-level repair, and its current implementation preserves body and cleanup errors while draining held routes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a8758fdaeabc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from #149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from #149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
) * fix(ui): include final request time in completed work summaries Use matching terminal lifecycle runtime rather than message creation timestamps. Keep unmatched historical summaries untimed. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * fix(ui): include final request time in completed work summaries Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): publish lifecycle timing in completed-turn E2E fixture Preserve independent-run idle-time coverage and exercise a final message created before completion through live and restored lifecycle facts. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): drain held module routes before browser teardown Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from #149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
…claw#149240) * fix(ui): include final request time in completed work summaries Use matching terminal lifecycle runtime rather than message creation timestamps. Keep unmatched historical summaries untimed. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * fix(ui): include final request time in completed work summaries Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): publish lifecycle timing in completed-turn E2E fixture Preserve independent-run idle-time coverage and exercise a final message created before completion through live and restored lifecycle facts. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): drain held module routes before browser teardown Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from openclaw#149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Preserve the canonical page and context route-drain owner and retain only the cloud caller setup and error-composition repair. The resulting tree matches the independently reviewed and remotely tested candidate.
|
@clawsweeper re-review The original PR now preserves main's page/context drainage policy and carries only the cloud-fixture setup/error-composition residual. The body records causal callback proof, 17 helper passes, 11 Chromium passes and the completed targeted lint correction. Please review the reconstructed candidate and disposition the prior cleanup-policy findings; required CI/native landing gates remain separate. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Source admission inputs were corrected after the failed review; the head remains |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(ui): preserve cloud fixture setup and cleanup failures * test(ui): reproduce held-module teardown ordering * fix(ui): drain held module routes before context teardown * fix(ui): reconcile cloud fixture lifecycle with main Preserve the canonical page and context route-drain owner and retain only the cloud caller setup and error-composition repair. The resulting tree matches the independently reviewed and remotely tested candidate. * test(ui): bind held runtime at acquisition Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Cloud startup browser tests can leave a context open after partial setup and lose the original failure when cleanup also fails.
User Impact
Test infrastructure only; no production UI behavior changes. Setup and body failures retain their identity, and each caller waits for context cleanup before settling.
Why This Change Was Made
The two cloud-fixture groups now use the existing
suite.withPageowner. All eight affected scenarios and their assertions remain, including the intentional mid-test held-module release.Main already contains the primary page/context route-drain repair from #149240 and #156473. This reconstruction preserves that owner and its diagnostic ordering instead of restoring the old exact-handler alternative. The historical policy-specific synthetic tests are not carried forward; equivalent coverage for all eight is not claimed.
The original PR ancestry is preserved. Relative to the inspected main base, the change is confined to the cloud caller file.
Evidence
Remote Linux proof used Node 24.19.0 and pnpm 12.4.2:
Final candidate:
95e7ecad12828df2eb1bc0bb995b8b75e5343c45, tree2d38458ec3a1cbfb47338ace61e1e98eb430b256. All owned proof commands and leases completed. Testbox cleanup can cancel its backing Actions job; the delegated command receipts establish the results above.Required current-head CI, fresh trusted review and native landing gates remain outstanding. No merge is claimed.