Skip to content

fix(bench): the empty-run bench reads from the oldest group again - #9547

Closed
kixelated wants to merge 1 commit into
mainfrom
fix/moq-net-bench-panics
Closed

kixelated wants to merge 1 commit into
mainfrom
fix/moq-net-bench-panics

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Problem

Nightly run 45242597151 (Nightly (Rust bench targets)) reported three moq-net bench panics. Only one comes from the head build:

  • track.rs:1790, track_empty_run/stale/*: left: 2, right: 66. Reproduces on current main (cc50db3).
  • origin.rs:630 (expected a restart) and track.rs:2085 (track_fill) came from the paired base build, 628ff81, the previous nightly's commit. The log prints Paired comparison unavailable for moq-net/{origin,track}: base run failed right after each one. Both pass on head and on current main, and they stop once the base moves to a newer nightly. Nothing to fix.

Approach

moq-dev/moq#9409 turned EmptyRun's subscription-wide Delay::max(HOUR), which read from the oldest group, into Start::Live { min: HOUR, max: HOUR }. That is a live join placed an hour behind the 4h live edge, so the stale case starts at the 2h group and hands out 2 groups instead of walking the run. The fixture now uses min: None, which Start::within documents as the exact equivalent of the pre-lite-07 max age. The library behaves as documented. The fixture was stale.

Caused by

  • moq-dev/moq#9409 - it changed the fixture's max delay into a live join with a one-hour lag instead of a join with no lag limit (found by check: Nightly)

Impact

None. This is a bench-only change. Public API: none. Wire: none.

Validation

  • Old fixture: cargo bench -p moq-net --features fuzz --bench track -- --test track_empty_run/stale/1/64 passes at b29b90be29^ and panics 2 != 66 on main.
  • With this fix, all 27 track_empty_run cells (stale/fresh/retired × 1/8/64 readers × 64/512/4096) pass in test mode.
  • cargo bench -p moq-net --features fuzz --bench origin -- --test passes on main, and so does track_fill.
  • just ci passes locally.

Alternatives

Keeping min: HOUR and changing handed to 2 would drop the walk over the empty run, which is what the bench exists to measure.

Follow-ups

None.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort

🤖 Generated with Claude Code

…#9409

#9409 translated this fixture's subscription-wide max delay into a live join
an hour behind the live edge, so the stale case joined at the 2h group and
handed out 2 groups instead of walking the run. A join with no lag limit is
the faithful translation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated
kixelated marked this pull request as draft November 24, 2026 17:24
@pullfrog

pullfrog Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

No configured credential can serve this run. Your Claude subscription has hit its usage limit, which resets at 2026-11-25 06:00 UTC. Re-trigger after it resets, or add an API key for this provider, which Pullfrog falls back to automatically.

The providers' responses
CLAUDE_CODE_OAUTH_TOKEN: 429: This request would exceed your account's rate limit. Please try again later.

Pick another model →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using claude-sonnet-5-5

@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

EmptyRun::new now sets the live subscription range minimum age to None. The maximum age remains the mode-specific budget: one hour for Stale and Fresh, and zero for Retired.

Merge Risk: Minimal · up to 4f509

This restores the stale benchmark case to walking the empty run. It touches only benchmark code, so production behavior is unaffected and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its target: the empty-run bench reading from the oldest group again. The raw summary says the fixture's min is now None instead of HOUR, which restores the walk from the ol…
Description check Passed The description explains the nightly panic, the root cause in PR #9409, the change to min: None, and the validation steps. It matches the one-line bench fixture change in track.rs, so it is related to…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix and its target: the empty-run bench reading from the oldest group again. The raw summary says the fixture's min is now None instead of HOUR, which restores the walk from the oldest group. The title is specific and matches the main change. It omits the min/max detail, which is acceptable.

Full details: Description check

Explanation

The description explains the nightly panic, the root cause in PR #9409, the change to min: None, and the validation steps. It matches the one-line bench fixture change in track.rs, so it is related to the changeset.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

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: 8c5b15d6-3229-4b5a-b2d3-547ca575aa19
Commits

Reviewing files that changed from the base of the PR and between 3136f81 and 4f5095c.

Files selected for processing: 1

  • rs/moq-net/benches/track.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@kixelated

Copy link
Copy Markdown
Collaborator Author

Superseded by moq-dev/moq#9635, which carries this PR's min: None fixture fix unchanged and also covers the track_fill and track_range_filling fixtures. Maintainer decision (/quest-run, 2026-11-25): close this once #9635 merges.

(Written by Opus 5.5 with high)

@moq-bot moq-bot Bot closed this in #9635 Nov 26, 2026
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