Skip to content

test(meeting-bot): control clocks in browser retry cases - #149174

Merged
steipete merged 1 commit into
mainfrom
test/meeting-browser-clock-fixtures-20260915
Sep 21, 2026
Merged

steipete merged 1 commit into
mainfrom
test/meeting-browser-clock-fixtures-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

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.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 14:37
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 11:36 PM ET / September 21, 2026, 03:36 UTC (Revision 4).

ClawSweeper review

What this changes

The 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
Reviewed head: e2f339a4ae05eaf3ac074cbe447eae4988aebbc6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, sound fixture repair with preserved assertions and relevant reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored test-only PR has no runtime or authority change requiring contributor live proof; its reported scheduling probe and shard runs directly address the fixture defect.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored test-only PR has no runtime or authority change requiring contributor live proof; its reported scheduling probe and shard runs directly address the fixture defect.
Evidence reviewed 8 items Introduced change: The pinned introduction changes only clock setup, asynchronous clock advancement, operation awaiting, and timer cleanup. Existing assertions and production code are preserved.
Repair still needed on main: The complete current-main test retains real-clock waits under 1,000 ms join and 500 ms recovery budgets. The production controller is identical between fetched main and the reviewed head.
Production retry mechanism: The controller uses Date.now deadlines and waits of up to 750 ms for joining and 250 ms for recovery. Recovery rethrows the navigation error if scheduling resumes after its deadline. Both modified tests still await the actual controller operation and assert the successful retry.
Findings None None.
Security None None.

How this fits together

Meeting 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +10. Total +10 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 3 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 13 3 +10

Review metrics

Metric Value Why it matters
Reported focused test cost 0.38–0.45 seconds The PR records focused-file wall time comfortably within the repository's test-cost budget.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a bounded test-reliability repair with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored test-only PR has no runtime or authority change requiring contributor live proof; its reported scheduling probe and shard runs directly address the fixture defect.

Evidence

What I checked:

  • Introduced change: The pinned introduction changes only clock setup, asynchronous clock advancement, operation awaiting, and timer cleanup. Existing assertions and production code are preserved. (src/meeting-bot/browser-controller.test.ts:5, e2f339a4ae05)
  • Repair still needed on main: The complete current-main test retains real-clock waits under 1,000 ms join and 500 ms recovery budgets. The production controller is identical between fetched main and the reviewed head. (src/meeting-bot/browser-controller.test.ts:19, cdd01a194422)
  • Production retry mechanism: The controller uses Date.now deadlines and waits of up to 750 ms for joining and 250 ms for recovery. Recovery rethrows the navigation error if scheduling resumes after its deadline. Both modified tests still await the actual controller operation and assert the successful retry. (src/meeting-bot/browser-controller.ts, e2f339a4ae05)
  • Latest release comparison: The v2026.9.5 test blob is 471f3f12ffb5b6584b8d10979af483e0217f62e6, matching the pre-patch blob in the introduced diff; the clock repair is not present there. (src/meeting-bot/browser-controller.test.ts, ec9c1a13db89)
  • Validation and review continuity: The captured PR body reports a Linux delayed-timer before/after reproduction, 20 passing standalone runs, three original-shard passes, nine sibling cases, and 0.38–0.45 seconds focused-file wall time. These are contributor-reported results, not tests executed during this read-only review. The previous review projection contains no findings or published rank-up moves. Local comparison with its older SHA was unavailable, so byte-for-byte continuity was not independently established. (e2f339a4ae05)
  • Verified merge scope: The test-merge commit records the pinned base followed by the exact PR head as parents; its comparison against that base changes only the browser-controller test. Base-only changes are not attributed to this PR. (a3916ce6f87d)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-15T14:43:37.080Z sha 37a92b3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T15:30:31.097Z sha 37a92b3 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T02:42:14.513Z sha 37a92b3 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the test/meeting-browser-clock-fixtures-20260915 branch from 37a92b3 to e2f339a Compare September 21, 2026 03:26
@steipete
steipete merged commit c76dfd4 into main Sep 21, 2026
101 of 102 checks passed
@steipete
steipete deleted the test/meeting-browser-clock-fixtures-20260915 branch September 21, 2026 04:44
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

vincentkoc added a commit to jb510/openclaw that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* 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)
  ...
vincentkoc added a commit to vyctorbrzezowski/openclaw that referenced this pull request Sep 21, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
)

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants