From 6999a69b3f22bdd708f5f5584d421d5b3238e05e Mon Sep 17 00:00:00 2001 From: "Mark J. Hoy" Date: Tue, 28 Oct 2025 08:54:50 -0400 Subject: [PATCH] Fix flakiness on YAML tests for Sparse Vector (#137202) * add indices to deletion on teardown * unmute test (only the 1 is muted) (cherry picked from commit 2d45a8d047917b49baed0c7fe0b1090c73a182be) # Conflicts: # muted-tests.yml --- muted-tests.yml | 1 + .../resources/rest-api-spec/test/ml/sparse_vector_search.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/muted-tests.yml b/muted-tests.yml index 2ea36ddae4621..42098ae4bf833 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -482,3 +482,4 @@ tests: # - class: "org.elasticsearch.xpack.esql.**" # method: "test {union_types.MultiIndexIpStringStatsInline *}" # issue: "https://github.com/elastic/elasticsearch/..." + diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml index 408ddd1ec50c6..b09fd9db69868 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml @@ -99,7 +99,7 @@ teardown: Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser Content-Type: application/json indices.delete: - index: ["sparse_vector_pruning_test", "test-sparse-vector-without-pruning", "test-sparse-vector-with-pruning"] + index: [ "index-with-sparse-vector", "sparse_vector_pruning_test", "test-sparse-vector-without-pruning", "test-sparse-vector-with-pruning", "test-sparse-vector-pruning-default" ] ignore: 404 - do: headers: