Skip to content

fix(net): expect bounded EOF in range widening benchmark - #7840

Merged
kixelated merged 2 commits into
mainfrom
quest/m0/nightly/track-range-widening
Nov 4, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m0/nightly/track-range-widening

Conversation

@kixelated

@kixelated kixelated commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

track_range_widening/1r/64 panics on main because it expects a narrowed, already exhausted bounded read to stay pending. Bounded reads end once their requested groups have been delivered.

Approach

Assert Ready(Ok(None)) after narrowing back to the delivered 0..1 range. Preserve the widening and drain loop, its eight-group cached span, and the full reader/cache sweep. Complete and remove quest/m0/nightly/track-range-widening.md and its Nightly epic link.

Impact

  • Public API: none. Production EOF and range-update behavior are unchanged.
  • Wire: none.

Alternatives

The quest authorizes either asserting EOF or changing the narrow range to keep it unfinished. Choose EOF: this benchmark measures scanning the newly covered cached span, so keeping its existing ranges preserves the measured workload. This respects the same bounded EOF and reopening contract as moq-dev/moq#7837, whose production fix does not change this benchmark. No maintainer decision remains open.

Validation

  • Before the fix, on unchanged main d66c8928339d51eb4c76925ced1490b37a0ec9be: quest gate cargo test -p moq-net --bench track -- track_range_widening exits 101 at track_range_widening/1r/64, failing the pending assertion.
  • quest gate cargo test -p moq-net --all-targets: passes, 3,388 tests and 608 benchmark smoke cases, including all nine widening cases; 13 existing ignored tests.
  • quest gate cargo bench -p moq-net --bench track -- track_range_widening --sample-size 10 --warm-up-time 0.05 --measurement-time 0.1 --noplot: passes all nine cases. This is a completion check, with no performance claim.
  • quest gate just ci: passes, including all 3,388 selected Rust tests, lints, docs, and repository checks. Neither reported shared base failure occurred in this run.
  • quest check --base origin/main: 612 documents valid. git diff HEAD --check: passes.
  • Commands ran in the inherited Nix dev shell. The installed CLI rejects quest context as unknown; followed quest guide as directed by the task.

Review

GPT-6.1 Sol, xhigh effort, local self-review of head f5fad754b097154559f1821ceaadc82ae1243cf0: no findings. Checked the bounded exhaustion and range-update paths and confirmed the widening workload is unchanged. Independent review skipped under quest's trivial-change exemption: one assertion correction, one explanatory comment, and completed-quest removal. No reviewer sub-agent was started.

Follow-ups

None.

(Written by GPT-6.1 Sol)

kixelated and others added 2 commits November 4, 2026 01:17
Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
@kixelated kixelated changed the title The range-widening bench expects a narrowed read to end fix(net): expect bounded EOF in range widening benchmark Nov 4, 2026
@kixelated
kixelated marked this pull request as ready for review November 4, 2026 09:23
@coderabbitai

coderabbitai Bot commented Nov 4, 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 9 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: 65df3ded-ee85-4d3a-bd31-1c4034011eb0
Commits

Reviewing files that changed from the base of the PR and between d66c892 and f5fad75.

Files selected for processing: 3
  • quest/m0/nightly/README.md
  • quest/m0/nightly/track-range-widening.md
  • 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

@kixelated kixelated left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review by review (OpenAI)

Reviewed head f5fad75.

No actionable findings. The narrowed range has already been delivered, so the bounded read returns EOF; widening the subscription reopens it. The eight-group scan and reader/cache sweep remain intact.

Verification limits: GitHub-only static inspection of the benchmark, bounded-read behavior and quest, with an independent pass. I did not run the benchmark or test suite.

(Written by review (OpenAI))

@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.

Reviewed changes

  • Corrected the bounded-EOF assertion in bench_range_widening: the narrowed read after the widening drain now expects Poll::Ready(Ok(None)) instead of Poll::Pending, matching #7545's bounded-read contract. The same single poll is measured, so the widening/drain workload is unchanged.
  • Completed the nightly quest: removed quest/m0/nightly/track-range-widening.md and its bullet from quest/m0/nightly/README.md, with no remaining references anywhere in the tree.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 3c171db Nov 4, 2026
11 checks passed
@kixelated
kixelated deleted the quest/m0/nightly/track-range-widening branch November 4, 2026 15:29
kixelated added a commit that referenced this pull request Nov 4, 2026
- bench-test-mode: Nightly's "Rust bench targets" already runs moq-net's
  Criterion targets measured and failed on origin, session, memory and track
  (run 41656613559); #7729 and #7840 merged; origin and session need `fuzz`;
  where CI catches the next break is left to the maintainer, since a gate run
  reverses the Nightly epic's 2026-10-24 decision. The Nightly epic now names
  this quest as the owner of those panics.
- reload-close-drain: #7090 named the failing case.
- agent-disk-budget: note `quest worktree`, which docs/mbx.md points to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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