Repository navigation
fix(bench): fill benches close a time start unanswered instead of refusing it - #9310
Conversation
…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>
|
Warning Review limit reachedYou'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. View limit details
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. |
There was a problem hiding this comment.
✅ 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 thetrack_fillreader no longer fails withNotFound. Thelookupscount and theis_pending()assertion are unchanged.RangeFills::run: the refusal is removed.fillgoes out of scope atcontinue, which closes it unanswered. A short comment explains why.- Doc comments: both
rundocs now say "closes each unanswered" instead of "refuses each".
claude-sonnet-5-5 | 𝕏

Problem
Nightly
Rust bench targetspanics intrack_fill/1r/64(job):assertion failed: reader.poll_recv_group(&waiter).is_pending()atrs/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::floordocs: "A refusal fails the reader with its error until its ranges change"). The reader returnsErr(NotFound)instead of asking the run as a miss.track_fill/1r/1has 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::Lookupbefore #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_fillingmade the same refusal and gets the same change.Impact
None: bench only. No public API or wire change.
Alternatives
drop_groupson 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
Validation
cargo bench -p moq-net --features fuzz --bench track -- --test track_fillpanics 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 showedReady(Err(NotFound)), with 63 time starts and 1 fill answered.cargo bench -p moq-net --features fuzz --bench track -- --testpasses all 334 cases.track_fillrun 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 checkpasses.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 reviewafter 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-002a52dbfbc5Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a1ff4e-620c-7890-aea0-448cbb97470c, round 1Score: 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