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

Mark the rust brute force unittest as flaky #226

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rust/cuvs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ ndarray = "0.15"

[dev-dependencies]
ndarray-rand = "0.14"
mark-flaky-tests = "1"
3 changes: 2 additions & 1 deletion rust/cuvs/src/brute_force.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ mod tests {
use ndarray::s;
use ndarray_rand::rand_distr::Uniform;
use ndarray_rand::RandomExt;
use mark_flaky_tests::flaky;

fn test_bfknn(metric: DistanceType) {
let res = Resources::new().unwrap();
Expand Down Expand Up @@ -174,7 +175,7 @@ mod tests {
}
*/

#[test]
#[flaky]
fn test_l2() {
test_bfknn(DistanceType::L2Expanded);
}
Expand Down
3 changes: 0 additions & 3 deletions rust/cuvs/src/distance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/


use std::io::{stderr, Write};

use crate::distance_type::DistanceType;
use crate::dlpack::ManagedTensor;
use crate::error::{check_cuvs, Result};
Expand Down Expand Up @@ -55,7 +53,6 @@ pub fn pairwise_distance(
#[cfg(test)]
mod tests {
use super::*;
use ndarray::s;
use ndarray_rand::rand_distr::Uniform;
use ndarray_rand::RandomExt;

Expand Down
Loading