From 34d42c98c3356d5c8fab142a136669b260ebfa77 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Wed, 25 Nov 2026 04:42:44 -0800 Subject: [PATCH 1/2] chore(quest): claim quest/m1/quic-sim-bulk-slow.md Quest-Claim: 0a85224464c10d2e From 88f6eac6a423df20d3cf2dca486973e387c5d55a Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Wed, 25 Nov 2026 06:53:00 -0800 Subject: [PATCH 2/2] test(relay): the concurrent-groups sim test pauses four groups, not twelve Each group's bulk transfer costs the same CPU to simulate (~2 s of unoptimized QUIC per group on a loaded host), so the test took 20-60 s against nextest's 30 s SLOW mark. Four groups still pause more than the two a full stream window per pause allows (that mutation evicts a stream), and 100 stay in the nightly many_ test. 6.7-7.1 s now, with the same 66 ms of simulated time. Co-Authored-By: Claude Sonnet 5.5 --- quest/m1/quic-sim-bulk-slow.md | 20 -------------------- rs/moq-relay/tests/integration/quic_sim.rs | 7 ++++--- 2 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 quest/m1/quic-sim-bulk-slow.md diff --git a/quest/m1/quic-sim-bulk-slow.md b/quest/m1/quic-sim-bulk-slow.md deleted file mode 100644 index 0084ccefa5b..00000000000 --- a/quest/m1/quic-sim-bulk-slow.md +++ /dev/null @@ -1,20 +0,0 @@ -# [S] Make the relay's concurrent-groups sim test fast - -## Goal - -`quic_sim::concurrent_groups_carry_bulk_transfers_losslessly` -(`rs/moq-relay/tests/integration/quic_sim.rs`) finishes well inside nextest's -SLOW mark, so `just check` never times it out. - -## Plan - -On a loaded host it takes 40 to 60 s on `main` (5589d3c295: 41, 45, 45, 51, -and 59 s), against nextest's 60 s limit, and timed out once in a full -`just check` on -[moq-dev/moq#9518](https://github.com/moq-dev/moq/pull/9518), whose branch -runs it in the same 39 to 52 s. The test runs on the simulated clock, so the -time is CPU spent simulating, not waiting. Profile one run (`perf record` on -the nextest binary) to see what dominates, such as per-packet work in the -simulated network or the transfer size, then shrink what the test does -without losing what it checks: concurrent groups carried losslessly under -the sim's congestion. Do not raise the timeout: a SLOW test is a bug to fix. diff --git a/rs/moq-relay/tests/integration/quic_sim.rs b/rs/moq-relay/tests/integration/quic_sim.rs index 91be8c5dc13..1c6a81a8277 100644 --- a/rs/moq-relay/tests/integration/quic_sim.rs +++ b/rs/moq-relay/tests/integration/quic_sim.rs @@ -315,9 +315,10 @@ fn many_groups_carry_bulk_transfers_losslessly() { } /// How many bulk transfers share one connection in -/// [`concurrent_groups_carry_bulk_transfers_losslessly`]: well past the two that pause when -/// each paused stream holds its whole stream window. -const SESSIONS: usize = 12; +/// [`concurrent_groups_carry_bulk_transfers_losslessly`]: past the two that pause when each +/// paused stream holds its whole stream window, which evicts one. Each costs the same CPU to +/// simulate, so more is left to [`MANY`]. +const SESSIONS: usize = 4; /// How many share one in [`many_groups_carry_bulk_transfers_losslessly`]. Past a couple of /// hundred, the frames in flight at once each hold credit until they seal, and that fills