You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky under load: driver::tests::an_idle_lane_releases_its_surplus_workers_before_the_drive_ends #2240
On macOS at 74e2cd4 (main), cargo nextest run -p decdn-client fails this test on every full parallel run (3/3). It passes 8/8 when run alone (-E 'test(an_idle_lane_releases)').
panicked at crates/client/src/driver.rs:3230:9:
assertion `left == right` failed: two surplus workers stop while the slow lane still fills its gap
left: 0
right: 2
Likely cause
The assertion depends on timing: the surplus workers must release before the slow lane finishes its gap. Under CPU contention from the rest of the suite, the slow lane finishes first and no worker releases. The test was added in ece7897.
Suggested fix
Make the slow lane wait on an explicit signal (for example, a Notify released after the release count is observed) rather than on wall-clock timing, or run the test with paused tokio time.
Found while verifying #2238, which does not touch the driver.
Also hit in CI on #2238 (run 36619005172, test job): same assertion at driver.rs:3230, left: 0, right: 2. Main's CI passed on the same driver code at 74e2cd4, so it is intermittent in CI too.
Activity
yigitdot commentedon Sep 29, 2026
Also hit in CI on #2238 (run 36619005172,
testjob): same assertion atdriver.rs:3230,left: 0, right: 2. Main's CI passed on the same driver code at 74e2cd4, so it is intermittent in CI too.🤖 Generated with Claude Code
test(client): make the idle-lane surplus release test deterministic (#…