Skip to content

Commit

Permalink
Disable SLM history in docs tests (#118979) (#119813)
Browse files Browse the repository at this point in the history
The SLM history data stream was causing issues in the docs tests because
its presence was flaky and could result in the inability to remove
its index template, which in turn resulted in failing tests.
  • Loading branch information
nielsbauman authored Jan 9, 2025
1 parent 1724fab commit 0f88dde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
setting 'script.painless.regex.enabled', 'true'
setting 'xpack.security.enabled', 'false'
setting 'path.repo', "${buildDir}/cluster/shared/repo"

// disable the ILM and SLM history for doc tests to avoid potential lingering tasks that'd cause test flakiness
setting 'indices.lifecycle.history_index_enabled', 'false'
setting 'slm.history_index_enabled', 'false'

Closure configFile = {
extraConfigFile it, file("src/test/cluster/config/$it")
}
Expand Down

0 comments on commit 0f88dde

Please sign in to comment.