Skip to content

Commit 0821020

Browse files
authored
Clamp soar distance norm in bulk tests (#138225)
1 parent 1c050ce commit 0821020

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/simdvec/src/test/java/org/elasticsearch/simdvec/ESVectorUtilTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public void testSoarDistanceBulk() {
349349
float[] v3 = generateRandomVector(vectorSize);
350350
float[] diff = generateRandomVector(vectorSize);
351351
float soarLambda = random().nextFloat();
352-
float rnorm = random().nextFloat();
352+
float rnorm = random().nextFloat(10);
353353
float[] expectedDistances = new float[4];
354354
float[] panamaDistances = new float[4];
355355
defaultedProvider.getVectorUtilSupport().soarDistanceBulk(query, v0, v1, v2, v3, diff, soarLambda, rnorm, expectedDistances);

muted-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ tests:
426426
- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorMultipleNodesIT
427427
method: testCancellingAuthorizationTaskRestartsIt
428428
issue: https://github.com/elastic/elasticsearch/issues/138099
429-
- class: org.elasticsearch.simdvec.ESVectorUtilTests
430-
method: testSoarDistanceBulk
431-
issue: https://github.com/elastic/elasticsearch/issues/138117
429+
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
430+
method: test
431+
issue: https://github.com/elastic/elasticsearch/issues/137909
432432
- class: org.elasticsearch.search.basic.SearchWithRandomDisconnectsIT
433433
method: testSearchWithRandomDisconnects
434434
issue: https://github.com/elastic/elasticsearch/issues/138128

0 commit comments

Comments
 (0)