Skip to content

Commit c3ef12f

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

File tree

13 files changed

+45
-4
lines changed

13 files changed

+45
-4
lines changed

lucene/core/src/test/org/apache/lucene/codecs/hnsw/TestFlatVectorScorer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ public void testBulkScorerBytes() throws IOException {
211211
}
212212
}
213213

214+
// TODO: incredibly slow
215+
@Nightly
214216
public void testBulkScorerFloats() throws IOException {
215217
int dims = random().nextInt(1, 1024);
216218
int size = random().nextInt(2, 255);

lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"Direct"
4343
}) // at night this makes like 200k/300k docs and will make Direct's heart beat!
4444
public class TestBagOfPostings extends LuceneTestCase {
45+
// TODO: incredibly slow (sometimes, maybe simpletext)
46+
@Nightly
4547
public void test() throws Exception {
4648
List<String> postingsList = new ArrayList<>();
4749
int numTerms = atLeast(300);

lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ public void apply(String name) {
234234
}
235235
}
236236

237+
// TODO: incredibly slow
238+
@Nightly
237239
public void testRandomExceptions() throws Throwable {
238240
if (VERBOSE) {
239241
System.out.println("\nTEST: start testRandomExceptions");

lucene/core/src/test/org/apache/lucene/index/TestManyFields.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public void testDiverseDocs() throws IOException {
115115
}
116116

117117
// LUCENE-4398
118+
// TODO: incredibly slow
119+
@Nightly
118120
public void testRotatingFieldNames() throws Exception {
119121
Directory dir = newFSDirectory(createTempDir("TestIndexWriter.testChangingFields"));
120122
IndexWriterConfig iwc = new IndexWriterConfig(new MockAnalyzer(random()));

lucene/core/src/test/org/apache/lucene/index/TestTieredMergePolicy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,8 @@ public void testMergePurelyToReclaimDeletes() throws IOException {
913913
MergeTrigger.EXPLICIT, infos, new MockMergeContext(SegmentCommitInfo::getDelCount)));
914914
}
915915

916+
// TODO: incredibly slow
917+
@Nightly
916918
@Override
917919
public void testSimulateAppendOnly() throws IOException {
918920
TieredMergePolicy mergePolicy = mergePolicy();

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,12 +822,22 @@ public void testRandomWithZeroScores() throws IOException {
822822
dir.close();
823823
}
824824

825-
/** Test the case when some clauses produce infinite max scores. */
825+
/**
826+
* Test the case when some clauses produce infinite max scores.
827+
*
828+
* <p>TODO: incredibly slow
829+
*/
830+
@Nightly
826831
public void testRandomWithInfiniteMaxScore() throws IOException {
827832
doTestRandomSpecialMaxScore(Float.POSITIVE_INFINITY);
828833
}
829834

830-
/** Test the case when some clauses produce finite max scores, but their sum overflows. */
835+
/**
836+
* Test the case when some clauses produce finite max scores, but their sum overflows.
837+
*
838+
* <p>TODO: incredibly slow
839+
*/
840+
@Nightly
831841
public void testRandomWithMaxScoreOverflow() throws IOException {
832842
doTestRandomSpecialMaxScore(Float.MAX_VALUE);
833843
}

lucene/core/src/test/org/apache/lucene/util/TestPriorityQueue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ public void testAddAllDoesNotFitIntoQueue() {
208208
() -> pq.addAll(list));
209209
}
210210

211+
// TODO: incredibly slow
212+
@Nightly
211213
public void testRemovalsAndInsertions() {
212214
Random random = random();
213215
int numDocsInPQ = TestUtil.nextInt(random, 1, 100);

lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,6 +1660,8 @@ public void testToChildInitialAdvanceParentButNoKids() throws Exception {
16601660
dir.close();
16611661
}
16621662

1663+
// TODO: incredibly slow
1664+
@Nightly
16631665
public void testMultiChildQueriesOfDiffParentLevels() throws Exception {
16641666

16651667
final Directory dir = newDirectory();

lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinBulkScorer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ private static void assertEqualsToOneOf(List<?> expectedList, Object actual) {
315315
}
316316
}
317317

318+
// TODO: incredibly slow
319+
@Nightly
318320
public void testScoreRandomIndices() throws IOException {
319321
for (int i = 0; i < 200 * RANDOM_MULTIPLIER; i++) {
320322
try (Directory dir = newDirectory()) {

lucene/misc/src/test/org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public void setUp() throws Exception {
5757
reorderer.setMinPartitionSize(2);
5858
}
5959

60+
// TODO: incredibly slow
61+
@Nightly
6062
public void testReorderOnMerge() throws IOException {
6163
Directory dir1 = newDirectory();
6264
Directory dir2 = newDirectory();
@@ -141,6 +143,8 @@ public void testReorderOnMerge() throws IOException {
141143
IOUtils.close(reader1, reader2, w1, w2, dir1, dir2);
142144
}
143145

146+
// TODO: incredibly slow
147+
@Nightly
144148
public void testReorderOnAddIndexes() throws IOException {
145149
Directory dir1 = newDirectory();
146150
IndexWriter w1 =

0 commit comments

Comments
 (0)