From 61703e9dbccd2a3bec3f4cedaf86bb7af4138dce Mon Sep 17 00:00:00 2001 From: Kostas Krikellas Date: Fri, 18 Jul 2025 14:18:54 +0300 Subject: [PATCH] Skip tests with TS command for non-snapshot builds --- .../org/elasticsearch/xpack/downsample/DownsampleIT.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java b/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java index 0b815fce21b04..fba6cd778ae9d 100644 --- a/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java +++ b/x-pack/plugin/downsample/src/internalClusterTest/java/org/elasticsearch/xpack/downsample/DownsampleIT.java @@ -7,6 +7,7 @@ package org.elasticsearch.xpack.downsample; +import org.elasticsearch.Build; import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest; import org.elasticsearch.action.admin.indices.delete.TransportDeleteIndexAction; import org.elasticsearch.action.admin.indices.rollover.RolloverRequest; @@ -215,6 +216,10 @@ public void testAggMetricInEsqlTSAfterDownsampling() throws Exception { }; bulkIndex(dataStreamName, nextSourceSupplier, 100); + if (Build.current().isSnapshot() == false) { + return; + } + // Since the downsampled field (cpu) is downsampled in one index and not in the other, we want to confirm // first that the field is unsupported and has 2 original types - double and aggregate_metric_double try (var resp = esqlCommand("TS " + dataStreamName + " | KEEP @timestamp, host, cluster, cpu")) {