Repository navigation
test(meeting-bot): control clocks in browser retry cases - #149174
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 20, 2026, 11:36 PM ET / September 21, 2026, 03:36 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR gives two meeting-browser retry tests controlled clocks and restores real timers after each test to prevent scheduling delays from exhausting their deadlines. Merge readiness✅ Ready for maintainer review The repair remains useful: current main still uses real clocks in both retry cases. No actionable correctness or security findings were found, and the maintainer-authored PR is protected from cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherMeeting browser control receives meeting URLs, platform adapters, and browser responses, then manages joining or recovering a meeting tab. These tests exercise its retry behavior with simulated browser responses. flowchart LR
A[Meeting request] --> B[Browser controller]
C[Platform adapter] --> B
B --> D[Browser response]
D --> E{Transient failure?}
E -->|Yes| F[Wait and retry]
F --> B
E -->|No| G[Meeting status]
H[Controlled test clock] --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +10. Total +10 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep retry coverage deterministic at the existing controller boundary while preserving production deadlines and behavioral assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that delaying the recovery timer beyond the 500 ms deadline makes the existing fixture rethrow its navigation error; the PR reports a matching Linux before/after probe. This review did not execute tests. Is this the best way to solve the issue? Yes, controlling time in the two existing cases removes scheduler sensitivity without extending deadlines, adding retries, or weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cdd01a194422. 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) |
37a92b3 to
e2f339a
Compare
|
Merged via squash.
|
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (49 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119) docs: reserve Team live updates for Night Watch (openclaw#154425) test(meeting-bot): control browser retry fixture clocks (openclaw#149174) fix(ui): use remote defaults for manual worktree creation (openclaw#154364) fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013) fix(pr): revalidate head reads and reuse repository locators (openclaw#154212) fix(browser): start control when the Gateway has activated the plugin (openclaw#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156) improve: speed up streaming text with inline brackets (openclaw#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636) ci: use four Windows workers on the 16 class (openclaw#154261) feat: verify GitHub credit from trusted OIDC claims (openclaw#153940) feat(sessions): support explicit local placement for child sessions (openclaw#153912) fix(ui): prevent stale copies after text changes (openclaw#154259) perf(gateway): reuse session list candidates across viewers (openclaw#154003) perf(codex): bound progressive local catalog waits (openclaw#154362) docs: keep update requests owned through acceptance (openclaw#154111) perf(state): reduce main-thread coordinator waits (openclaw#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (#154119) docs: reserve Team live updates for Night Watch (#154425) test(meeting-bot): control browser retry fixture clocks (#149174) fix(ui): use remote defaults for manual worktree creation (#154364) fix(proxy): keep WebChat and Codex loopback calls direct (#154013) fix(pr): revalidate head reads and reuse repository locators (#154212) fix(browser): start control when the Gateway has activated the plugin (#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156) improve: speed up streaming text with inline brackets (#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636) ci: use four Windows workers on the 16 class (#154261) feat: verify GitHub credit from trusted OIDC claims (#153940) feat(sessions): support explicit local placement for child sessions (#153912) fix(ui): prevent stale copies after text changes (#154259) perf(gateway): reuse session list candidates across viewers (#154003) perf(codex): bound progressive local catalog waits (#154362) docs: keep update requests owned through acceptance (#154111) perf(state): reduce main-thread coordinator waits (#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (#154119) docs: reserve Team live updates for Night Watch (#154425) test(meeting-bot): control browser retry fixture clocks (#149174) fix(ui): use remote defaults for manual worktree creation (#154364) fix(proxy): keep WebChat and Codex loopback calls direct (#154013) fix(pr): revalidate head reads and reuse repository locators (#154212) fix(browser): start control when the Gateway has activated the plugin (#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156) improve: speed up streaming text with inline brackets (#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636) ci: use four Windows workers on the 16 class (#154261) feat: verify GitHub credit from trusted OIDC claims (#153940) feat(sessions): support explicit local placement for child sessions (#153912) fix(ui): prevent stale copies after text changes (#154259) perf(gateway): reuse session list candidates across viewers (#154003) perf(codex): bound progressive local catalog waits (#154362) docs: keep update requests owned through acceptance (#154111) perf(state): reduce main-thread coordinator waits (#154244) ...
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (44 commits) fix(ci): remove duplicate database worker test entry fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119) docs: reserve Team live updates for Night Watch (openclaw#154425) test(meeting-bot): control browser retry fixture clocks (openclaw#149174) fix(ui): use remote defaults for manual worktree creation (openclaw#154364) fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013) fix(pr): revalidate head reads and reuse repository locators (openclaw#154212) fix(browser): start control when the Gateway has activated the plugin (openclaw#154255) improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156) improve: speed up streaming text with inline brackets (openclaw#154398) test: isolate historical Node runner policy from CI fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636) ci: use four Windows workers on the 16 class (openclaw#154261) feat: verify GitHub credit from trusted OIDC claims (openclaw#153940) feat(sessions): support explicit local placement for child sessions (openclaw#153912) fix(ui): prevent stale copies after text changes (openclaw#154259) perf(gateway): reuse session list candidates across viewers (openclaw#154003) perf(codex): bound progressive local catalog waits (openclaw#154362) docs: keep update requests owned through acceptance (openclaw#154111) perf(state): reduce main-thread coordinator waits (openclaw#154244) ...
) Control the two browser retry fixture clocks so runner load cannot consume their join and recovery budgets before the next inspection. Await the real operations and restore real timers after each case. A delayed-timer probe reproduces the original failure. The repaired cases passed 20 standalone runs, three original 109-file shards, both existing sibling suites, and exact-head CI. Production retry behavior and deadlines remain intact. Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The browser join and recovery tests used real clocks while requiring retries to finish within 1,000 ms and 500 ms. Under CI load, the recovery timer resumed after its deadline and reported the original navigation error.
User Impact
Test-only repair. Browser retry behavior, production deadlines, and existing assertions stay intact.
Why This Change Was Made
Advance the fake clock asynchronously in the two existing cases, await each real operation, and restore the real clock after every test. Thanks to @vincentkoc for the original fix.
Evidence
The recent failure is run 35549567065, job 106181803164. Its recovery case took 520 ms against a 500 ms budget. On Linux, delaying the existing 250 ms timer reproduced the same navigation error before the patch; the patched test passed the identical scheduling probe.
Blacksmith Testbox validation on the patch applied to recent main passed 20 standalone runs of all five cases, three complete original 109-file shards with 2,018 passing tests and two pre-existing skips per shard, and all nine browser-act-lock and browser-session-control sibling cases. The focused file took 0.38–0.45 seconds of Vitest wall time after repair. No skips or retries were added.
Changed-file formatting, core-test types, lint, and repository guards passed. Independent review found no actionable findings through P2. Testbox lease workflow.
The original exact-head CI proof passed its changed-tests job in 59 seconds. Native preparation will bind the landing to current required CI. An initial remote attempt stopped before tests because dependencies were missing; a frozen install corrected that environment. One sibling command referenced a nonexistent test file; the corrected command ran both existing sibling suites successfully.
Later failed workflow diagnosis
The later workflow-dispatch run 35391155741 tested the old head and failed two separate checks. The worktree deletion fixture started a five-second PID-file poll before child readiness; the already-landed fix in #149531 awaits the owned readiness notification. The UI comparison archived a newer base containing the emoji dependency introduced by #146737, but reused the old head installation where that dependency was absent, so its base build failed before any performance measurement. The refreshed branch incorporates those main changes and preserves the browser-test patch byte for byte. No failed job was rerun.