Skip to content

Test suite TestHnswMergeAbort slows down build #16397

Description

@kaivalnp

Description

#16368 recently added a new test suite TestHnswMergeAbort, which is slowing down local builds significantly:

The slowest tests during this run:
  53.24s TestHnswMergeAbort.testRollbackDuringFullRebuildMerge (:lucene:core)
  50.78s TestHnswMergeAbort.testRollbackDuringGraphJoinMerge (:lucene:core)
  50.19s TestHnswMergeAbort.testRollbackDuringConcurrentMerge (:lucene:core)
   6.23s TestRandomGeoShapeRelationship.testRandomOverlaps (:lucene:spatial3d)
   3.47s TestTermOrdValComparatorAdaptiveSkipping.testResultsCorrectForInterleavedData (:lucene:core)
   2.84s TestMergeSchedulerExternal.testSubclassConcurrentMergeScheduler (:lucene:core)
   2.71s TestTermOrdValComparatorAdaptiveSkipping.testResultsCorrectForRandomData (:lucene:core)
   2.62s TestSerializedIOCountingDirectory.testRandomShort (:lucene:test-framework)
   2.23s TestSimpleTextTermVectorsFormat.testMergeStability (:lucene:codecs)
   2.10s TestDuelingCodecs.testCrazyReaderEquals (:lucene:core)
The slowest suites during this run:
  154.22s TestHnswMergeAbort (:lucene:core)
  24.35s TestBasicBackwardsCompatibility (:lucene:backward-codecs)
  11.21s TestIndexUpgradeBackwardsCompatibility (:lucene:backward-codecs)
  10.52s TestBoolean2 (:lucene:core)
  10.52s TestTermOrdValComparatorAdaptiveSkipping (:lucene:core)
   8.86s TestSimpleExplanationsWithFillerDocs (:lucene:core)
   8.29s TestSimpleTextDocValuesFormat (:lucene:codecs)
   7.77s TestLucene90DocValuesFormat (:lucene:core)
   7.37s TestSimpleTextTermVectorsFormat (:lucene:codecs)
   7.21s TestIndexSortBackwardsCompatibility (:lucene:backward-codecs)

TestHnswMergeAbort is ~7x slower than the next slowest one.
I wonder if we can speed up the tests or mark them as @Monster?

Gradle command to reproduce

./gradlew check

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions