apache / apache/lucene

Speed up slow tests

Open
#15,212 26 comments 1 reaction 0 assignees View on GitHub
type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

The goal should be tests that run in < 1 second.

We've got some that are consistently slow:

```
166.32s TestRescoreTopNQuery.testLateInteractionQuery (:lucene:core)
50.10s TestFullPrecisionFloatVectorSimilarityValuesSource.testFullPrecisionVectorSimilarityDVS (:lucene:core)
39.02s TestPriorityQueue.testRemovalsAndInsertions (:lucene:core)
23.61s TestIndexOrDocValuesQuery.testUseIndexForSelectiveMultiValueQueries (:lucene:core)
16.98s TestIndexedDISI.testRandom (:lucene:core)
12.86s TestLateInteractionRescorer.testMissingLateIValues (:lucene:core)
10.10s TestBlockMaxConjunction.testRandom (:lucene:core)
8.98s TestIndexWriterExceptions.testRandomExceptions (:lucene:core)
7.91s TestTermInSetQuery.testDuel (:lucene:core)
7.22s TestLateInteractionFloatValuesSource.testValues (:lucene:core)
```

some (like `TestIndexedDISI.testRandom`) are just occasionally slow, but the others on this list seem to consistently show up as the worst offenders

### Gradle command to reproduce

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.