Skip to content

Speedup CsvTests#145543

Merged
idegtiarenko merged 3 commits intoelastic:mainfrom
idegtiarenko:speedup_csv_tests
Apr 2, 2026
Merged

Speedup CsvTests#145543
idegtiarenko merged 3 commits intoelastic:mainfrom
idegtiarenko:speedup_csv_tests

Conversation

@idegtiarenko
Copy link
Copy Markdown
Contributor

org.apache.lucene.tests.util.LuceneTestCase#createTempDir() is quiet expensive.
Since #144384 it was used twice per test that elevated number of test suite timeouts significantly.

image image image

Reusing the temp directory across all test cases within the suite speeds up test execution a lot (from 9 to 3 mins for me locally).
This should be enough to mitigate timeouts.

@idegtiarenko idegtiarenko added >test Issues or PRs that are addressing/adding tests Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.4.0 labels Apr 2, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Copy Markdown
Contributor

@luigidellaquila luigidellaquila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks @idegtiarenko!

@idegtiarenko idegtiarenko merged commit 01a69e9 into elastic:main Apr 2, 2026
35 checks passed
@idegtiarenko idegtiarenko deleted the speedup_csv_tests branch April 2, 2026 12:27
This was referenced Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants