Skip to content

Commit 6582919

Browse files
Merge branch 'main' of github.com:elastic/elasticsearch into ml-cs-validation
2 parents 53936fb + 449ec6b commit 6582919

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

libs/simdvec/src/test/java/org/elasticsearch/simdvec/internal/vectorization/ES91OSQVectorScorerTests.java

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,21 @@ public void testScore() throws Exception {
125125
scores2
126126
);
127127
for (int j = 0; j < ES91OSQVectorsScorer.BULK_SIZE; j++) {
128-
if (scores1[j] > (maxDims * Short.MAX_VALUE)) {
129-
int diff = (int) (scores1[j] - scores2[j]);
130-
assertThat("defaultScores: " + scores1[j] + " bulkScores: " + scores2[j], Math.abs(diff), lessThan(65));
131-
} else if (scores1[j] > (maxDims * Byte.MAX_VALUE)) {
132-
int diff = (int) (scores1[j] - scores2[j]);
133-
assertThat("defaultScores: " + scores1[j] + " bulkScores: " + scores2[j], Math.abs(diff), lessThan(9));
128+
if (scores1[j] == scores2[j]) {
129+
continue;
130+
}
131+
if (scores1[j] > (maxDims * Byte.MAX_VALUE)) {
132+
float diff = Math.abs(scores1[j] - scores2[j]);
133+
assertThat(
134+
"defaultScores: " + scores1[j] + " bulkScores: " + scores2[j],
135+
diff / scores1[j],
136+
lessThan(1e-5f)
137+
);
138+
assertThat(
139+
"defaultScores: " + scores1[j] + " bulkScores: " + scores2[j],
140+
diff / scores2[j],
141+
lessThan(1e-5f)
142+
);
134143
} else {
135144
assertEquals(scores1[j], scores2[j], 1e-2f);
136145
}

muted-tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,21 @@ tests:
571571
- class: org.elasticsearch.search.query.VectorIT
572572
method: testFilteredQueryStrategy
573573
issue: https://github.com/elastic/elasticsearch/issues/129517
574-
- class: org.elasticsearch.xpack.esql.parser.StatementParserTests
575-
method: testInvalidJoinPatterns
576-
issue: https://github.com/elastic/elasticsearch/issues/129598
577574
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
578575
method: test
579576
issue: https://github.com/elastic/elasticsearch/issues/129453
580577
- class: org.elasticsearch.server.cli.MachineDependentHeapTests
581578
method: testMlOnlyOptions
582579
issue: https://github.com/elastic/elasticsearch/issues/129236
580+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
581+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=1}
582+
issue: https://github.com/elastic/elasticsearch/issues/129644
583+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
584+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=2}
585+
issue: https://github.com/elastic/elasticsearch/issues/129645
586+
- class: org.elasticsearch.upgrades.RunningSnapshotIT
587+
method: testRunningSnapshotCompleteAfterUpgrade {upgradedNodes=3}
588+
issue: https://github.com/elastic/elasticsearch/issues/129646
583589

584590
# Examples:
585591
#

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3204,7 +3204,7 @@ public void testInvalidJoinPatterns() {
32043204
{
32053205
var fromPatterns = randomIndexPattern();
32063206
// Generate a syntactically invalid (partial quoted) pattern.
3207-
var joinPattern = randomIdentifier() + ":" + quote(randomIndexPatterns(without(CROSS_CLUSTER)));
3207+
var joinPattern = randomIdentifier() + ":" + quote(randomIndexPattern(without(CROSS_CLUSTER)));
32083208
expectError(
32093209
"FROM " + fromPatterns + " | LOOKUP JOIN " + joinPattern + " ON " + randomIdentifier(),
32103210
// Since the from pattern is partially quoted, we get an error at the beginning of the partially quoted

0 commit comments

Comments
 (0)