Skip to content

quest: accept the CMAF chunk's esds parser growth in Nightly sizes - #9427

Merged
kixelated merged 1 commit into
mainfrom
fix/cmaf-size-accept
Nov 22, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/cmaf-size-accept

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Nightly run 45035580806, job Shipping sizes, failed six 5% daily comparisons, measured at 628ff8199d against 9df4313aba:

Measurement Previous Failed Growth
js/watch/cmaf/raw, js/watch-ui/cmaf/raw 5,783 6,249 8.1%
js/watch/cmaf/gzip, js/watch-ui/cmaf/gzip 2,491 2,627 5.5%
js/watch/cmaf/brotli, js/watch-ui/cmaf/brotli 2,281 2,403 5.3%

Approach

The growth is an intended correctness fix, so this PR accepts it the way sh/size/README.md prescribes: record the causing commit, before and after bytes, and reason, and keep the thresholds unchanged. The record goes in the Nightly quest's Plan.

  • Attribution: diffing both runs' retained watch.metafile.json puts the whole difference in one input, js/hang/dist/cmaf/decode.js (5,463 → 5,928 bytes in output). The only commit in 9df4313aba..628ff8199d that touches js/hang/src/cmaf/ is 59711452b5 (moq-dev/moq#9344).
  • Reason: fix(js): hang catalog/CMAF, watch rotation, and room metadata bugs #9344 rewrote the esds parser to skip the ES_Descriptor's optional fields (streamDependence, URL, OCR) and to refuse truncated descriptors. Before, AAC with those flags set got no decoder config. The added bounds checks and error strings account for the bytes.
  • Thresholds: the failed report already became the daily baseline, so the next run compares against 6,249. History starts 2026-11-18, so there is no 30-day anchor yet; when 5,783 becomes the anchor, 6,249 is 8% over it, inside the 10% limit.

Validation

  • Measured independently by minifying decode.ts at both revisions with esbuild: 5,641 → 6,113 bytes (+472), matching the metafile delta.
  • quest gate just check passes.

Alternatives

  • Golfing the parser: merging its six error checks into one message saves roughly 100–150 bytes. That still leaves raw over 5% (≈6,100 > 6,072), and it costs specific errors on a hostile-input path. Not worth it.
  • Loosening the threshold: excluded by the brief and by the size README.

Impact

None. No public API or wire change.

Caused by

  • moq-dev/moq#9344 - intended growth from its esds parser fix, not a defect (found by check: Nightly shipping sizes)

Models

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

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: 93450cd

  • Base: origin/main at 2ff763b

  • Risk: low, Nothing a consumer or peer relies on can break: the only change is 11 added lines of prose in quest/m0/nightly/README.md, a documentation file outside every High path in RISK.md, and a revert removes it completely.

  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session dadff5ba-65a3-42df-9a68-c59a7e833a78

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

  • Session: 01a2043e-899e-7953-8e8f-47ff348cf9d9, round 1

  • Score: 10/10, The documentation change accurately records acceptance of CMAF bundle growth, with no actionable defects or changes to APIs, formats, defaults, or guards.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as draft November 22, 2026 17:12
@coderabbitai

coderabbitai Bot commented Nov 22, 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 2 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: cf441bf2-da87-4e4d-bb8a-d686a07790d5
Commits

Reviewing files that changed from the base of the PR and between 2ff763b and 93450cd.

Files selected for processing: 1

  • quest/m0/nightly/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

@kixelated
kixelated marked this pull request as ready for review November 22, 2026 17:12

@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 — records the accepted size growth in the Nightly quest as sh/size/README.md prescribes, leaving thresholds unchanged.

Reviewed changes

  • Nightly quest note: quest/m0/nightly/README.md gains an 11-line paragraph recording the run, before and after bytes, the causing PR (#9344), and the threshold reasoning.

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

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit c86d4bd Nov 22, 2026
7 checks passed
@kixelated
kixelated deleted the fix/cmaf-size-accept branch November 22, 2026 23:11
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