Skip to content

test: give the DTMF completion wait more headroom - #268

Merged
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/dtmf-wait-headroom
Sep 5, 2026
Merged

test: give the DTMF completion wait more headroom#268
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/dtmf-wait-headroom

Conversation

@SendableMetatype

Copy link
Copy Markdown
Contributor

RTCDtmfSenderTests waits one second for a tone sequence to complete, a bound introduced with the observer latch in a5cdb18. The longest sequence in the suite needs 720 ms of tone time. Timer scheduling and the callback into Java add about 240 ms on top, so the bound leaves roughly 50 ms of margin and ordinary scheduling jitter is enough to cross it.

I hit this twice in a row on the Intel macOS lane in this run on my fork, both attempts, while the same tree passed everywhere else. The failing test's two sequences took 1.785 s together, which matches the estimate.

The change raises the wait to five seconds. The latch returns as soon as the sequence completes, so a passing test takes exactly as long as before, and only a real hang waits the full five seconds. Runs with this change passed the test on every lane, both with warm caches and cold. Green runs prove little for an intermittent failure, so the arithmetic above is the actual argument.

RTCDtmfSenderTests waits one second for a tone sequence to complete.
The longest sequence in the suite needs 720 ms of tone time, and timer
scheduling plus the JNI callback add about 240 ms on top, so the bound
leaves almost no margin and ordinary scheduling jitter is enough to
cross it. The Intel macOS lane hit this twice in a row. The latch
returns when the sequence completes, so a five second bound costs
nothing when the test passes.
@devopvoid
devopvoid merged commit 560d78f into devopvoid:main Sep 5, 2026
7 checks passed
@SendableMetatype
SendableMetatype deleted the fix/dtmf-wait-headroom branch September 6, 2026 12:06
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.

2 participants