Skip to content

Commit bec3bce

Browse files
authored
Set time series feature flag for tests in aggregation module (#91507)
Set time series feature flag for release builds to test and internalClusterTest tasks. So that the time series aggregation test doesn't fail, because the plugin wouldn't load the time_series aggregation. Closes #91505
1 parent 509b636 commit bec3bce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/aggregations/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.elasticsearch.gradle.Version
2+
import org.elasticsearch.gradle.internal.info.BuildParams
23

34
/*
45
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
@@ -27,6 +28,15 @@ restResources {
2728
}
2829
}
2930

31+
if (BuildParams.isSnapshotBuild() == false) {
32+
tasks.named("test").configure {
33+
systemProperty 'es.index_mode_feature_flag_registered', 'true'
34+
}
35+
tasks.named("internalClusterTest").configure {
36+
systemProperty 'es.index_mode_feature_flag_registered', 'true'
37+
}
38+
}
39+
3040
tasks.named("yamlRestTestV7CompatTransform").configure { task ->
3141
task.skipTest("search.aggregation/20_terms/string profiler via global ordinals filters implementation", "The profiler results aren't backwards compatible.")
3242
task.skipTest("search.aggregation/20_terms/string profiler via global ordinals native implementation", "The profiler results aren't backwards compatible.")

0 commit comments

Comments
 (0)