Skip to content

fix(test): the open-GOP fixture publishes once the player's live join asks - #9306

Merged
kixelated merged 1 commit into
mainfrom
fix/open-gop-live-join
Nov 22, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/open-gop-live-join

Conversation

@kixelated

@kixelated kixelated commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Scheduled Interop run 44921783661 (job 136899198285) fails just test harness on open-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/watch subscribes 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 (under sh/local.sh, as just test harness runs it): fails on f5f8fede (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.
  • Mutation check, to show the fixed fixture still tests recovery: making Recovery.accept always accept, or making Recovery.gap a no-op, each fails the test with the browser's Decoding error. from an orphan picture. So both the join trim and the later-gap trim are exercised.
  • just check passes.

Caused by

  • moq-dev/moq#9293 - made @moq/watch join 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 review after 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-60376e32af96

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a1ff14-6f44-7723-b663-8ab99706662a, round 1

  • Score: 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

… 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>
@kixelated
kixelated marked this pull request as ready for review November 21, 2026 17:11

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 the Decoder exists. It waits until track.demand().refresh is set, or the run has already failed or ended. On an empty track, #reportWanted sets refresh as soon as a subscriber arrives (asked = floor = 0 >= received), whatever the track's refresh config, so the wait ends when the decoder subscribes.
  • Failure path: if the source errors first, inputDone ends the wait. The writes still run, but they are harmless, and failed is rethrown right after.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

runRecovery now creates the video track before publishing packets. It waits for demand or a stop condition before writing packet groups, then finishes the groups and closes the track.

Merge Risk: Minimal · up to 9912e

This change only alters the timing of a test fixture so that it exercises the live-join and later-gap recovery path. It has no production impact, and I found no concrete merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fixture change: the open-GOP test fixture now publishes after the player's live join requests a first group. This matches the raw summary, which describes the video track waiting f…
Description check Passed The description states the problem (the open-GOP interop fixture hands the decoder only group 5 after #9293 made @moq/watch join live), the approach (wait for demand().refresh before writing groups), …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fixture change: the open-GOP test fixture now publishes after the player's live join requests a first group. This matches the raw summary, which describes the video track waiting for track demand before writing packets. The title is specific and concise, and it fits the main change.

Full details: Description check

Explanation

The description states the problem (the open-GOP interop fixture hands the decoder only group 5 after #9293 made @moq/watch join live), the approach (wait for demand().refresh before writing groups), impact, and validation steps. It is directly related to the changeset in test/interop/clients/js/open-gop/main.ts.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

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: ab602bbf-b0db-4b8a-bfd1-40c3dfb49b46
Commits

Reviewing files that changed from the base of the PR and between 54fb68d and 9912e6b.

Files selected for processing: 1

  • test/interop/clients/js/open-gop/main.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 7139a70 Nov 22, 2026
7 checks passed
@kixelated
kixelated deleted the fix/open-gop-live-join branch November 22, 2026 07:55
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