Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flaky pylibraft distance test #1579

Open
cjnolet opened this issue Jun 6, 2023 · 0 comments
Open

[BUG] Flaky pylibraft distance test #1579

cjnolet opened this issue Jun 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@cjnolet
Copy link
Member

cjnolet commented Jun 6, 2023

We've seen a flaky distance test fail several times now in pylibraft. It only seems to fail in one of the configurations and it seems to pass if re-run enough times (though I've seen it fail twice in a row recently).

Here's an example of the failing test configuration (it always seems to tbe for the cosine distance):

=========================== short test summary info ============================
FAILED test/test_distance.py::test_distance[float64-F-False-cosine-40-100] - assert False
 +  where False = <function allclose at 0xfffee4bec160>(array([[0.        , 0.28490248, 0.20478542, ..., 0.31273605, 0.19879491,\n        0.19658006],\n       [0.28490248, 0.  ...  ,\n        0.17852762],\n       [0.19658006, 0.17743437, 0.16078043, ..., 0.30887233, 0.17852762,\n        0.        ]]), array([[0.        , 0.28490248, 0.20478542, ..., 0.31273605, 0.19879491,\n        0.19658006],\n       [0.28490248, 0.  ...  ,\n        0.17852762],\n       [0.81601286, 0.8116284 , 0.80781457, ..., 0.30887233, 0.17852762,\n        0.        ]]), rtol=0.0001)
 +    where <function allclose at 0xfffee4bec160> = np.allclose
============ 1 failed, 1091 passed, 24 skipped, 4 xfailed in 42.90s ============

This is taken from this CI log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

1 participant