Skip to content

Commit

Permalink
[ML] Mute ForecastIT.testOverflowToDisk in EAR builds (#60040)
Browse files Browse the repository at this point in the history
Due to #58806
  • Loading branch information
droberts195 committed Jul 22, 2020
1 parent 624450d commit 4b13352
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ public void testMemoryStatus() throws Exception {

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

Expand Down Expand Up @@ -391,7 +395,7 @@ public void testForceStopSetsForecastToFailed() throws Exception {
job.setAnalysisConfig(analysisConfig);
job.setDataDescription(dataDescription);
String jobId = job.getId();

registerJob(job);
putJob(job);
openJob(job.getId());
Expand All @@ -407,7 +411,7 @@ public void testForceStopSetsForecastToFailed() throws Exception {

postData(job.getId(), data.stream().collect(Collectors.joining()));
flushJob(job.getId(), false);

String forecastId = forecast(jobId, TimeValue.timeValueDays(1000), TimeValue.ZERO);
waitForecastStatus(jobId, forecastId, ForecastRequestStats.ForecastRequestStatus.values());

Expand Down

0 comments on commit 4b13352

Please sign in to comment.