Skip to content

Flaky under load: driver::tests::an_idle_lane_releases_its_surplus_workers_before_the_drive_ends #2240

Closed

Description

@yigitdot

Observed

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.

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    rust
    on Sep 29, 2026
  2. yigitdot commented on Sep 29, 2026

    @yigitdot
    ContributorAuthor

    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.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugrust

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions