Repository navigation
fix(test): the open-GOP fixture publishes once the player's live join asks - #9306
Conversation
… asks @moq/watch joins live since #9293, so a fixture that writes every group before the decoder subscribes hands it only the newest group. Publish after the track's demand asks for a first group, as a live publisher does, so group 1 is the join and group 4 the later gap again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. Gating the writes on the track's demand restores what the fixture is meant to exercise: a live join that lands on group 1, then the gap at group 4. It fixes the cause (the fixture published before the player joined live) instead of weakening the assertions.
Reviewed changes
I reviewed the one-file fixture change in test/interop/clients/js/open-gop/main.ts.
- Publish on demand: group writing moves inside the
try, after theDecoderexists. It waits untiltrack.demand().refreshis set, or the run has already failed or ended. On an empty track,#reportWantedsetsrefreshas soon as a subscriber arrives (asked = floor = 0 >= received), whatever the track'srefreshconfig, so the wait ends when the decoder subscribes. - Failure path: if the source errors first,
inputDoneends the wait. The writes still run, but they are harmless, andfailedis rethrown right after.
claude-opus-5-5 | 𝕏
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|

Problem
Scheduled Interop run 44921783661 (job 136899198285) fails
just test harnessonopen-gop.browser.ts: the decoder is handed only group 5's twelve pictures, not groups 1, 2, 4, and 5. It passed on 11-20 (run 44776434797).Since #9293,
@moq/watchsubscribes as a live join. The fixture wrote every group before the decoder subscribed, so the join correctly started at the newest group, and the test no longer exercised either the join or the later gap.Approach
The fixture now waits for the track's
demand().refresh(the live join asking for a first group) and only then writes its groups, as a live publisher does. Group 1 is then the join's first group and group 4 the gap after the missing group 3, as before.Impact
None: test fixture only. No public API or wire change.
Validation
bun test ./open-gop.browser.ts(undersh/local.sh, asjust test harnessruns it): fails onf5f8fede(the run's head) with the run's exact diff. Passes on this branch 3 of 3 runs.git bisect(first-parent,a759e4cf..f5f8fede, this test as the oracle) names afa0ec7 (A replacement or fallback joins live at the viewer's min delay #9293) as the first bad commit.Recovery.acceptalways accept, or makingRecovery.gapa no-op, each fails the test with the browser'sDecoding error.from an orphan picture. So both the join trim and the later-gap trim are exercised.just checkpasses.Caused by
@moq/watchjoin live but left the open-GOP fixture writing every group before the player subscribed (found by check: Interop)Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, unknown effort
(Written by Opus 5.5)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 9912e6b
Base: origin/main at 54fb68d
Risk: low,
Only an interop test client’s publishing timing changes, which could break the open-GOP recovery test for contributors; no consumer or peer relies on it, and a revert fully undoes the change.Classified: low by Codex, gpt-6.1-sol, low effort, session
01a1ff14-5ba9-7170-b21d-60376e32af96Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a1ff14-6f44-7723-b663-8ab99706662a, round 1Score: 9/10,
The narrowly scoped fixture change waits for subscription demand, preserving live join and later gap coverage, with no actionable defects found by source inspection; tests were not run.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none