From 98371a522302c3336d749d842697d09d6b27e740 Mon Sep 17 00:00:00 2001 From: eyalkoren <41850454+eyalkoren@users.noreply.github.com> Date: Wed, 29 Oct 2025 09:37:48 +0200 Subject: [PATCH 1/2] Disabling on Windows --- .../elasticsearch/xpack/stack/StackTemplateRegistryTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java b/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java index 2358f4c775bb2..e012b2705caeb 100644 --- a/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java +++ b/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java @@ -56,6 +56,7 @@ import org.elasticsearch.xpack.core.template.LifecyclePolicyConfig; import org.junit.After; import org.junit.Before; +import org.apache.lucene.util.Constants; import java.io.IOException; import java.io.InputStream; @@ -538,6 +539,7 @@ public void testThatTemplatesAreNotDeprecated() { } public void testRegistryIsUpToDate() throws Exception { + assumeFalse("This test relies on text files checksum, which is inconsistent between Windows and Linux", Constants.WINDOWS); CRC32 crc32 = new CRC32(); for (IndexTemplateConfig config : StackTemplateRegistry.getComponentTemplateConfigsAsConfigs()) { crc32.update(loadTemplate(config.getFileName())); From b88ed148e9d43505e0d6d612d3a03b881479fe39 Mon Sep 17 00:00:00 2001 From: elasticsearchmachine Date: Wed, 29 Oct 2025 07:46:22 +0000 Subject: [PATCH 2/2] [CI] Auto commit changes from spotless --- .../elasticsearch/xpack/stack/StackTemplateRegistryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java b/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java index e012b2705caeb..d8de89f50a2ac 100644 --- a/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java +++ b/x-pack/plugin/stack/src/test/java/org/elasticsearch/xpack/stack/StackTemplateRegistryTests.java @@ -7,6 +7,7 @@ package org.elasticsearch.xpack.stack; +import org.apache.lucene.util.Constants; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionResponse; @@ -56,7 +57,6 @@ import org.elasticsearch.xpack.core.template.LifecyclePolicyConfig; import org.junit.After; import org.junit.Before; -import org.apache.lucene.util.Constants; import java.io.IOException; import java.io.InputStream;