Skip to content

test(interop): a resume that starves audio says whether any arrived - #9664

Merged
kixelated merged 3 commits into
mainfrom
quest/m0/interop-green/aac-resume-stall
Nov 26, 2026
Merged

kixelated merged 3 commits into
mainfrom
quest/m0/interop-green/aac-resume-stall

Conversation

@kixelated

@kixelated kixelated commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • CI: 1 of 56 rust -> js cells failed over the 14 scheduled runs from 2026-11-12 to 2026-11-25 (four versions per run), only in 45469603959.
  • Locally: 0 of 271 focused runs. They covered a CI-aged publisher, 4 pinned CPUs on a loaded host, a forced WebSocket-to-WebTransport publisher switch, and a 1.5 s publisher freeze that republishes the catalog. 60 of the switching runs were at the failing head (d9d917a) and also passed, so there's nothing to bisect.

From the failing run's artifact:

  • No audio frame reached the decode loop after resume. audioBytes counts 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.
  • The publisher lost QUIC's 200 ms head start on the loaded runner and ran over WebSocket for 8 s. The relay then moved the broadcast to the new WebTransport session 240 ms after the mp4a page joined, between its first audio subscribe and its pause. 9 local runs hit that same window and passed.
  • The page received the catalog three more times after resume, without resubscribing.

Changes:

  • test/interop/clients/js/src/{contract,probe}.ts: every sample (and so every timeout message) now carries audioBuffered (received, unplayed [start, end] ms), audioError, and the selected rendition's catalog delay and jitter. Flat audioBytes with empty audioBuffered means nothing arrived. A range means the reader held it.
  • test/interop/interop.sh: the relay also logs moq_net::lite::publisher=debug, so each downstream subscription's request (ranges, max_delay, order) is in the artifact's relay.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.
  • The quest records the measurement, the leads, and how to read a recurrence.

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

  • 2026-11-26 (maintainer, /quest-run): ✅ land the diagnostics, including the relay's per-subscription request logging, and keep the quest waiting for the next failure; delete it once two weeks of scheduled runs (56 rust -> js cells) 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 own Waiting on a recurrence.

Validation

  • Focused loop (.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.
  • New fields on the real surface: a frozen publisher's timeout printed "audioBuffered":[] in the failure sample. The relay's new lines show each downstream Subscribe { ..., max_delay: Some(2s), ranges: [...], order: Descending }.
  • bunx tsc --noEmit and bun test src/ (16 pass) in test/interop/clients/js. just ci passed.

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 review after each round.

  • Head: 5ce2117
  • Base: origin/main at f90441d
  • Risk: low, 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.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session b1abb0b9-d3a9-4d63-84f9-c6de362571dd
  • Risk file: bb7b1c0de60b
  • Local review: none, since the head is low risk

kixelated and others added 2 commits November 25, 2026 17:33
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>
@kixelated kixelated changed the title The JS player resumes AAC audio from a Rust publisher test(interop): a resume that starves audio says whether any arrived Nov 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 26, 2026 04:23
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d67dbf9e-fd90-4aa2-b87d-e46b3b286f6b
Commits

Reviewing files that changed from the base of the PR and between c53243d and 5ce2117.

Files selected for processing: 4

  • quest/m0/interop-green/aac-resume-stall.md
  • test/interop/clients/js/src/contract.ts
  • test/interop/clients/js/src/probe.ts
  • test/interop/interop.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@kixelated
kixelated added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit bf2347a Nov 26, 2026
7 checks passed
@kixelated
kixelated deleted the quest/m0/interop-green/aac-resume-stall branch November 26, 2026 04:41
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