Skip to content

Commit 9cb2ab3

Browse files
authored
Mute multiple tests on Windows (7.3) (#44677)
* Mute failing test tracked in #44552 * mute EvilSecurityTests tracking in #44558 * Mute failing ForecastIT test on windows Tracking in #44609 * mute BasicRenormalizationIT.testDefaultRenormalization tracked in #44613 * mute x-pack internal cluster test windows tracking #44610 * Mute failure unconfigured node name * fix mute testDefaultRenormalization * Increase busyWait timeout windows is slow * Mute JvmErgonomicsTests on windows Tracking #44669 * mute SharedClusterSnapshotRestoreIT testParallelRestoreOperationsFromSingleSnapshot Tracking #44671 * Mute NodeTests on Windows Tracking #44256
1 parent 2c6debc commit 9cb2ab3

File tree

10 files changed

+32
-1
lines changed

10 files changed

+32
-1
lines changed

distribution/tools/launchers/src/test/java/org/elasticsearch/tools/launchers/JvmErgonomicsTests.java

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package org.elasticsearch.tools.launchers;
2121

22+
import org.junit.Before;
23+
2224
import java.io.IOException;
2325
import java.util.Arrays;
2426
import java.util.Collections;
@@ -41,6 +43,13 @@
4143

4244
public class JvmErgonomicsTests extends LaunchersTestCase {
4345

46+
@Before
47+
public void setUp() {
48+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44669",
49+
System.getProperty("os.name").contains("Win")
50+
);
51+
}
52+
4453
public void testExtractValidHeapSizeUsingXmx() throws InterruptedException, IOException {
4554
assertThat(
4655
JvmErgonomics.extractHeapSize(JvmErgonomics.finalJvmOptions(Collections.singletonList("-Xmx2g"))),

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpProcessorFactoryTests.java

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public class GeoIpProcessorFactoryTests extends ESTestCase {
5555

5656
@BeforeClass
5757
public static void loadDatabaseReaders() throws IOException {
58+
// there are still problems on windows
59+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44552", Constants.WINDOWS);
60+
5861
// Skip setup because Windows cannot cleanup these files properly. The reason is that they are using
5962
// a MappedByteBuffer which will keep the file mappings active until it is garbage-collected. As a consequence,
6063
// the corresponding file appears to be still in use and Windows cannot delete it.

qa/evil-tests/src/test/java/org/elasticsearch/bootstrap/EvilSecurityTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public void testEnvironmentPaths() throws Exception {
136136
}
137137

138138
public void testDuplicateDataPaths() throws IOException {
139+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44558", Constants.WINDOWS);
139140
final Path path = createTempDir();
140141
final Path home = path.resolve("home");
141142
final Path data = path.resolve("data");

qa/unconfigured-node-name/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.OS
2+
13
/*
24
* Licensed to Elasticsearch under one or more contributor
35
* license agreements. See the NOTICE file distributed with
@@ -28,4 +30,6 @@ testClusters.integTest {
2830
integTest.runner {
2931
nonInputProperties.systemProperty 'tests.logfile',
3032
"${ -> testClusters.integTest.singleNode().getServerLog() }"
33+
// https://github.com/elastic/elasticsearch/issues/44656
34+
onlyIf { OS.WINDOWS.equals(OS.current()) == false }
3135
}

server/src/test/java/org/elasticsearch/node/NodeTests.java

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

21+
import org.apache.lucene.util.Constants;
2122
import org.apache.lucene.util.LuceneTestCase;
2223
import org.elasticsearch.bootstrap.BootstrapCheck;
2324
import org.elasticsearch.bootstrap.BootstrapContext;
@@ -149,6 +150,7 @@ private static Settings.Builder baseSettings() {
149150
}
150151

151152
public void testCloseOnOutstandingTask() throws Exception {
153+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44256", Constants.WINDOWS);
152154
Node node = new MockNode(baseSettings().build(), basePlugins());
153155
node.start();
154156
ThreadPool threadpool = node.injector().getInstance(ThreadPool.class);

server/src/test/java/org/elasticsearch/persistent/TestPersistentTasksPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected void nodeOperation(AllocatedPersistentTask task, TestParams params, Pe
338338
assertTrue(awaitBusy(() -> testTask.isCancelled() ||
339339
testTask.getOperation() != null ||
340340
clusterService.lifecycleState() != Lifecycle.State.STARTED, // speedup finishing on closed nodes
341-
30, TimeUnit.SECONDS)); // This can take a while during large cluster restart
341+
45, TimeUnit.SECONDS)); // This can take a while during large cluster restart
342342
if (clusterService.lifecycleState() != Lifecycle.State.STARTED) {
343343
return;
344344
}

server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package org.elasticsearch.snapshots;
2121

22+
import org.apache.lucene.util.Constants;
2223
import org.apache.lucene.util.SetOnce;
2324
import org.elasticsearch.ElasticsearchException;
2425
import org.elasticsearch.ExceptionsHelper;
@@ -3394,6 +3395,7 @@ public void testSnapshotSucceedsAfterSnapshotFailure() throws Exception {
33943395
}
33953396

33963397
public void testSnapshotStatusOnFailedIndex() throws Exception {
3398+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44671", Constants.WINDOWS);
33973399
logger.info("--> creating repository");
33983400
final Path repoPath = randomRepoPath();
33993401
final Client client = client();

x-pack/plugin/ccr/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.OS
2+
13
evaluationDependsOn(xpackModule('core'))
24

35
apply plugin: 'elasticsearch.esplugin'
@@ -22,6 +24,8 @@ task internalClusterTestNoSecurityManager(type: Test) {
2224
include noSecurityManagerITClasses
2325
systemProperty 'es.set.netty.runtime.available.processors', 'false'
2426
systemProperty 'tests.security.manager', 'false'
27+
// Disable tests on windows https://github.com/elastic/elasticsearch/issues/44610
28+
onlyIf { OS.WINDOWS.equals(OS.current()) == false }
2529
}
2630

2731
// Instead we create a separate task to run the
@@ -34,6 +38,8 @@ task internalClusterTest(type: Test) {
3438
include '**/*IT.class'
3539
exclude noSecurityManagerITClasses
3640
systemProperty 'es.set.netty.runtime.available.processors', 'false'
41+
// Disable tests on windows https://github.com/elastic/elasticsearch/issues/44610
42+
onlyIf { OS.WINDOWS.equals(OS.current()) == false }
3743
}
3844

3945
check.dependsOn internalClusterTest

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

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
package org.elasticsearch.xpack.ml.integration;
77

8+
import org.apache.lucene.util.Constants;
89
import org.elasticsearch.common.unit.TimeValue;
910
import org.elasticsearch.xpack.core.ml.action.GetRecordsAction;
1011
import org.elasticsearch.xpack.core.ml.job.config.AnalysisConfig;
@@ -32,6 +33,7 @@ public void tearDownData() {
3233
}
3334

3435
public void testDefaultRenormalization() throws Exception {
36+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44613", Constants.WINDOWS);
3537
String jobId = "basic-renormalization-it-test-default-renormalization-job";
3638
createAndRunJob(jobId, null);
3739

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

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
package org.elasticsearch.xpack.ml.integration;
77

8+
import org.apache.lucene.util.Constants;
89
import org.elasticsearch.ElasticsearchException;
910
import org.elasticsearch.ElasticsearchStatusException;
1011
import org.elasticsearch.action.support.master.AcknowledgedResponse;
@@ -211,6 +212,7 @@ public void testMemoryStatus() throws Exception {
211212
}
212213

213214
public void testOverflowToDisk() throws Exception {
215+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44609", Constants.WINDOWS);
214216
Detector.Builder detector = new Detector.Builder("mean", "value");
215217
detector.setByFieldName("clientIP");
216218

0 commit comments

Comments
 (0)