From 4207fe52adcdfb4079652699111d68744eaaef69 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 01:35:47 +1100
Subject: [PATCH 01/35] Mute
org.elasticsearch.xpack.security.profile.ProfileIntegTests
testGetUsersWithProfileUid #121483
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 134e58e6f005d..41c930ae88809 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -409,6 +409,9 @@ tests:
- class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
method: testLookupExplosionManyMatches
issue: https://github.com/elastic/elasticsearch/issues/121481
+- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
+ method: testGetUsersWithProfileUid
+ issue: https://github.com/elastic/elasticsearch/issues/121483
# Examples:
#
From fc72c64738dedee5eef0b6921a0622fec140fc98 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 01:43:08 +1100
Subject: [PATCH 02/35] Mute
org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT test
{yaml=cat.aliases/10_basic/Empty cluster} #121484
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 41c930ae88809..62f3d7d49117a 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -412,6 +412,9 @@ tests:
- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
method: testGetUsersWithProfileUid
issue: https://github.com/elastic/elasticsearch/issues/121483
+- class: org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT
+ method: test {yaml=cat.aliases/10_basic/Empty cluster}
+ issue: https://github.com/elastic/elasticsearch/issues/121484
# Examples:
#
From 06dab2d48c9cb62c5a42bdd76491dbe61f7aa9a8 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 01:45:27 +1100
Subject: [PATCH 03/35] Mute
org.elasticsearch.xpack.transform.checkpoint.TransformCCSCanMatchIT
testTransformLifecycle_RangeQueryThatMatchesNoShards #121480
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 62f3d7d49117a..5003834625eb3 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -415,6 +415,9 @@ tests:
- class: org.elasticsearch.xpack.security.CoreWithSecurityClientYamlTestSuiteIT
method: test {yaml=cat.aliases/10_basic/Empty cluster}
issue: https://github.com/elastic/elasticsearch/issues/121484
+- class: org.elasticsearch.xpack.transform.checkpoint.TransformCCSCanMatchIT
+ method: testTransformLifecycle_RangeQueryThatMatchesNoShards
+ issue: https://github.com/elastic/elasticsearch/issues/121480
# Examples:
#
From 2b410c44eb8fc684d3986247a49f9696b44f2d4c Mon Sep 17 00:00:00 2001
From: Armin Braun
Date: Sat, 1 Feb 2025 15:54:59 +0100
Subject: [PATCH 04/35] Remove outdated assertion from #118214 (#121435)
Asserting that we definitely saw the "received a single result" flag
and can now deal with null responses, isn't applicable after a few
recent fixes. New requests are sent out before responses are fully
processed to keep data nodes in a tighter loop (as well as other
relaxed ordering relative to when this assertion was added) so
the flag is not guaranteed to show up as true for lower numbers
of shard requests any longer.
Lets just remove it, it was always best effort and accidental that
this worked for the numbers the test randomizes over.
---
muted-tests.yml | 3 ---
.../action/search/SearchQueryThenFetchAsyncActionTests.java | 1 -
2 files changed, 4 deletions(-)
diff --git a/muted-tests.yml b/muted-tests.yml
index 5003834625eb3..8e40d709e598e 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -143,9 +143,6 @@ tests:
- class: org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT
method: test {p0=data_stream/120_data_streams_stats/Multiple data stream}
issue: https://github.com/elastic/elasticsearch/issues/118217
-- class: org.elasticsearch.action.search.SearchQueryThenFetchAsyncActionTests
- method: testBottomFieldSort
- issue: https://github.com/elastic/elasticsearch/issues/118214
- class: org.elasticsearch.xpack.searchablesnapshots.RetrySearchIntegTests
method: testSearcherId
issue: https://github.com/elastic/elasticsearch/issues/118374
diff --git a/server/src/test/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncActionTests.java b/server/src/test/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncActionTests.java
index f005f862720ff..661a9fd8c854c 100644
--- a/server/src/test/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncActionTests.java
+++ b/server/src/test/java/org/elasticsearch/action/search/SearchQueryThenFetchAsyncActionTests.java
@@ -220,7 +220,6 @@ protected void run() {
assertFalse(canReturnNullResponse.get());
assertThat(numWithTopDocs.get(), equalTo(0));
} else {
- assertTrue(canReturnNullResponse.get());
if (withCollapse) {
assertThat(numWithTopDocs.get(), equalTo(0));
} else {
From 9e73518097d8fae4203be61e60ec6acd9997c702 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 09:15:05 +1100
Subject: [PATCH 05/35] Mute
org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
testStopQueryLocal #121487
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 8e40d709e598e..37119fa6750a8 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -415,6 +415,9 @@ tests:
- class: org.elasticsearch.xpack.transform.checkpoint.TransformCCSCanMatchIT
method: testTransformLifecycle_RangeQueryThatMatchesNoShards
issue: https://github.com/elastic/elasticsearch/issues/121480
+- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
+ method: testStopQueryLocal
+ issue: https://github.com/elastic/elasticsearch/issues/121487
# Examples:
#
From 660419812d14330abc17dbde9f67f3308041623d Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 09:15:21 +1100
Subject: [PATCH 06/35] Mute
org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
testSuccessfulPathways #121488
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 37119fa6750a8..61cd02f4b2a2e 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -418,6 +418,9 @@ tests:
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
method: testStopQueryLocal
issue: https://github.com/elastic/elasticsearch/issues/121487
+- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
+ method: testSuccessfulPathways
+ issue: https://github.com/elastic/elasticsearch/issues/121488
# Examples:
#
From 6c9e64e0146b4234a95287aa7d8b5df17d078af0 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 09:15:30 +1100
Subject: [PATCH 07/35] Mute
org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
testAsyncQueriesWithLimit0 #121489
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 61cd02f4b2a2e..41f1801c511d9 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -421,6 +421,9 @@ tests:
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
method: testSuccessfulPathways
issue: https://github.com/elastic/elasticsearch/issues/121488
+- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
+ method: testAsyncQueriesWithLimit0
+ issue: https://github.com/elastic/elasticsearch/issues/121489
# Examples:
#
From edcec6207ddbf75d7ce6fd213ab8a80cb921c4b9 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 09:48:24 +1100
Subject: [PATCH 08/35] Mute
org.elasticsearch.xpack.security.profile.ProfileIntegTests
testSuggestProfilesWithHint #121116
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 41f1801c511d9..caa3343993388 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -424,6 +424,9 @@ tests:
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
method: testAsyncQueriesWithLimit0
issue: https://github.com/elastic/elasticsearch/issues/121489
+- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
+ method: testSuggestProfilesWithHint
+ issue: https://github.com/elastic/elasticsearch/issues/121116
# Examples:
#
From 543fa00e626a690a95c6e83652787be58819df57 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 16:39:07 +1100
Subject: [PATCH 09/35] Mute
org.elasticsearch.xpack.sql.qa.single_node.JdbcDocCsvSpecIT test
{docs.testFilterToday} #121474
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index caa3343993388..bab5e475d9988 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -427,6 +427,9 @@ tests:
- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
method: testSuggestProfilesWithHint
issue: https://github.com/elastic/elasticsearch/issues/121116
+- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcDocCsvSpecIT
+ method: test {docs.testFilterToday}
+ issue: https://github.com/elastic/elasticsearch/issues/121474
# Examples:
#
From 2b6b7da1905635068cb54754711bf1d174940c5e Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 17:36:16 +1100
Subject: [PATCH 10/35] Mute
org.elasticsearch.xpack.security.profile.ProfileIntegTests
testSuggestProfileWithData #121258
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index bab5e475d9988..1667bef06f324 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -430,6 +430,9 @@ tests:
- class: org.elasticsearch.xpack.sql.qa.single_node.JdbcDocCsvSpecIT
method: test {docs.testFilterToday}
issue: https://github.com/elastic/elasticsearch/issues/121474
+- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
+ method: testSuggestProfileWithData
+ issue: https://github.com/elastic/elasticsearch/issues/121258
# Examples:
#
From 10fe2d724a74a93234c42aa2e7e2b6217cef7af1 Mon Sep 17 00:00:00 2001
From: elasticsearchmachine
<58790826+elasticsearchmachine@users.noreply.github.com>
Date: Sun, 2 Feb 2025 17:40:14 +1100
Subject: [PATCH 11/35] Mute
org.elasticsearch.ingest.geoip.FullClusterRestartIT
testGeoIpSystemFeaturesMigration {cluster=UPGRADED} #121115
---
muted-tests.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/muted-tests.yml b/muted-tests.yml
index 1667bef06f324..f01f363ca0cf4 100644
--- a/muted-tests.yml
+++ b/muted-tests.yml
@@ -433,6 +433,9 @@ tests:
- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
method: testSuggestProfileWithData
issue: https://github.com/elastic/elasticsearch/issues/121258
+- class: org.elasticsearch.ingest.geoip.FullClusterRestartIT
+ method: testGeoIpSystemFeaturesMigration {cluster=UPGRADED}
+ issue: https://github.com/elastic/elasticsearch/issues/121115
# Examples:
#
From f5a3de7ef8f2aeb885a57253c247a6f142129f2c Mon Sep 17 00:00:00 2001
From: Gal Lalouche
Date: Sun, 2 Feb 2025 14:56:02 +0200
Subject: [PATCH 12/35] ESQL: Even more test type error testing movements
(#121321)
* Multivalue error tests
* Date error tests
* Spatial error tests
* String error tests
* Aggregate error tests
* Remove deprecated AbstractScalarFunction checks
* Rename DefaultChecks test in AbstractAggregation
* [CI] Auto commit changes from spotless
---------
Co-authored-by: elasticsearchmachine
---
.../function/AbstractAggregationTestCase.java | 23 ++++++---
.../AbstractScalarFunctionTestCase.java | 51 -------------------
.../function/aggregate/AvgErrorTests.java | 37 ++++++++++++++
.../function/aggregate/AvgTests.java | 2 +-
.../aggregate/CountDistinctTests.java | 1 -
.../function/aggregate/CountTests.java | 1 -
.../function/aggregate/MaxErrorTests.java | 39 ++++++++++++++
.../function/aggregate/MaxTests.java | 6 +--
.../MedianAbsoluteDeviationTests.java | 2 +-
.../function/aggregate/MedianTests.java | 2 +-
.../function/aggregate/MinErrorTests.java | 39 ++++++++++++++
.../function/aggregate/MinTests.java | 6 +--
.../aggregate/PercentileErrorTests.java | 37 ++++++++++++++
.../function/aggregate/PercentileTests.java | 2 +-
.../aggregate/SpatialCentroidTests.java | 1 -
.../aggregate/SpatialExtentTests.java | 1 -
.../function/aggregate/StdDevTests.java | 2 +-
.../function/aggregate/SumTests.java | 2 +-
.../function/aggregate/TopTests.java | 2 +-
.../function/aggregate/ValuesErrorTests.java | 37 ++++++++++++++
.../function/aggregate/ValuesTests.java | 6 +--
.../function/aggregate/WeightedAvgTests.java | 2 +-
.../function/scalar/date/NowTests.java | 5 +-
.../MvPSeriesWeightedSumErrorTests.java | 37 ++++++++++++++
.../multivalue/MvPSeriesWeightedSumTests.java | 5 +-
.../multivalue/MvPercentileErrorTests.java | 37 ++++++++++++++
.../scalar/multivalue/MvPercentileTests.java | 5 +-
.../scalar/multivalue/MvSumErrorTests.java | 37 ++++++++++++++
.../scalar/multivalue/MvSumTests.java | 2 +-
.../scalar/spatial/StEnvelopeErrorTests.java | 39 ++++++++++++++
.../scalar/spatial/StEnvelopeTests.java | 6 +--
.../scalar/spatial/StXErrorTests.java | 37 ++++++++++++++
.../scalar/spatial/StXMaxErrorTests.java | 39 ++++++++++++++
.../function/scalar/spatial/StXMaxTests.java | 6 +--
.../scalar/spatial/StXMinErrorTests.java | 39 ++++++++++++++
.../function/scalar/spatial/StXMinTests.java | 6 +--
.../function/scalar/spatial/StXTests.java | 2 +-
.../scalar/spatial/StYErrorTests.java | 37 ++++++++++++++
.../scalar/spatial/StYMaxErrorTests.java | 39 ++++++++++++++
.../function/scalar/spatial/StYMaxTests.java | 6 +--
.../scalar/spatial/StYMinErrorTests.java | 39 ++++++++++++++
.../function/scalar/spatial/StYMinTests.java | 6 +--
.../function/scalar/spatial/StYTests.java | 2 +-
.../scalar/string/RepeatErrorTests.java | 42 +++++++++++++++
.../function/scalar/string/RepeatTests.java | 6 +--
.../scalar/string/ReverseErrorTests.java | 37 ++++++++++++++
.../function/scalar/string/ReverseTests.java | 2 +-
47 files changed, 692 insertions(+), 127 deletions(-)
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AvgErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/MaxErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/MinErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/PercentileErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/ValuesErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvPSeriesWeightedSumErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvPercentileErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvSumErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StEnvelopeErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StXErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StXMaxErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StXMinErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StYErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StYMaxErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StYMinErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/RepeatErrorTests.java
create mode 100644 x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/string/ReverseErrorTests.java
diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/AbstractAggregationTestCase.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/AbstractAggregationTestCase.java
index 87ea6315d4f3b..9f0fc34b7d539 100644
--- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/AbstractAggregationTestCase.java
+++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/AbstractAggregationTestCase.java
@@ -61,7 +61,7 @@ public abstract class AbstractAggregationTestCase extends AbstractFunctionTestCa
* Use if possible, as this method may get updated with new checks in the future.
*
*/
- protected static Iterable