Skip to content

fix(hang)!: without_ext keeps every non-ext field; drop dead hang/moq-mux Error variants - #9361

Merged
kixelated merged 3 commits into
mainfrom
quest/m2/hang-without-ext-and-errors
Nov 22, 2026
Merged

kixelated merged 3 commits into
mainfrom
quest/m2/hang-without-ext-and-errors

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m2/hang-without-ext-and-errors (deleted, with its link in quest/m2/README.md).

Summary

  • hang::Catalog::without_ext destructures self with no .., so it now keeps json, binary, stats, echo, include, and skipped (it used to reset them to default), and a new Catalog field fails to compile until handled.
  • Removed the 6 unconstructed hang::Error variants (Hex, MissingKeyframe, TimestampBackwards, Url, EmptyGroup, UnknownFormat), their From<hex::FromHexError> and From<url::ParseError> impls, and moq_mux::Error::Url with its From impl.
  • Dropped the now-unused url dependency from moq-mux and the normal url dependency from hang. Regenerated nix/Cargo.nix, Cargo.lock, and demo/carla/bridge/Cargo.lock.
  • Test: without_ext_keeps_every_other_field fills every Catalog field and asserts only ext is cleared.

Impact

Public API, breaking (the ! title is set when the PR is marked ready): hang::Error loses 6 variants, moq_mux::Error loses Url, and Catalog::without_ext now preserves the non-ext fields it used to drop. Wire: none. moq-mux's Error::UnknownFormat stays, since other code constructs it (only hang's was dead).

Migration: stop matching the removed variants (none was ever returned); callers of without_ext that relied on json/binary/stats/echo/include being cleared must clear them themselves. The release cut writes this into MIGRATE.md.

Choices for review

  • Kept hang's url dev-dependency: rs/hang/examples/{subscribe,video}.rs use url::Url. The quest named both lines 33 and 47 of rs/hang/Cargo.toml; only the normal dependency (33) was dead.
  • Did not edit rs/hang/MIGRATE.md or rs/moq-mux/MIGRATE.md: AGENTS.md has the release cut write them from this section.
  • without_ext also carries skipped (a decoder-filled field), so the copy is lossless apart from ext.
  • No JS counterpart: without_ext and these errors are Rust-only.

Overlap with #9347

#9347 edits rs/hang/src/catalog/root.rs (the reserved extension names, serialize_ext) and adds fmp4::Error::InvalidAudioConfig in moq-mux. Different hunks: this PR touches without_ext, rs/hang/src/error.rs, and rs/moq-mux/src/error.rs variants Url; I did not redo any of its work. Both change Cargo.lock and nix/Cargo.nix, so whichever lands second needs a trivial merge of those two files.

Validation

  • quest gate just check passes (fmt, clippy, nextest across the workspace, cargo-nix, quest check). One earlier run timed out moq-mux container::ts::export_test::a_rendition_moved_to_another_aac_configuration_fails under load; it passes alone and in cargo nextest run -p moq-mux -p hang (2330 passed), and my change cannot touch it.
  • cargo check --workspace --all-targets is warning-free.
  • No behavior beyond the unit test to exercise (library-only change).

Follow-ups

None.

Models

Size: XS
Implementer: Claude, claude-sonnet-5-5, unknown effort (arm A)

(Written by Claude Sonnet 5.5)

Review

Rewritten by quest review after each round.

  • Head: 00731ab

  • Base: origin/main at d80a46c

  • Risk: high, Removing public hang and moq-mux Error variants and From conversions can break downstream Rust consumers at compile time; reverting restores the API, but consumers may need a corrective release.

  • Classified: high by Codex, gpt-6.1-sol, low effort, session 01a20221-6810-76d3-a91d-b29e32b17d43

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

  • Session: 01a20221-7b5a-7c93-a542-aac06706ded3, round 1

  • Score: 9/10, The focused cleanup preserves non-extension catalog fields and includes a regression test with no identified behavioral regression, though tests were not run as instructed.

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

  • Findings: none

kixelated and others added 3 commits November 21, 2026 22:56
…riants and url dep

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Fix hang::Catalog::without_ext and drop dead hang/moq-mux Error variants fix(hang)!: without_ext keeps every non-ext field; drop dead hang/moq-mux Error variants Nov 22, 2026
@kixelated
kixelated marked this pull request as ready for review November 22, 2026 07:22
@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 7 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: a1751a46-ab4c-457f-b3fa-7c5dda15ff14
Commits

Reviewing files that changed from the base of the PR and between f2965d8 and 00731ab.

Files ignored due to path filters: 2

  • Cargo.lock is excluded by !**/*.lock
  • demo/carla/bridge/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 8

  • nix/Cargo.nix
  • quest/m2/README.md
  • quest/m2/hang-without-ext-and-errors.md
  • rs/hang/Cargo.toml
  • rs/hang/src/catalog/root.rs
  • rs/hang/src/error.rs
  • rs/moq-mux/Cargo.toml
  • rs/moq-mux/src/error.rs
  • 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 enabled auto-merge November 22, 2026 07:23

@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 — destructuring self without .. makes a new Catalog field a compile error in without_ext, and the dead variants and the url dependency are removed together.

Reviewed changes

Read the full diff and grepped for remaining users of the removed items.

  • Catalog::without_ext — now carries json, binary, stats, echo, include and skipped, and clears only ext. The new test fills every field and asserts equality.
  • hang::Error — drops Hex, MissingKeyframe, TimestampBackwards, Url, EmptyGroup and UnknownFormat, plus the From<hex::FromHexError> and From<url::ParseError> impls. Nothing in rs/ constructs or matches them; moq_mux::Error::MissingKeyframe is a separate type and is unaffected.
  • moq_mux::Error::Url — removed along with its From impl. libmoq has its own Error::Url and is unaffected.
  • Dependencies — the url dependency is dropped from hang and moq-mux. hang keeps url as a dev-dependency for its examples, and hex stays because catalog/hex.rs uses it.
  • Lockfiles and quest docs — generated files and quest bookkeeping only.

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 7d491a3 Nov 22, 2026
9 checks passed
@kixelated
kixelated deleted the quest/m2/hang-without-ext-and-errors branch November 22, 2026 08:42
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