Skip to content

ci(interop): stream credit runs a release relay and keeps its failing runs - #9840

Open
kixelated wants to merge 5 commits into
mainfrom
qr/stream-credit-release-relay
Open

kixelated wants to merge 5 commits into
mainfrom
qr/stream-credit-release-relay

Conversation

@kixelated

@kixelated kixelated commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Triage of Stream credit in browsers on the scheduled Interop for 2026-11-26 and 2026-11-27, under quest/m0/interop-green/README.md.

Problem

45873739689 (11-26, b50932876b) and 46045301725 (11-27, 9d3f43268a) failed stream credit, which passed every scheduled run from 11-22 to 11-25. Every failing cell was lite-07: both lite-06 cells passed both nights, though the debug relay fails lite-06 the same way on hosted runners (below). (The 11-27 high-1..8: missed groups 28 was on Firefox lite-07, not lite-06.) Four distinct causes:

Failure Cause Owner
11-26 Firefox: 144 subscriptions still open #9686 trusted WebTransport resets as reliable and removed the grace period fixed by moq-dev/moq#9743, merged before the 11-27 run
11-27 Chromium: mid-12: group 6 ... fetched "0 frames, then Stream: remote error: 52" (52 = OLD) the relay answered a fetch, which has no budget, with its live-edge copy's stale verdict fixed by moq-dev/moq#9768, merged after the 11-27 run
11-27 Firefox: high-1..8: missed groups 28 the hosted runner saturates, mostly from the debug relay, so the high tier misses its 500 ms budget this PR
Found validating this PR, Chromium lite-06: 4 subscriptions still open, each holding group 39 after its first frame most likely Chromium lost the group's reset, and lite-06 has no drop to name it new child quest/m0/test-flakes-5/lite06-lost-reset-hang.md
11-26 Chromium media: volume 0.25: only 27/31 samples carried audio a one-off flake, not reproduced new child quest/m0/test-flakes-5/volume-check-audio-gap.md

The step also lacked HARNESS_RUNS/HARNESS_RESULTS, unlike every other harness step. So neither failing run uploaded the cell's relay log or report.json, and the report recorded no stream-credit cells.

Approach

  • Stream credit in browsers sets STREAM_CREDIT_PROFILE: release, plus the run directory and results file the other harness steps use.
  • test/stream-credit/README.md says why, and that a high-tier miss on a starved host is load, not scheduling.
  • The epic's Plan records all four causes, with their owners and measurements.
  • The volume flake becomes a child of the test flakes epic, which owns new flakes while it is open.

No child quest under interop-green: the one cause fixed here is finished by this PR, and a finished quest is deleted, so its record lives in the epic's Plan, as for earlier causes this epic fixed in its own PRs.

Validation

All on the hosted ubuntu-latest runner class, using a scratch workflow_dispatch branch that looped only the lite-07 stream-credit cells, with a 1 Hz top sampler:

  • main at 02752605b1 with extra relay debug logging (run 46119225782): 20 of 48 cells failed, every one a high-tier miss. None was a fetch failure, which confirms fix(net): lite-07 fetches come back whole under load #9768. CPU over the cells: moq-relay 159%, bun 102%, browsers about 70%; idle under 5% in 54% of samples.
  • A/B with no extra logging (run 46120043135, 3 jobs per arm, 36 cells each):
    • debug relay: 4 of 36 failed (high-tier misses). Relay at 142% CPU, idle under 5% in 40% of samples.
    • release relay: 0 of 36 failed, including a slow runner whose cells took 12.9 s. Relay at 49%, idle under 5% in 5% of samples.
  • The same A/B on lite-06 (run 46125303013, 36 cells each): debug 3 failed (high-tier misses), release 0.
  • Locally, on a 32-core host at load 50 to 78, 2 of 16 cells failed the same way. Both ran at 2.5 to 3x real time with multi-second gaps in the relay log, and the page's own clock showed a 4 s stall.
  • Full Interop on this branch at b1869e9bc7 (run 46121821106): every step passed except stream credit. Its release relay built in 5m 40s cold; both lite-07 cells and Firefox lite-06 passed; Chromium lite-06 left 4 subscriptions open (the lost-reset flake above). Thanks to this PR's env, that run uploaded the cell's relay log and pending.json, which is how it was diagnosed.
  • quest check: pass. just check: everything passes except sh/rs/package-rename.test.py, where macOS's rpm aborts (mutex lock failed). That test reads none of these files and fails the same way when run alone; follow-up below.

Impact

  • Public API: none. Wire: none.
  • CI: the Interop job builds moq-relay in release for this step. That adds about 4 to 6 minutes cold (loop step 490 to 609 s against 253 to 288 s; 5m 40s for the build on this branch's run). Interop runs on a schedule and from the release gate, not in the merge queue, so the queue is unaffected.

Alternatives

  • A looser high-tier budget. Rejected: the assertion is the test.
  • A new optimized profile without fat LTO, to build faster. Rejected for now: another profile to maintain, to save a few minutes on a scheduled job.
  • Release as the default for local runs too. Rejected: local hosts are rarely 4 vCPUs, and a fat-LTO relay per tree change slows iteration. The README says when a local miss is load.

Decisions

Taken on my recommendation while running headless:

  • Release relay in CI only, at about 4 minutes cold per Interop run. The media lane once declined a release relay ("rejected: building the media lane's relay in release", 2026-11-28 in the epic), but there the failures had stopped. Here the A/B shows the debug relay causes them.

Follow-ups

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Luke Curley and others added 3 commits November 27, 2026 23:34
… runs

A debug relay takes about 1.4 of the hosted runner's 4 vCPUs in the stream
credit step, which saturates the host and makes the high tier miss its 500 ms
budget (4 of 36 lite-07 cells on main; 0 of 36 with a release relay). The step
also lacked HARNESS_RUNS and HARNESS_RESULTS, so a failing cell's relay log and
report never reached the failure artifact.

Records the 11-26 and 11-27 stream credit causes in the interop-green epic and
adds a test-flakes child for the one-off media volume check failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Luke Curley and others added 2 commits November 28, 2026 00:44
…alidating

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… settles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as ready for review November 28, 2026 08:47
@coderabbitai

coderabbitai Bot commented Nov 28, 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 5 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: 5cf7e583-8b09-410c-9c01-8cc137f98b26
Commits

Reviewing files that changed from the base of the PR and between d3260c9 and 8965f78.

Files selected for processing: 6

  • .github/workflows/interop.yml
  • quest/m0/ci/package-rename-macos.md
  • quest/m0/interop-green/README.md
  • quest/m0/test-flakes-5/lite06-lost-reset-hang.md
  • quest/m0/test-flakes-5/volume-check-audio-gap.md
  • test/stream-credit/README.md
  • 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

This branch has not been deployed

No deployments
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