Repository navigation
Fix flaky hop-return cap test under the address sanitizer - #353
Merged
Merged
Conversation
`returnsAtCap` advanced the TestClock straight after the window opened. The cap is a Task, so under a slow run (the address sanitizer) the advance could land before the task reached `clock.sleep`; its deadline then stayed ahead of virtual time and nothing ever woke it, failing `until` after 3 s. Wait on `waitUntilSleeping(for:)` first, as the heartbeat tests do. Seen failing ios-sanitizers (address) on #327, a Mac-only change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DS5B1WW4Gb71hVeS3gvFB4
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
DictationCoordinatorReturnTests.returnsAtCap("with a keeper expected but silent, the return comes at the cap") advanced theTestClockimmediately after the window opened. The cap is aTaskthat sleeps on that clock, so on a slow run (the address sanitizer) the advance could land before the task reachedclock.sleep. The sleeper then registered with its deadline still ahead of virtual time, nothing ever woke it, anduntilgave up after 3 s.The test now awaits
clock.waitUntilSleeping(for: .seconds(BlurtShared.hopReturnCap))before advancing, the same pattern the heartbeat tests use. Test-only change; no app code touched.Seen failing
ios-sanitizers (address)on #327, a Mac-only change unrelated to this test.How it was tested
Written on Linux, so not built or run locally; CI's
ios-sanitizersjobs on macOS are the verification.scripts/check.shpasses (or CI will, if I'm not on a Mac)deliberately removed
Generated by Claude Code