Repository navigation
test(interop): a resume that starves audio says whether any arrived - #9664
Merged
Merged
Conversation
Quest-Claim: 0e5eb9ec02f4d2fa
The scheduled `rust -> js` mp4a resume stall (1 of 56 CI cells, 0 of 271 local runs) never reached the decode loop. The failure sample now carries the page's audio buffered ranges, rendition error, and catalog audio delay/jitter, and the relay logs each downstream subscription's request, so a recurrence names the side that held the audio. The quest records the measurement and waits on that recurrence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 26, 2026 04:23
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Claims quest/m0/interop-green/aac-resume-stall.md.
Summary
The stall doesn't reproduce, so this PR lands the measurement and the diagnostics a recurrence needs. The quest stays open and waits on that recurrence.
Measured:
rust -> jscells failed over the 14 scheduled runs from 2026-11-12 to 2026-11-25 (four versions per run), only in 45469603959.From the failing run's artifact:
audioBytescounts frames as the loop reads them, before decoding, and it stayed flat for 30 s. So either the relay delivered nothing or the JS ordered read held what arrived.Changes:
test/interop/clients/js/src/{contract,probe}.ts: every sample (and so every timeout message) now carriesaudioBuffered(received, unplayed[start, end]ms),audioError, and the selected rendition's catalogdelayandjitter. FlataudioByteswith emptyaudioBufferedmeans nothing arrived. A range means the reader held it.test/interop/interop.sh: the relay also logsmoq_net::lite::publisher=debug, so each downstream subscription's request (ranges,max_delay, order) is in the artifact'srelay.log. That's about 3x the relay log (45 KB to 138 KB over three focused runs). The log stays on disk; only a failed FETCH round prints it.Overlap: moq-dev/moq#9620 (rejoin replay) is a different test (the Firefox media suite) and a different cause (a lingering lite-06 copy's resubscribe ask), so this doesn't duplicate it. moq-dev/moq#9561 (100 ms audio groups) is still open, so it didn't affect the failing run.
Public API: none. Wire: none. Test harness only.
Decisions
rust -> jscells) pass without one (rejected: delete the quest now as fixed by moq-dev/moq#9575 and moq-dev/moq#9564; land only the player-side fields). Recorded in the quest's Plan; the quest keeps its ownWaitingon a recurrence.Validation
.tmp-only script: one relay, a fresh Rust fMP4 publisher per run,bun driver.ts subscribe --codecs opus,mp4a): 30/30 aged 15 s, 20/20 pinned to 4 CPUs, 24 + 60 + 60 with a forced transport switch, 40 with a 1.5 s publisher freeze (7 republished the catalog), and 60 at d9d917a with the switch. All passed.just test interop --publishers rust --subscribers js: passed."audioBuffered":[]in the failure sample. The relay's new lines show each downstreamSubscribe { ..., max_delay: Some(2s), ranges: [...], order: Descending }.bunx tsc --noEmitandbun test src/(16 pass) intest/interop/clients/js.just cipassed.Models
Size: M
Implementer: Claude Code, claude-opus-5-5, unknown
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.The change touches only a quest plan document, interop test client code (contract.ts and probe.ts add diagnostic fields to the test's sample output), and the interop test harness's relay log filter, so nothing a consumer or peer relies on changes and a revert fully undoes it. The worst case is a missing or noisy diagnostic field in an interop test run, which nothing ships from.b1abb0b9-d3a9-4d63-84f9-c6de362571dd