From cc669ea4f71c33b07884c03cb5e10a130e67d955 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Thu, 12 Mar 2026 10:12:25 +0100 Subject: [PATCH 1/2] Fix MagnitudeSerializationTests release tests --- muted-tests.yml | 9 --------- .../function/vector/MagnitudeSerializationTests.java | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 70a239844d732..e7c01c0cf6dd1 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -435,15 +435,6 @@ tests: - class: org.elasticsearch.xpack.esql.analysis.VerifierTests method: testMMRLimitedInput issue: https://github.com/elastic/elasticsearch/issues/144077 -- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests - method: testEqualsAndHashcode - issue: https://github.com/elastic/elasticsearch/issues/144078 -- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests - method: testSerialization - issue: https://github.com/elastic/elasticsearch/issues/144079 -- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests - method: testConcurrentSerialization - issue: https://github.com/elastic/elasticsearch/issues/144080 - class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests method: testConcurrentEquals issue: https://github.com/elastic/elasticsearch/issues/144081 diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/vector/MagnitudeSerializationTests.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/vector/MagnitudeSerializationTests.java index c76d1cb36f7ca..9834be1829396 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/vector/MagnitudeSerializationTests.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/vector/MagnitudeSerializationTests.java @@ -7,11 +7,19 @@ package org.elasticsearch.xpack.esql.expression.function.vector; +import org.elasticsearch.xpack.esql.action.EsqlCapabilities; import org.elasticsearch.xpack.esql.core.expression.Expression; import org.elasticsearch.xpack.esql.core.tree.Source; import org.elasticsearch.xpack.esql.expression.AbstractUnaryScalarSerializationTests; +import org.junit.Before; public class MagnitudeSerializationTests extends AbstractUnaryScalarSerializationTests { + + @Before + public void checkCapability() { + assumeTrue("v_magnitude available in snapshot", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled()); + } + @Override protected Magnitude create(Source source, Expression child) { return new Magnitude(source, child); From 4d297d56928298973eadf3cdd313c7ccc60720f5 Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Thu, 12 Mar 2026 10:14:07 +0100 Subject: [PATCH 2/2] Unmute another test --- muted-tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index e7c01c0cf6dd1..095750f6cb83f 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -435,9 +435,6 @@ tests: - class: org.elasticsearch.xpack.esql.analysis.VerifierTests method: testMMRLimitedInput issue: https://github.com/elastic/elasticsearch/issues/144077 -- class: org.elasticsearch.xpack.esql.expression.function.vector.MagnitudeSerializationTests - method: testConcurrentEquals - issue: https://github.com/elastic/elasticsearch/issues/144081 # Examples: #