Skip to content

Commit

Permalink
Mute tests failing on Debian 8 due to memory reporting (elastic#66648)
Browse files Browse the repository at this point in the history
See elastic#66629 for details
  • Loading branch information
gwbrown committed Dec 18, 2020
1 parent 1748ef6 commit 53f814b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ This is a possible response:
// TESTRESPONSE[s/"build_hash": "99a07c016d5a73"/"build_hash": "$body.native_code.build_hash"/]
// TESTRESPONSE[s/"effective_max_model_memory_limit": "28961mb"/"effective_max_model_memory_limit": "$body.limits.effective_max_model_memory_limit"/]
// TESTRESPONSE[s/"total_ml_memory": "86883mb"/"total_ml_memory": "$body.limits.total_ml_memory"/]
// TESTRESPONSE[skip:"AwaitsFix https://github.com/elastic/elasticsearch/issues/66629"]
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
"cluster stats test":
- skip:
version: "all"
reason: "https://github.com/elastic/elasticsearch/issues/66629"

- do:
cluster.stats: {}

Expand Down Expand Up @@ -33,8 +37,10 @@
---
"get cluster stats returns cluster_uuid at the top level":
- skip:
version: " - 6.99.99"
reason: "cluster stats including cluster_uuid at the top level is new in v6.5.0 and higher"
version: "all"
reason: "https://github.com/elastic/elasticsearch/issues/66629"
#version: " - 6.99.99"
#reason: "cluster stats including cluster_uuid at the top level is new in v6.5.0 and higher"

- do:
cluster.stats: {}
Expand Down
23 changes: 12 additions & 11 deletions server/src/test/java/org/elasticsearch/monitor/os/OsProbeTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@

package org.elasticsearch.monitor.os;

import org.apache.lucene.util.Constants;
import org.elasticsearch.test.ESTestCase;

import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;

import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.both;
Expand All @@ -40,6 +29,17 @@
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.Matchers.notNullValue;

import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.stream.Collectors;

import org.apache.lucene.util.Constants;
import org.elasticsearch.test.ESTestCase;

public class OsProbeTests extends ESTestCase {

public void testOsInfo() throws IOException {
Expand Down Expand Up @@ -84,6 +84,7 @@ List<String> readOsRelease() throws IOException {
assertThat(info.getAvailableProcessors(), equalTo(Runtime.getRuntime().availableProcessors()));
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/66629")
public void testOsStats() {
final OsProbe osProbe = new OsProbe();
OsStats stats = osProbe.osStats();
Expand Down

0 comments on commit 53f814b

Please sign in to comment.