Skip to content

Apache Lucene open-source search software

test: mark horribly slow tests with @Nightly

Robert Muir86160952d9f2
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java
index cf7df98345d..246e6fe01b2 100644
--- a/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java
+++ b/lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java
@@ -86,8 +86,9 @@ public class TestAncientIndicesCompatibility extends LuceneTestCase {
/**
* This test checks that *only* IndexFormatTooOldExceptions are thrown when you open and operate
- * on too old indexes!
+ * on too old indexes! TODO: this test is far too slow
*/
+ @Nightly
public void testUnsupportedOldIndexes() throws Exception {
for (String version : UNSUPPORTED_INDEXES) {
if (VERBOSE) {
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
index 8b609dff96a..dc62b192ac3 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java
@@ -104,6 +104,8 @@ public class TestIndexOrDocValuesQuery extends LuceneTestCase {
dir.close();
}
+ // TODO: incredibly slow
+ @Nightly
public void testUseIndexForSelectiveMultiValueQueries() throws IOException {
Directory dir = newDirectory();
IndexWriter w =
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestRescoreTopNQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestRescoreTopNQuery.java
index 0e4db8679e7..3fb32bdb2d7 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestRescoreTopNQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestRescoreTopNQuery.java
@@ -78,7 +78,9 @@ public class TestRescoreTopNQuery extends LuceneTestCase {
new TermQuery(new Term("test")), DoubleValuesSource.constant(0), 0));
}
+ // TODO: incredibly slow
@Test
+ @Nightly
public void testRescoreField() throws Exception {
Map<Integer, float[]> vectors = new HashMap<>();
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestTermInSetQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestTermInSetQuery.java
index b6503021617..9ea2d4672bd 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestTermInSetQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestTermInSetQuery.java
@@ -109,6 +109,8 @@ public class TestTermInSetQuery extends LuceneTestCase {
dir.close();
}
+ // TODO: incredibly slow
+ @Nightly
public void testDuel() throws IOException {
final int iters = atLeast(2);
final String field = "f";
diff --git a/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java b/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
index fb0f507b789..8e7a8ab8578 100644
--- a/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
+++ b/lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java
@@ -784,6 +784,8 @@ abstract class HnswGraphTestCase<T> extends LuceneTestCase {
IllegalArgumentException.class, () -> HnswGraphBuilder.create(scorerSupplier, 10, 0, 0));
}
+ // TODO: incredibly slow
+ @Nightly
public void testRamUsageEstimate() throws IOException {
int size = atLeast(2000);
int dim = randomIntBetween(100, 1024);
diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java
index e0420f16e14..99418a24698 100644
--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java
+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java
@@ -146,6 +146,8 @@ public class TestAddTaxonomy extends FacetTestCase {
}
// A more comprehensive and big random test.
+ // TODO: TOO BIG
+ @Nightly
public void testBig() throws Exception {
dotest(200, 10000);
dotest(1000, 20000);
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
index 37116ea82da..a997b45d022 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java
@@ -1964,7 +1964,10 @@ public abstract class BaseKnnVectorsFormatTestCase extends BaseIndexFileFormatTe
/**
* Test that the query is a viable approximation to exact search. This test is designed to uncover
* gross failures only, not to represent the true expected recall.
+ *
+ * <p>TODO: this test is incredibly slow
*/
+ @Nightly
public void testRecall() throws IOException {
VectorSimilarityFunction[] functions = {
VectorSimilarityFunction.EUCLIDEAN,
diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
index dd737c4930e..4f2c6631bcb 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java
@@ -1768,6 +1768,8 @@ public abstract class BasePostingsFormatTestCase extends BaseIndexFileFormatTest
IOUtils.close(reader, w2, dir1, dir2);
}
+ // TODO: incredibly slow
+ @Nightly
public void testDocIDRunEnd() throws Exception {
Directory dir = newDirectory();
for (int iter = 0; iter < 100; ++iter) {