Skip to content

Commit 8616095

Browse files
committed
test: mark horribly slow tests with @nightly
1 parent ebaa6db commit 8616095

File tree

8 files changed

+17
-1
lines changed

8 files changed

+17
-1
lines changed

lucene/backward-codecs/src/test/org/apache/lucene/backward_index/TestAncientIndicesCompatibility.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ public class TestAncientIndicesCompatibility extends LuceneTestCase {
8686

8787
/**
8888
* This test checks that *only* IndexFormatTooOldExceptions are thrown when you open and operate
89-
* on too old indexes!
89+
* on too old indexes! TODO: this test is far too slow
9090
*/
91+
@Nightly
9192
public void testUnsupportedOldIndexes() throws Exception {
9293
for (String version : UNSUPPORTED_INDEXES) {
9394
if (VERBOSE) {

lucene/core/src/test/org/apache/lucene/search/TestIndexOrDocValuesQuery.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public void testUseIndexForSelectiveQueries() throws IOException {
104104
dir.close();
105105
}
106106

107+
// TODO: incredibly slow
108+
@Nightly
107109
public void testUseIndexForSelectiveMultiValueQueries() throws IOException {
108110
Directory dir = newDirectory();
109111
IndexWriter w =

lucene/core/src/test/org/apache/lucene/search/TestRescoreTopNQuery.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public void testInvalidN() {
7878
new TermQuery(new Term("test")), DoubleValuesSource.constant(0), 0));
7979
}
8080

81+
// TODO: incredibly slow
8182
@Test
83+
@Nightly
8284
public void testRescoreField() throws Exception {
8385
Map<Integer, float[]> vectors = new HashMap<>();
8486

lucene/core/src/test/org/apache/lucene/search/TestTermInSetQuery.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ public void testAllDocsInFieldTerm() throws IOException {
109109
dir.close();
110110
}
111111

112+
// TODO: incredibly slow
113+
@Nightly
112114
public void testDuel() throws IOException {
113115
final int iters = atLeast(2);
114116
final String field = "f";

lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,8 @@ public void testHnswGraphBuilderInvalid() throws IOException {
784784
IllegalArgumentException.class, () -> HnswGraphBuilder.create(scorerSupplier, 10, 0, 0));
785785
}
786786

787+
// TODO: incredibly slow
788+
@Nightly
787789
public void testRamUsageEstimate() throws IOException {
788790
int size = atLeast(2000);
789791
int dim = randomIntBetween(100, 1024);

lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestAddTaxonomy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ public void testAddToEmpty() throws Exception {
146146
}
147147

148148
// A more comprehensive and big random test.
149+
// TODO: TOO BIG
150+
@Nightly
149151
public void testBig() throws Exception {
150152
dotest(200, 10000);
151153
dotest(1000, 20000);

lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,10 @@ public void testMismatchedFields() throws Exception {
19641964
/**
19651965
* Test that the query is a viable approximation to exact search. This test is designed to uncover
19661966
* gross failures only, not to represent the true expected recall.
1967+
*
1968+
* <p>TODO: this test is incredibly slow
19671969
*/
1970+
@Nightly
19681971
public void testRecall() throws IOException {
19691972
VectorSimilarityFunction[] functions = {
19701973
VectorSimilarityFunction.EUCLIDEAN,

lucene/test-framework/src/java/org/apache/lucene/tests/index/BasePostingsFormatTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,8 @@ public void testMismatchedFields() throws Exception {
17681768
IOUtils.close(reader, w2, dir1, dir2);
17691769
}
17701770

1771+
// TODO: incredibly slow
1772+
@Nightly
17711773
public void testDocIDRunEnd() throws Exception {
17721774
Directory dir = newDirectory();
17731775
for (int iter = 0; iter < 100; ++iter) {

0 commit comments

Comments
 (0)