Skip to content

Commit 6f5bbcc

Browse files
author
David Roberts
authored
[ML] Mute ForecastIT.testOverflowToDisk in EAR builds (#60040)
Due to #58806
1 parent f12f57c commit 6f5bbcc

File tree

1 file changed

+8
-4
lines changed
  • x-pack/plugin/ml/qa/native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration

1 file changed

+8
-4
lines changed

x-pack/plugin/ml/qa/native-multi-node-tests/src/test/java/org/elasticsearch/xpack/ml/integration/ForecastIT.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ public void testMemoryStatus() throws Exception {
215215

216216
public void testOverflowToDisk() throws Exception {
217217
assumeFalse("https://github.com/elastic/elasticsearch/issues/44609", Constants.WINDOWS);
218+
// This test repeatedly fails in encryption-at-rest (EAR) builds, and
219+
// the only way to detect such a build appears to be the CI job name
220+
assumeFalse("https://github.com/elastic/elasticsearch/issues/58806",
221+
System.getenv().getOrDefault("JOB_NAME", "not a CI build").contains("EAR"));
218222
Detector.Builder detector = new Detector.Builder("mean", "value");
219223
detector.setByFieldName("clientIP");
220224

@@ -393,7 +397,7 @@ public void testForceStopSetsForecastToFailed() throws Exception {
393397
job.setAnalysisConfig(analysisConfig);
394398
job.setDataDescription(dataDescription);
395399
String jobId = job.getId();
396-
400+
397401
registerJob(job);
398402
putJob(job);
399403
openJob(job.getId());
@@ -409,7 +413,7 @@ public void testForceStopSetsForecastToFailed() throws Exception {
409413

410414
postData(job.getId(), data.stream().collect(Collectors.joining()));
411415
flushJob(job.getId(), false);
412-
416+
413417
String forecastId = forecast(jobId, TimeValue.timeValueDays(1000), TimeValue.ZERO);
414418
waitForecastStatus(jobId, forecastId, ForecastRequestStats.ForecastRequestStatus.values());
415419

@@ -453,7 +457,7 @@ public void testForecastWithHigherMemoryUse() throws Exception {
453457

454458
postData(job.getId(), data.stream().collect(Collectors.joining()));
455459
flushJob(job.getId(), false);
456-
460+
457461
// Now we can start doing forecast requests
458462

459463
String forecastId = forecast(job.getId(),
@@ -472,7 +476,7 @@ public void testForecastWithHigherMemoryUse() throws Exception {
472476
assertThat(forecastDuration1HourNoExpiry.getRecordCount(), equalTo(1L));
473477
assertThat(forecasts.size(), equalTo(1));
474478
}
475-
479+
476480
private void createDataWithLotsOfClientIps(TimeValue bucketSpan, Job.Builder job) {
477481
long now = Instant.now().getEpochSecond();
478482
long timestamp = now - 15 * bucketSpan.seconds();

0 commit comments

Comments
 (0)