Skip to content

fix(bench): fill benches close a time start unanswered instead of refusing it - #9310

Merged
kixelated merged 1 commit into
mainfrom
fix/bench-track-fill-unanswered
Nov 23, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/bench-track-fill-unanswered

Conversation

@kixelated

@kixelated kixelated commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Nightly Rust bench targets panics in track_fill/1r/64 (job): assertion failed: reader.poll_recv_group(&waiter).is_pending() at rs/moq-net/benches/track.rs:2085. The paired base build (a759e4c) passed; main fails.

A run past the first starts at a time below the feed's start, so each reader asks a time-start fill first. The bench's handler refuses it, and since moq-dev/moq#9228 a refused time start fails the reader with that error (FillGroups::floor docs: "A refusal fails the reader with its error until its ranges change"). The reader returns Err(NotFound) instead of asking the run as a miss. track_fill/1r/1 has no time start, so only the larger cases failed.

Approach

The handler can't resolve times, so it closes each time-start fill unanswered, as it dropped the old Fill::Lookup before #9228. A fill closed unanswered says no group starts there, so the reader asks the run as a miss, which is what the bench measures. track_range_filling made the same refusal and gets the same change.

Impact

None: bench only. No public API or wire change.

Alternatives

drop_groups on the time-start fill also leaves the reader asking a miss, but it names the groups as lost, which is more than a handler that never resolved the time knows.

Caused by

  • moq-dev/moq#9228 - ported the benches' dropped lookups to refusals, which now fail the reader (found by check: Nightly Rust bench targets)

Validation

  • Reproduced: cargo bench -p moq-net --features fuzz --bench track -- --test track_fill panics at the same line on main. A bisect between the base and main lands on feat(net)!: a time start is a group fill #9228; a debug print showed Ready(Err(NotFound)), with 63 time starts and 1 fill answered.
  • With the fix, cargo bench -p moq-net --features fuzz --bench track -- --test passes all 334 cases.
  • A timed track_fill run holds its per-iteration asserts and matches the base build's cost from the nightly log (1r/1024: 9.96 ms here vs 10.17 ms there; 1r/64: 344 µs vs 518 µs on a different host).
  • just check passes.

Follow-ups

None.

Models

Size: XS
Implementer: Claude, 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: 2892b23

  • Base: origin/main at c63adc8

  • Risk: low, Only benchmark handling and comments change, so no consumer or deployed peer behavior can break, and a revert fully undoes any benchmark regression.

  • Classified: low by Codex, gpt-6.1-sol, low effort, session 01a1ff4e-51c9-7883-833b-002a52dbfbc5

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

  • Session: 01a1ff4e-620c-7890-aea0-448cbb97470c, round 1

  • Score: 9/10, The changes match the fill lifecycle and preserve benchmark assertions, based on source inspection without running tests.

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

  • Findings: none

…using it

A refused time start now fails the reader, so track_fill's readers ended
with NotFound instead of asking the run as a miss.

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

coderabbitai Bot commented Nov 21, 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 17 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: f7e4a370-572f-47ae-85c6-f131936dd950
Commits

Reviewing files that changed from the base of the PR and between c63adc8 and 2892b23.

Files selected for processing: 1

  • rs/moq-net/benches/track.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

@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. The bench handler can't resolve times, so it closes each time-start fill unanswered, which makes the reader ask the run as a miss. That is what the bench measures.

Reviewed changes: the single bench file rs/moq-net/benches/track.rs, read end to end.

  • Fills::run: the time-start fill is now dropped instead of refused, so the track_fill reader no longer fails with NotFound. The lookups count and the is_pending() assertion are unchanged.
  • RangeFills::run: the refusal is removed. fill goes out of scope at continue, which closes it unanswered. A short comment explains why.
  • Doc comments: both run docs now say "closes each unanswered" instead of "refuses each".

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

@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit ad37092 Nov 23, 2026
9 checks passed
@kixelated
kixelated deleted the fix/bench-track-fill-unanswered branch November 23, 2026 05:10
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