Skip to content

ci(nightly): route benchmarks get their own job, so route-sweep fits its hour - #9751

Merged
kixelated merged 3 commits into
mainfrom
quest/m0/nightly/route-sweep-split
Nov 27, 2026
Merged

kixelated merged 3 commits into
mainfrom
quest/m0/nightly/route-sweep-split

Conversation

@kixelated

@kixelated kixelated commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/nightly/route-sweep-split.md.

Nightly's Tests (test route-sweep) has been cancelled at its 60-minute job timeout every night since its benchmark steps came back: after about 25 minutes of builds, bakeoff::benchmark_bakeoff_growth takes 15 to 25 minutes, and warmth::benchmark_warmth_growth was still running when the job was cancelled (45667362304, 45867457463). The node layer benchmarks never ran.

Summary

  • test route-sweep keeps the sweeps: the mesh sweep, then the bake-off prototype's and the multicast router's ignored sweeps and searches, now one nextest run instead of two.
  • New test route-bench (test/route-bench.sh) runs every route benchmark_ test (bake-off, multicast router, warmth, node layer) in one nextest run, so the three long growth sweeps run side by side on the runner's cores instead of one after another. Same release build with debug assertions and overflow checks as before.
  • route-bench passes --success-output immediate, so a green Nightly log now holds the tables these benchmarks exist to print; before, nextest swallowed them on success.
  • test route-bench is a new entry in Nightly's tests matrix. The matrix comments drop the stale handoff sweep line (deleted in moq-dev/moq#9200) and move the bandwidth probe line back under rs quic-sim, where it belongs.
  • The tests job's Test step gets the 55-minute step timeout the nightly job already has, so a recipe that overruns fails the job (where Nightly's failure triage looks) instead of getting cancelled.
  • MOQ_BAKEOFF_RELAYS is no longer set: the bake-off failure table now covers 32 relays too (about 20 s more, on a spare core, since the arms that hunt skip big meshes), and the node layer already ran at both sizes.
  • The moved tests' #[ignore] reasons point at test/route-bench.sh.
  • Deletes the quest.

Public API: none. Wire: none.

Decisions

  • Took one route-bench matrix entry, not one per benchmark family. Each entry would rebuild moq-net's release lib tests (about 8 minutes), and warmth's growth alone sets the floor either way, so a split adds builds without shortening the longest job.
  • Moved the two multicast router benchmark_ tests (about 10 to 20 s each) to route-bench too, so route-sweep holds only sweeps and every route table prints in one place.
  • Deleted the quest now instead of keeping it open for the scheduled-run measurement. That measurement only exists after merge, and confirming a scheduled run passes is already the Nightly epic's own work. With the new step timeout, an overrun now shows up as a failed job in that triage, which plans a child to split again (the quest ruled out raising the timeout).

Validation

Local runs of both recipes (Ryzen 9950X, nextest held to 4 threads like the runner), first on an idle host, then on the final head under load from other jobs:

Recipe Build Tests
just test route-sweep 8m52s + 4m50s 35 to 37 s mesh sweep, 24 to 28 s sweeps
just test route-bench shared with route-sweep 939 to 1108 s: warmth growth 902 to 1024 s, bake-off growth 713 to 805 s, node layer growth 392 to 417 s, bake-off failures at 12 and 32 relays 37 to 84 s, the rest under 45 s

The final head's route-bench log printed every table (7171 lines).

CI estimate from the last three nights' logs: the bake-off growth took 899 to 1135 s on the runner against 713 s here (1.3 to 1.6 times; the quest saw up to 1535 s, 2.2 times).

  • route-sweep: about 26 minutes (16 to 19 min integration build, 80 to 92 s mesh sweep, 7.5 min lib build, under a minute of sweeps).
  • route-bench: about 20 to 32 minutes for warmth's growth plus an 8 to 17 minute lib build, so 30 to 50 minutes. Under the hour, with the least margin on a night as slow as the 1535 s one.

just check passed on both heads.

Caused by

No single PR: the benchmark steps accumulated in route-sweep across moq-dev/moq#8880, moq-dev/moq#8986, and moq-dev/moq#9149 while an empty filter failed the job early; moq-dev/moq#9200 fixed the filter and exposed the total.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown (arm A)

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: a5c3168

  • Base: origin/main at 406c107

  • Risk: high, it changes .github/workflows/nightly.yml, which is always high: workflows run with the repository's secrets

  • Classified: high by the always-high paths

  • Risk file: bb7b1c0de60b

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

  • Session: 01a21c7f-e13a-7ac1-a7b9-3a721a201742, round 2

  • Score: 10/10, Successful runs now print the benchmark tables, and the revised filters preserve both the sweep and benchmark coverage.

  • Rounds: 2; first round 1 (high 1); findings 1 (high 1): fixed 1, refuted 0, open 0

  • Findings: none

  • Notes, the author's to take or leave:

    • .github/workflows/nightly.yml:506: Clarify when the Test step timeout takes effect
  • The last round's findings, at eda3f66:

    • Fixed: high, test/route-bench.sh:12: Show successful route benchmark tables in Nightly; `test/route-bench.sh:14` passes `--success-output immediate`, so nextest prints each successful benchmark's table as it finishes.
  • Reviewer: Claude Code, claude-opus-5-5, medium effort, second

  • Session: 992c8c93-9a0f-419b-b1ac-f6802ac3ce2d, round 2

  • Score: 9/10, Both earlier findings are settled: the 32-relay bake-off rows are cheap because the hunting arms are skipped, and the comment and step timeout now match measured runs while the Nightly epic tracks the overrun risk. The new route-sweep/route-bench filters split the ignored tests cleanly.

  • Rounds: 2; first round 2 (medium 2); findings 2 (medium 2): fixed 1, refuted 1, open 0

  • Findings: none

  • The last round's findings, at eda3f66:

    • Refuted: medium, test/route-bench.sh:12: Bake-off failures table now also runs at 32 relays; rs/moq-net/src/route/tests/bakeoff.rs:877-878 skips the hunting arms on meshes over 16 relays, and the author measured the 32-relay rows at 17.6 s (84 s for the whole test under load) on a spare nextest thread, so they don't lengthen route-bench's wall time.
    • Fixed: medium, .github/workflows/nightly.yml:451: Unmeasured runtime claim, and the tracking quest is deleted; The nightly.yml comment now gives the measured 15 to 25 minutes (899 to 1535 s across cited runs). The Test step has `timeout-minutes: 55` (.github/workflows/nightly.yml:509), so an overrun fails the job instead of being cancelled, and quest/m0/nightly/README.md:25 still tracks confirming that a scheduled run on main passes.

kixelated and others added 2 commits November 27, 2026 00:56
…-bench

Nightly's route-sweep job hit its 60-minute timeout every night since the
benchmark steps came back: the bake-off growth alone takes 15 to 25 minutes
and warmth's growth never finished. The sweeps stay in test route-sweep; the
bake-off, warmth, and node-layer benchmarks move to test route-bench, its own
Nightly matrix entry, in one nextest run so the three growth sweeps share the
cores instead of queueing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Nightly's route sweep and route benchmarks fit their job timeouts ci(nightly): route benchmarks get their own job, so route-sweep fits its hour Nov 27, 2026
…marks, and the Test step fails before the job times out

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

coderabbitai Bot commented Nov 27, 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 13 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: e04ad586-a586-4447-9891-ee2fa11f6d65
Commits

Reviewing files that changed from the base of the PR and between 83e10f0 and a5c3168.

Files selected for processing: 10

  • .github/workflows/nightly.yml
  • quest/m0/nightly/route-sweep-split.md
  • rs/moq-net/src/route/tests/bakeoff.rs
  • rs/moq-net/src/route/tests/multicast.rs
  • rs/moq-net/src/route/tests/multicast_cost.rs
  • rs/moq-net/src/route/tests/node_layer.rs
  • rs/moq-net/src/route/tests/warmth.rs
  • test/justfile
  • test/route-bench.sh
  • test/route-sweep.sh
  • 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 added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit f0e27e9 Nov 27, 2026
6 checks passed
@kixelated
kixelated deleted the quest/m0/nightly/route-sweep-split branch November 27, 2026 12:36
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