Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1721

Use test profiles to regain parallelism

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      For RUST-1674, we switched to using cargo-nextest as the test runner; this had the unfortunate side effect of making all tests run in sequence. We should be able to use per-test overrides to regain parallelism by default. As a first sketch:

      • Update nextest.toml to set test-threads to "num-cpus"
      • Add an override section that matches on test names starting with exclusive_ that sets threads-required to "num-cpus"
      • Update all current tests using LOCK.run_exclusively to instead have the exclusive_ name prefix.

      This does introduce magic name-dependent behavior; there may be a better way.

            Assignee:
            Unassigned Unassigned
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: