Skip to content

Commit 7a663d6

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

File tree

10 files changed

+22
-3
lines changed

10 files changed

+22
-3
lines changed

lucene/core/src/test/org/apache/lucene/codecs/lucene103/blocktree/TestTrie.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public void testRandomTerms() throws Exception {
5050
testTrieLookup(supplier, 12);
5151
}
5252

53+
// TODO: incredibly slow
54+
@Nightly
5355
public void testVeryLongTerms() throws Exception {
5456
Supplier<byte[]> supplier =
5557
() -> {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
public class TestIndexManyDocuments extends LuceneTestCase {
3030

31+
// TODO: incredibly slow
32+
@Nightly
3133
public void test() throws Exception {
3234
Directory dir = newFSDirectory(createTempDir());
3335
IndexWriterConfig iwc = new IndexWriterConfig();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ public void runStressTest(Directory directory, MergeScheduler mergeScheduler) th
156156
// System.out.println("Searcher 2: " + searcherThread2.count + " searchers created");
157157
}
158158

159-
/* */
159+
/* TODO: incredibly slow */
160+
@Nightly
160161
public void testStressIndexAndSearching() throws Exception {
161162
final Directory directory;
162163
if (TEST_NIGHTLY) {

lucene/core/src/test/org/apache/lucene/util/automaton/TestStringsToAutomaton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void testBasicBinary() throws Exception {
5757
}
5858

5959
public void testRandomMinimized() throws Exception {
60-
int iters = RandomizedTest.isNightly() ? 20 : 5;
60+
int iters = RandomizedTest.isNightly() ? 20 : 1;
6161
for (int i = 0; i < iters; i++) {
6262
boolean buildBinary = random().nextBoolean();
6363
int size = random().nextInt(2, 50);

lucene/facet/src/test/org/apache/lucene/facet/sortedset/TestSortedSetDocValuesFacets.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,6 +1434,8 @@ public void testRandom() throws Exception {
14341434
}
14351435
}
14361436

1437+
// TODO: incredibly slow
1438+
@Nightly
14371439
public void testRandomHierarchicalFlatMix() throws Exception {
14381440
int fullIterations = LuceneTestCase.TEST_NIGHTLY ? 20 : 3;
14391441
for (int fullIter = 0; fullIter < fullIterations; fullIter++) {

lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestSearcherTaxonomyManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public void run() {
131131
}
132132
}
133133

134+
// TODO: incredibly slow (maybe due to sleeping?)
135+
@Nightly
134136
@SuppressForbidden(reason = "Thread sleep")
135137
public void testNRT() throws Exception {
136138
Directory dir = newDirectory();

lucene/queries/src/test/org/apache/lucene/queries/payloads/TestPayloadScoreQuery.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ public void testNestedNearQuery() throws Exception {
210210
}
211211
}
212212

213+
// TODO: incredibly slow
214+
@Nightly
213215
@Test
214216
public void testSpanContainingQuery() throws Exception {
215217

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,11 @@ private void addRandomDocs(RandomIndexWriter w) throws IOException {
780780
w.forceMerge(1);
781781
}
782782

783-
/** The hit doc count of the rewritten query should be the same as origin query's */
783+
/**
784+
* The hit doc count of the rewritten query should be the same as origin query's TODO: incredibly
785+
* slow
786+
*/
787+
@Nightly
784788
public void testRandomRewrite() throws IOException {
785789
Directory dir = newDirectory();
786790
RandomIndexWriter w = new RandomIndexWriter(random(), dir);

lucene/spatial-extras/src/test/org/apache/lucene/spatial/spatial4j/TestGeo3dRpt.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ protected Shape randomQueryShape() {
150150
return new Geo3dShape<>(areaShape, ctx);
151151
}
152152

153+
// TODO: incredibly slow
154+
@Nightly
153155
@Test
154156
public void testOperationsFromFile() throws IOException {
155157
setupStrategy();

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
@@ -2520,6 +2520,8 @@ public void testSortedNumericsSingleValuedMissingVsStoredFields() throws Excepti
25202520
}
25212521
}
25222522

2523+
// TODO: incredibly slow
2524+
@Nightly
25232525
public void testSortedNumericsMultipleValuesVsStoredFields() throws Exception {
25242526
int numIterations = atLeast(1);
25252527
for (int i = 0; i < numIterations; i++) {

0 commit comments

Comments
 (0)