Repository navigation
test(ui): skip idle animation frames between cloud retries - #132579
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 8:25 AM ET / 12:25 UTC. ClawSweeper reviewWhat this changesThe PR replaces frame-by-frame virtual-clock advancement with timer fast-forwarding between cloud-profile retry attempts in one Control UI end-to-end test. Merge readinessKeep open. This is a current maintainer-owned, focused Control UI E2E performance improvement with no blocking defect found; the retry owner schedules one retry at a time and the test continues to wait between each virtual-time advance. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI refreshes cloud environment profiles and retries after a temporary gateway failure. Its E2E test drives a mocked Gateway with Playwright virtual time, then verifies retained cloud selection and session dispatch behavior. flowchart LR
A[Cloud session E2E test] --> B[Mock Gateway failure]
B --> C[Retry timer]
C --> D[Virtual browser clock]
D --> E[Environment request]
E --> F[Cloud selection and dispatch assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the separate per-attempt fast-forward and request wait, preserving the existing retry-count and retained-selection assertions while avoiding idle animation-frame replay. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR improves test execution time while retaining the existing end-to-end behavior assertions. Is this the best way to solve the issue? Yes. The production owner creates the next retry only after each failed request, and advancing each existing delay separately is the narrowest way to skip idle frames without collapsing retry attempts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against de969147e7f3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Addressed the remaining verification risk: the acting maintainer directly inspected the installed Playwright 1.62.1 clock implementation in Exact head |
|
Merged via squash.
|
Summary
Cloud-dispatch coverage replays every browser animation frame while advancing through five retry delays totaling 104 virtual seconds. Fast-forward each existing delay separately instead, retaining the request wait between retries, six-attempt assertion, selected cloud profile/machine, and create/dispatch/send/reclaim flow.
This removes idle timer replay from test execution. It does not change production timing, screenshots/video behavior, sharding, concurrency, test selection, or assertions. The device-dispatch sibling still checks the 999ms/1ms retry boundary.
Validation
Production LOC delta: 0. Test delta: +1/-1. The canonical retry owner and all public behavior remain unchanged. No changelog needed.