moq-net: largest() after a skip, JS refusal errors, and one-shot OLD Max Age (from #10112/#10138 review)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, rust
- Área
- backend, networking, testing
Línea de trabajo
Start with the named Rust paths in rs/moq-net/src/model/group.rs, rs/moq-net/src/model/track.rs, and rs/moq-net/src/lite/subscriber.rs, plus the JS paths in js/net/src/track.ts, js/net/src/internal.ts, js/net/src/broadcast.ts, and js/net/src/fill.ts. Read the regression test at js/net/src/fill.test.ts:635-639 and trace the corresponding Rust tests for each finding. Done when permanent skips settle largest(), retryable aborts leave it open, JS fetches preserve the refusal error, and OLD verdicts retain the narrower Max Age, with regression coverage for the affected paths.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found by the retroactive Codex review in https://github.com/moq-dev/moq/pull/10288 (Codex seats replayed on PRs that landed while Codex was at its usage limit, 2026-12-01T18:30Z onward), each verified against main at a62650a98f by an independent read-only pass.
Size: S. Rust and JS, no public API or wire change. Each fix gets a regression test, mirrored in Rust and JS where both have the path.
The same review's other skip/abort findings are already tracked: unpaid drop debt in https://github.com/moq-dev/moq/issues/10213, and JS skipped frames plus SKIP on a taken one-shot fetch in https://github.com/moq-dev/moq/issues/10277.
Findings and plan
- Skipping the largest group never settles
largest(). Rustgroup::Producer::skip(rs/moq-net/src/model/group.rs:2834-2840) andTrackState::skip_groupsnever callfinish_largest, soLargest.openstays true andpoll_largest(rs/moq-net/src/model/track.rs:5882-5895) waits forever while the producer is retained. JS#endLargestreturns early on#largestOpen(js/net/src/track.ts:3559-3569), solargest()hangs (track.ts:6530).
Fix: a permanent skip covering the largest group settles it (Rust clearsopenasfinish_largestdoes; JS setslargestFinished); a retryable abort keeps it open.
Caused by https://github.com/moq-dev/moq/pull/10112. - JS reports NotFound for a fetch refused with another error.
refusestores{ ...holeOf(error) }(js/net/src/track.ts:5158), andholeOfmaps Cancel todrop(js/net/src/internal.ts:388-397), sofetchGroupthrows NotFound (js/net/src/broadcast.ts:372-378). Rust returns the refusal's own error (rs/moq-net/src/model/track.rs:10124-10144), as JSrefuseGroups's doc promises (js/net/src/fill.ts:862-866).
Fix: keep the supplied error on the requesting fetch's refusal, normalizing only the range disposition, and restorejs/net/src/fill.test.ts:635-639's expectation.
Caused by https://github.com/moq-dev/moq/pull/10112. - A one-shot fill's OLD verdict loses its Max Age.
SubFillRunmaps OLD toreq.reject(Old)and dropsmax_age(rs/moq-net/src/lite/subscriber.rs:18009-18021), andInner::rejectrecords the prefix asHole::stale(max_age_bound())(rs/moq-net/src/model/track/fill.rs:1814-1830). When upstream's cache ceiling is narrower than this hop's bound, a reader between the two settles on a verdict upstream never made, which breaks the rule that a cache answers only what upstream would.
Fix: recordstale(min(bound, old.max_age)). This predates the split; found re-reviewing https://github.com/moq-dev/moq/pull/10138.
The fixing PR lists each originating PR under ## Caused by as - [moq-dev/moq#N](url) - what it got wrong (found by reviewer).
(Written by Claude Opus 5.5)
- Lenguaje dominante
- Rust
- Estrellas
- 1.6k
- Forks
- 251
- Merge medio
- 10 h 10 min
- PR fusionados (30 d)
- 832
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de moq-dev/moq
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Bump the quest flake input past kixel-ai/quest#1202 (Codex reviews use the config's gateway)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de moq-dev/moq
Issues similares
-
Mobile release verification reports missing build inputs with a custom Cargo target directoryAbiertobug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsotto/sotto-authenticator#139 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
registrystack/registry-stack#2924 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
foundry-rs/starknet-foundry#4733 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100