Skip to content

Commit 3febe78

Browse files
authored
Mute multiple tests on Windows (master) (#44675)
* Mute failing test tracked in #44552 * mute EvilSecurityTests tracking in #44558 * Fix line endings in ESJsonLayoutTests * Mute failing ForecastIT test on windows Tracking in #44609 * mute AutoFollowIT.testConflictingPatterns tracking in #44610 * mute BasicRenormalizationIT.testDefaultRenormalization tracked in #44613 * Revert "mute AutoFollowIT.testConflictingPatterns" This reverts commit 012de08. * 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 35d4a9d commit 3febe78

File tree

11 files changed

+35
-4
lines changed

11 files changed

+35
-4
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;
@@ -40,6 +42,13 @@
4042

4143
public class JvmErgonomicsTests extends LaunchersTestCase {
4244

45+
@Before
46+
public void setUp() {
47+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44669",
48+
System.getProperty("os.name").contains("Win")
49+
);
50+
}
51+
4352
public void testExtractValidHeapSizeUsingXmx() throws InterruptedException, IOException {
4453
assertThat(
4554
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/logging-config/src/test/java/org/elasticsearch/common/logging/ESJsonLayoutTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testLayout() {
5050
"\"node.name\": \"%node_name\", " +
5151
"\"message\": \"%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}\"" +
5252
"%notEmpty{, %node_and_cluster_id }" +
53-
"%exceptionAsJson }\n"));
53+
"%exceptionAsJson }" + System.lineSeparator()));
5454
}
5555

5656
public void testLayoutWithAdditionalFields() {
@@ -72,7 +72,7 @@ public void testLayoutWithAdditionalFields() {
7272
"%notEmpty{, \"x-opaque-id\": \"%ESMessageField{x-opaque-id}\"}" +
7373
"%notEmpty{, \"someOtherField\": \"%ESMessageField{someOtherField}\"}" +
7474
"%notEmpty{, %node_and_cluster_id }" +
75-
"%exceptionAsJson }\n"));
75+
"%exceptionAsJson }" + System.lineSeparator()));
7676
}
7777

7878
public void testLayoutWithAdditionalFieldOverride() {
@@ -92,6 +92,6 @@ public void testLayoutWithAdditionalFieldOverride() {
9292
"\"node.name\": \"%node_name\"" +
9393
"%notEmpty{, \"message\": \"%ESMessageField{message}\"}" +
9494
"%notEmpty{, %node_and_cluster_id }" +
95-
"%exceptionAsJson }\n"));
95+
"%exceptionAsJson }" + System.lineSeparator()));
9696
}
9797
}

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
@@ -337,7 +337,7 @@ protected void nodeOperation(AllocatedPersistentTask task, TestParams params, Pe
337337
assertTrue(awaitBusy(() -> testTask.isCancelled() ||
338338
testTask.getOperation() != null ||
339339
clusterService.lifecycleState() != Lifecycle.State.STARTED, // speedup finishing on closed nodes
340-
30, TimeUnit.SECONDS)); // This can take a while during large cluster restart
340+
45, TimeUnit.SECONDS)); // This can take a while during large cluster restart
341341
if (clusterService.lifecycleState() != Lifecycle.State.STARTED) {
342342
return;
343343
}

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;
@@ -3513,6 +3514,7 @@ public void testSnapshotSucceedsAfterSnapshotFailure() throws Exception {
35133514
}
35143515

35153516
public void testSnapshotStatusOnFailedIndex() throws Exception {
3517+
assumeFalse("https://github.com/elastic/elasticsearch/issues/44671", Constants.WINDOWS);
35163518
logger.info("--> creating repository");
35173519
final Path repoPath = randomRepoPath();
35183520
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)