Skip to content

Commit 16bb39d

Browse files
authored
[ML] Mute all ML tests that may create native processes (#63610)
This is to allow merging of elastic/ml-cpp#1520 and #63542 without causing every single CI build to fail. These changes will be reverted in #63542 after downloadable snapshots containing the changes of elastic/ml-cpp#1520 are available.
1 parent f009e63 commit 16bb39d

File tree

65 files changed

+2217
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2217
-13
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/MachineLearningIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.elasticsearch.client;
2020

2121
import com.carrotsearch.randomizedtesting.generators.CodepointSetGenerator;
22+
import org.apache.lucene.util.LuceneTestCase;
2223
import org.elasticsearch.ElasticsearchStatusException;
2324
import org.elasticsearch.action.bulk.BulkRequest;
2425
import org.elasticsearch.action.get.GetRequest;
@@ -219,6 +220,7 @@
219220
import static org.hamcrest.Matchers.notNullValue;
220221
import static org.hamcrest.Matchers.nullValue;
221222

223+
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/pull/63542")
222224
public class MachineLearningIT extends ESRestHighLevelClientTestCase {
223225

224226
@After

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/MlClientDocumentationIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.elasticsearch.client.documentation;
2020

21+
import org.apache.lucene.util.LuceneTestCase;
2122
import org.elasticsearch.action.ActionListener;
2223
import org.elasticsearch.action.LatchedActionListener;
2324
import org.elasticsearch.action.bulk.BulkRequest;
@@ -244,6 +245,7 @@
244245
import static org.hamcrest.Matchers.notNullValue;
245246
import static org.hamcrest.core.Is.is;
246247

248+
@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/pull/63542")
247249
public class MlClientDocumentationIT extends ESRestHighLevelClientTestCase {
248250

249251
@After

x-pack/plugin/ml/qa/basic-multi-node/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ testClusters.all {
1111
setting 'indices.lifecycle.history_index_enabled', 'false'
1212
setting 'slm.history_index_enabled', 'false'
1313
}
14+
15+
// Entire suite muted while https://github.com/elastic/elasticsearch/pull/63542
16+
// and https://github.com/elastic/ml-cpp/pull/1520 are merged
17+
javaRestTest.enabled = false
18+

x-pack/plugin/ml/qa/ml-with-security/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ yamlRestTest {
214214
].join(',')
215215
}
216216

217+
// Entire suite muted while https://github.com/elastic/elasticsearch/pull/63542
218+
// and https://github.com/elastic/ml-cpp/pull/1520 are merged
219+
yamlRestTest.enabled = false
217220

218221
testClusters.all {
219222
testDistribution = 'DEFAULT'

x-pack/plugin/ml/qa/native-multi-node-tests/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ javaRestTest {
3333
systemProperty 'es.set.netty.runtime.available.processors', 'false'
3434
}
3535

36+
// Entire suite muted while https://github.com/elastic/elasticsearch/pull/63542
37+
// and https://github.com/elastic/ml-cpp/pull/1520 are merged
38+
javaRestTest.enabled = false
39+
3640
testClusters.all {
3741
numberOfNodes = 3
3842
testDistribution = 'DEFAULT'

x-pack/plugin/ml/qa/single-node-tests/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ testClusters.all {
55
setting 'xpack.security.enabled', 'false'
66
setting 'xpack.license.self_generated.type', 'trial'
77
}
8+
9+
// Entire suite muted while https://github.com/elastic/elasticsearch/pull/63542
10+
// and https://github.com/elastic/ml-cpp/pull/1520 are merged
11+
javaRestTest.enabled = false
12+

x-pack/plugin/src/test/resources/rest-api-spec/test/ml/calendar_crud.yml

+74
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
"Test calendar CRUD":
3+
- skip:
4+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
5+
version: all
6+
37
- do:
48
ml.get_calendars:
59
calendar_id: _all
@@ -92,20 +96,32 @@
9296

9397
---
9498
"Test get calendar given missing":
99+
- skip:
100+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
101+
version: all
102+
95103
- do:
96104
catch: /No calendar with id \[unknown\]/
97105
ml.get_calendars:
98106
calendar_id: "unknown"
99107

100108
---
101109
"Test put calendar given id contains invalid chars":
110+
- skip:
111+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
112+
version: all
113+
102114
- do:
103115
catch: bad_request
104116
ml.put_calendar:
105117
calendar_id: "Mayas"
106118

107119
---
108120
"Test PageParams":
121+
- skip:
122+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
123+
version: all
124+
109125
- do:
110126
ml.put_calendar:
111127
calendar_id: "calendar1"
@@ -147,6 +163,10 @@
147163

148164
---
149165
"Test PageParams with ID is invalid":
166+
- skip:
167+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
168+
version: all
169+
150170
- do:
151171
catch: bad_request
152172
ml.get_calendars:
@@ -155,6 +175,10 @@
155175

156176
---
157177
"Test cannot overwrite an exisiting calendar":
178+
- skip:
179+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
180+
version: all
181+
158182

159183
- do:
160184
ml.put_calendar:
@@ -167,13 +191,21 @@
167191

168192
---
169193
"Test cannot create calendar with name _all":
194+
- skip:
195+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
196+
version: all
197+
170198
- do:
171199
catch: bad_request
172200
ml.put_calendar:
173201
calendar_id: "_all"
174202

175203
---
176204
"Test deleted job is removed from calendar":
205+
- skip:
206+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
207+
version: all
208+
177209

178210
- do:
179211
ml.put_job:
@@ -209,6 +241,10 @@
209241

210242
---
211243
"Test update calendar job ids":
244+
- skip:
245+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
246+
version: all
247+
212248

213249
- do:
214250
ml.put_calendar:
@@ -282,6 +318,10 @@
282318
job_id: "missing_job"
283319
---
284320
"Test calendar get events":
321+
- skip:
322+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
323+
version: all
324+
285325

286326
- do:
287327
ml.put_calendar:
@@ -390,6 +430,8 @@
390430
---
391431
"Test delete calendar deletes events":
392432
- skip:
433+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
434+
version: all
393435
features: warnings
394436

395437
- do:
@@ -456,6 +498,10 @@
456498

457499
---
458500
"Test get all calendar events":
501+
- skip:
502+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
503+
version: all
504+
459505

460506
- do:
461507
ml.put_calendar:
@@ -492,6 +538,10 @@
492538

493539
---
494540
"Test get calendar events for job":
541+
- skip:
542+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
543+
version: all
544+
495545

496546
- do:
497547
ml.put_job:
@@ -581,6 +631,10 @@
581631

582632
---
583633
"Test get calendar events with job groups":
634+
- skip:
635+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
636+
version: all
637+
584638
# Test job group
585639
- do:
586640
ml.put_job:
@@ -633,6 +687,10 @@
633687

634688
---
635689
"Test post calendar events given empty events":
690+
- skip:
691+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
692+
version: all
693+
636694

637695
- do:
638696
catch: /At least 1 event is required/
@@ -645,6 +703,10 @@
645703
646704
---
647705
"Test delete event from non existing calendar":
706+
- skip:
707+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
708+
version: all
709+
648710

649711
- do:
650712
catch: /No calendar with id \[unknown\]/
@@ -654,6 +716,10 @@
654716

655717
---
656718
"Test delete job from non existing calendar":
719+
- skip:
720+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
721+
version: all
722+
657723

658724
- do:
659725
catch: /No calendar with id \[unknown\]/
@@ -663,6 +729,10 @@
663729

664730
---
665731
"Test list of job Ids":
732+
- skip:
733+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
734+
version: all
735+
666736
- do:
667737
ml.put_job:
668738
job_id: foo-a
@@ -724,6 +794,10 @@
724794

725795
---
726796
"Test calendar actions with new job group":
797+
- skip:
798+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
799+
version: all
800+
727801
- do:
728802
ml.put_job:
729803
job_id: calendar-job

x-pack/plugin/src/test/resources/rest-api-spec/test/ml/custom_all_field.yml

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
setup:
22
- skip:
3+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
4+
version: all
35
features: headers
46
- do:
57
headers:
@@ -79,6 +81,10 @@ setup:
7981

8082
---
8183
"Test querying custom all field":
84+
- skip:
85+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
86+
version: all
87+
8288

8389
- do:
8490
search:
@@ -145,6 +151,10 @@ setup:
145151

146152
---
147153
"Test wildcard job id":
154+
- skip:
155+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
156+
version: all
157+
148158

149159
- do:
150160
search:

x-pack/plugin/src/test/resources/rest-api-spec/test/ml/data_frame_analytics_cat_apis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
setup:
22
- skip:
3+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
4+
version: all
35
features: headers
46
- do:
57
indices.create:
@@ -40,6 +42,10 @@ setup:
4042
4143
---
4244
"Test cat data frame analytics single job":
45+
- skip:
46+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
47+
version: all
48+
4349

4450
- do:
4551
cat.ml_data_frame_analytics:
@@ -51,6 +57,10 @@ setup:
5157
5258
---
5359
"Test cat data frame analytics single job with header":
60+
- skip:
61+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
62+
version: all
63+
5464
- do:
5565
cat.ml_data_frame_analytics:
5666
id: dfa-outlier-detection-job
@@ -62,6 +72,10 @@ setup:
6272
6373
---
6474
"Test cat data frame analytics all jobs with header":
75+
- skip:
76+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
77+
version: all
78+
6579
- do:
6680
cat.ml_data_frame_analytics:
6781
v: true
@@ -74,6 +88,10 @@ setup:
7488
7589
---
7690
"Test cat data frame analytics all jobs with header and column selection":
91+
- skip:
92+
reason: "https://github.com/elastic/elasticsearch/pull/63542"
93+
version: all
94+
7795
- do:
7896
cat.ml_data_frame_analytics:
7997
v: true

0 commit comments

Comments
 (0)