NVIDIA / NVIDIA/cuvs

[BUG] Flakey rust unittest `brute_force::tests::test_l2`

Open
#127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

The brute_force::tests::test_l2 unittest sometimes fails randomly with an error like

thread 'brute_force::tests::test_l2' panicked at cuvs/src/brute_force.rs:164:9:
assertion `left == right` failed
  left: 13
 right: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    brute_force::tests::test_l2

Re-running the tests usually resolves, but we should find out why this test isn't reliable and fix.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cuvs/src/brute_force.rs, especially brute_force::tests::test_l2 and the assertion at line 164. Run the test repeatedly to reproduce the intermittent failure, then inspect why its result can differ between runs. Done means the test passes reliably without reruns or intermittent assertion failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.