Skip to content

Fix flaky nightly CI: bump main-actor blocking threshold - #185

Merged
jatinkrmalik merged 1 commit into
mainfrom
jmalik/fix-flaky-nightly-test
Jul 15, 2026
Merged

Fix flaky nightly CI: bump main-actor blocking threshold#185
jatinkrmalik merged 1 commit into
mainfrom
jmalik/fix-flaky-nightly-test

Conversation

@jatinkrmalik

Copy link
Copy Markdown
Member

What

testStartRecordingDoesNotBlockMainActorDuringAudioStart fails intermittently on CI runners (0.204s > 0.2s threshold).

Why

The mock audio engine has startRecordingDelay = 0.3 — the test is verifying the main actor doesn't synchronously block for the full audio start duration. The 0.2 threshold was too tight: initial main-actor work (guard checks, state mutation, cursor overlay) can creep past 0.2 on slower runners.

Fix

Bumped the assertion threshold from 0.2 → 0.3, matching the mock's startRecordingDelay. The assertion remains meaningful — it still catches actual synchronous blocking (which would be ≥0.3) — while eliminating the timing flake.

testStartRecordingDoesNotBlockMainActorDuringAudioStart was failing
intermittently on CI runners where initial MainActor work (guard checks,
state mutation, cursor overlay) took 204ms — just over the 0.2s limit.

The mock audio engine's startRecordingDelay is 0.3, so the test intent is
to verify the main actor doesn't synchronously wait for the full audio
start duration. Matching the threshold to the mock delay (0.3) preserves
the assertion while eliminating the timing flake.
@github-actions github-actions Bot added app ci question Further information is requested and removed ci labels Jul 15, 2026
@jatinkrmalik
jatinkrmalik merged commit 292f6bd into main Jul 15, 2026
5 checks passed
@jatinkrmalik
jatinkrmalik deleted the jmalik/fix-flaky-nightly-test branch August 22, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant