This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new f265f6e Flag to disable test reruns from the commandline
f265f6e is described below
commit f265f6e5c05ece3db8d1e2f9322f8d68ddeefa74
Author: Ivan Kelly <[email protected]>
AuthorDate: Fri Jul 27 10:59:07 2018 +0200
Flag to disable test reruns from the commandline
Useful when trying to hunt down flakes.
Author: Ivan Kelly <[email protected]>
Reviewers: Enrico Olivelli <[email protected]>, Sijie Guo
<[email protected]>
This closes #1570 from ivankelly/retryFlag
---
bookkeeper-server/pom.xml | 5 -----
pom.xml | 4 +++-
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/bookkeeper-server/pom.xml b/bookkeeper-server/pom.xml
index 89f2881..4523f15 100644
--- a/bookkeeper-server/pom.xml
+++ b/bookkeeper-server/pom.xml
@@ -188,11 +188,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
- <argLine>-Xmx2G -Djava.net.preferIPv4Stack=true</argLine>
-
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
- <reuseForks>false</reuseForks>
- <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
- <rerunFailingTestsCount>2</rerunFailingTestsCount>
<properties>
<property>
<name>listener</name>
diff --git a/pom.xml b/pom.xml
index 45d876f..6ff75b2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -104,6 +104,8 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<javac.target>1.8</javac.target>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <testRetryCount>2</testRetryCount>
+
<!-- dependencies -->
<arquillian-cube.version>1.15.1</arquillian-cube.version>
<arquillian-junit.version>1.1.14.Final</arquillian-junit.version>
@@ -757,7 +759,7 @@
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<reuseForks>false</reuseForks>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
- <rerunFailingTestsCount>2</rerunFailingTestsCount>
+ <rerunFailingTestsCount>${testRetryCount}</rerunFailingTestsCount>
</configuration>
</plugin>
<plugin>