Skip to content

Commit 505f21b

Browse files
authored
Simplify tests, bypassing raw score test (#125877)
I was debating on having this tests in the original PR anyways. It ain't worth the flakiness. We know the oversampling setting gets updated given the other tests. closes: #125851
1 parent 2ce2fda commit 505f21b

File tree

4 files changed

+0
-67
lines changed

4 files changed

+0
-67
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,6 @@ tests:
374374
- class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceTests
375375
method: testIORateIsAdjustedForRunningMergeTasks
376376
issue: https://github.com/elastic/elasticsearch/issues/125842
377-
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
378-
method: test {p0=search.vectors/41_knn_search_bbq_hnsw/Test index configured rescore vector score consistency}
379-
issue: https://github.com/elastic/elasticsearch/issues/125851
380377
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
381378
method: test {p0=transform/transforms_start_stop/Verify start transform creates destination index with appropriate mapping}
382379
issue: https://github.com/elastic/elasticsearch/issues/125854

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -568,29 +568,3 @@ setup:
568568
- match: { hits.hits.1._score: $default_rescore1 }
569569
- match: { hits.hits.2._score: $override_score2 }
570570
- match: { hits.hits.2._score: $default_rescore2 }
571-
572-
- do:
573-
headers:
574-
Content-Type: application/json
575-
search:
576-
rest_total_hits_as_int: true
577-
index: bbq_rescore_zero_hnsw
578-
body:
579-
knn:
580-
field: vector
581-
query_vector: [0.128, 0.067, -0.08 , 0.395, -0.11 , -0.259, 0.473, -0.393,
582-
0.292, 0.571, -0.491, 0.444, -0.288, 0.198, -0.343, 0.015,
583-
0.232, 0.088, 0.228, 0.151, -0.136, 0.236, -0.273, -0.259,
584-
-0.217, 0.359, -0.207, 0.352, -0.142, 0.192, -0.061, -0.17 ,
585-
-0.343, 0.189, -0.221, 0.32 , -0.301, -0.1 , 0.005, 0.232,
586-
-0.344, 0.136, 0.252, 0.157, -0.13 , -0.244, 0.193, -0.034,
587-
-0.12 , -0.193, -0.102, 0.252, -0.185, -0.167, -0.575, 0.582,
588-
-0.426, 0.983, 0.212, 0.204, 0.03 , -0.276, -0.425, -0.158]
589-
k: 3
590-
num_candidates: 3
591-
592-
# Compare scores as hit IDs may change depending on how things are distributed
593-
- match: { hits.total: 3 }
594-
- match: { hits.hits.0._score: $raw_score0 }
595-
- match: { hits.hits.1._score: $raw_score1 }
596-
- match: { hits.hits.2._score: $raw_score2 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_byte_quantized.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -884,22 +884,3 @@ setup:
884884
- match: { hits.hits.1._score: $default_rescore1 }
885885
- match: { hits.hits.2._score: $override_score2 }
886886
- match: { hits.hits.2._score: $default_rescore2 }
887-
888-
- do:
889-
headers:
890-
Content-Type: application/json
891-
search:
892-
rest_total_hits_as_int: true
893-
index: int8_rescore_zero_hnsw
894-
body:
895-
knn:
896-
field: vector
897-
query_vector: [-0.5, 90.0, -10, 14.8]
898-
k: 3
899-
num_candidates: 3
900-
901-
# Compare scores as hit IDs may change depending on how things are distributed
902-
- match: { hits.total: 3 }
903-
- match: { hits.hits.0._score: $raw_score0 }
904-
- match: { hits.hits.1._score: $raw_score1 }
905-
- match: { hits.hits.2._score: $raw_score2 }

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_half_byte_quantized.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -916,22 +916,3 @@ setup:
916916
- match: { hits.hits.1._score: $default_rescore1 }
917917
- match: { hits.hits.2._score: $override_score2 }
918918
- match: { hits.hits.2._score: $default_rescore2 }
919-
920-
- do:
921-
headers:
922-
Content-Type: application/json
923-
search:
924-
rest_total_hits_as_int: true
925-
index: int4_rescore_zero_hnsw
926-
body:
927-
knn:
928-
field: vector
929-
query_vector: [-0.5, 90.0, -10, 14.8]
930-
k: 3
931-
num_candidates: 3
932-
933-
# Compare scores as hit IDs may change depending on how things are distributed
934-
- match: { hits.total: 3 }
935-
- match: { hits.hits.0._score: $raw_score0 }
936-
- match: { hits.hits.1._score: $raw_score1 }
937-
- match: { hits.hits.2._score: $raw_score2 }

0 commit comments

Comments
 (0)