From 71af617fe26da9f7b1b855c110f2ba768f79488d 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 f8274230278a7..44116115625eb 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -406,3 +406,4 @@ tests: - class: org.elasticsearch.xpack.esql.plugin.DataNodeRequestSenderIT method: testSearchWhileRelocating issue: https://github.com/elastic/elasticsearch/issues/128500 + 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: