Skip to content

Deflake the Meet-after-Not-now prompt test - #1901

Merged
r3dbars merged 1 commit into
mainfrom
claude/deflake-meet-after-not-now
Sep 28, 2026
Merged

r3dbars merged 1 commit into
mainfrom
claude/deflake-meet-after-not-now

Conversation

@r3dbars

@r3dbars r3dbars commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Plan item #2 (zero flakes). MeetingPromptDetector browser evidence — Not now to a generic prompt does not hide a Meet tab waited a fixed ~100 ms for the detector's async evaluation before asserting a prompt arrived. In a full run-tests.sh on a loaded machine it failed ("expected 2, got 0") and passed on rerun.

The two waits that expect a prompt now wait until it arrives, up to about 5 s (waitForPromptEvaluation(until:)). The final "no new prompt" check keeps the fixed wait; a slow runner can only make that one pass, not fail.

Not fixed here: other suites in the file share the fixed ~100 ms helper (60 call sites) and can flake the same way under heavy local load (seen at lines 320 and 907 while this machine ran several builds at once; CI has been green). A reliable fix for all of them needs a pending-evaluation hook in MeetingPromptDetector, a hotspot file, so that's a separate change.

Verified: run-tests.sh --filter MeetingPromptDetectorTests (the fixed suite passes; the other flakes are load-dependent and pass on rerun), check-test-shape.py.

🤖 Generated with Claude Code

…a fixed 100 ms

The suite waited a fixed ~100 ms for MeetingPromptDetector's async evaluation
before asserting a prompt arrived, so a loaded machine could assert first:
seen as 'a real Meet tab right after a Not now ... should still prompt —
expected 2, got 0' in a full run, passing on rerun. The two waits that expect
a prompt now wait until it arrives (up to about 5 s); the final 'no new prompt'
check keeps the fixed wait, which a slow runner can't turn red.

Other suites in the file share the fixed helper and can flake the same way
under heavy load; fixing them for good needs a pending-evaluation hook in the
detector, noted in the testing plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@r3dbars
r3dbars merged commit 372a250 into main Sep 28, 2026
8 checks passed
@r3dbars
r3dbars deleted the claude/deflake-meet-after-not-now branch September 28, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant