Skip to content

Commit 1aa9ed3

Browse files
committed
test: mark horribly slow tests with @nightly
1 parent 6c66a9d commit 1aa9ed3

File tree

10 files changed

+27
-1
lines changed

10 files changed

+27
-1
lines changed

lucene/core/src/test/org/apache/lucene/geo/TestTessellator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@
2828
/** Test case for the Polygon {@link Tessellator} class */
2929
public class TestTessellator extends LuceneTestCase {
3030

31-
/** test line intersection */
31+
/**
32+
* test line intersection
33+
*
34+
* <p>Flaky at rev 6c66a9d0ea9b4cde99accc832d6d998512c1f928 NOTE: reproduce with: gradlew test
35+
* --tests TestTessellator.testLinesIntersect -Dtests.seed=C1CBF6465727D90C -Dtests.locale=en-NA
36+
* -Dtests.timezone=America/Argentina/Cordoba -Dtests.asserts=true -Dtests.file.encoding=UTF-8
37+
*/
38+
@AwaitsFix(bugUrl = "please open a PR if you want to fix this")
3239
public void testLinesIntersect() {
3340
Rectangle rect = nextBoxNotCrossingDateline();
3441
// simple case; test intersecting diagonals

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ public void testExitableFilterTermsIndexReader() throws Exception {
174174
/**
175175
* Tests time out check sampling of TermsEnum iterations
176176
*
177+
* <p>TODO: incredibly slow
178+
*
177179
* @throws Exception on error
178180
*/
181+
@Nightly
179182
public void testExitableTermsEnumSampleTimeoutCheck() throws Exception {
180183
try (Directory directory = newDirectory()) {
181184
try (IndexWriter writer =

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ public void testCommitOnCloseForceMerge() throws IOException {
345345
// LUCENE-2095: make sure with multiple threads commit
346346
// doesn't return until all changes are in fact in the
347347
// index
348+
// TODO: incredibly slow (can we just use 2 threads?)
349+
@Nightly
348350
public void testCommitThreadSafety() throws Throwable {
349351
final int NUM_THREADS = 5;
350352
final int maxIterations = 10;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ public void initIndex(Directory dir) throws Throwable {
231231
writer.close();
232232
}
233233

234+
// TODO: incredibly slow
235+
@Nightly
234236
public void testTransactions() throws Throwable {
235237
// we cant use non-ramdir on windows, because this test needs to double-write.
236238
MockDirectoryWrapper dir1 = new MockDirectoryWrapper(random(), new ByteBuffersDirectory());

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ private KnnVectorsFormat getKnnFormat(int bits) {
8282
null);
8383
}
8484

85+
// TODO: incredibly slow
86+
@Nightly
8587
@Test
8688
public void testFullPrecisionVectorSimilarityDVS() throws Exception {
8789
List<float[]> vectors = new ArrayList<>();

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
@@ -626,6 +626,8 @@ private Sort getRandomSort(String prefix, int numFields) {
626626
return new Sort(sortFields.toArray(new SortField[sortFields.size()]));
627627
}
628628

629+
// TODO: incredibly slow
630+
@Nightly
629631
public void testRandom() throws Exception {
630632
// We build two indices at once: one normalized (which
631633
// ToParentBlockJoinQuery/Collector,

lucene/sandbox/src/test/org/apache/lucene/sandbox/search/TestCoveringQuery.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public void testRandom() throws IOException {
168168
dir.close();
169169
}
170170

171+
// TODO: incredibly slow
172+
@Nightly
171173
public void testRandomWand() throws IOException {
172174
Directory dir = newDirectory();
173175
IndexWriter w = new IndexWriter(dir, newIndexWriterConfig());

lucene/spatial3d/src/test/org/apache/lucene/spatial3d/TestGeo3DPoint.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,8 @@ public void testRandomTiny() throws Exception {
597597
doTestRandom(10);
598598
}
599599

600+
// TODO: incredibly slow
601+
@Nightly
600602
public void testRandomMedium() throws Exception {
601603
doTestRandom(1000);
602604
}

lucene/suggest/src/test/org/apache/lucene/search/suggest/fst/TestFSTCompletion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ public void testLookupsDuringReBuild() throws Exception {
265265
tempDir.close();
266266
}
267267

268+
// TODO: incredibly slow
269+
@Nightly
268270
public void testRandom() throws Exception {
269271
List<Input> freqs = new ArrayList<>();
270272
Random rnd = random();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,6 +3124,8 @@ public void run() {
31243124
}
31253125

31263126
// LUCENE-5218
3127+
// TODO: incredibly slow
3128+
@Nightly
31273129
public void testEmptyBinaryValueOnPageSizes() throws Exception {
31283130
// Test larger and larger power-of-two sized values,
31293131
// followed by empty string value:

0 commit comments

Comments
 (0)