You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/05/16 16:04:27 UTC

[GitHub] merlimat closed pull request #1789: Ability to disable test retries from commandline

merlimat closed pull request #1789: Ability to disable test retries from commandline
URL: https://github.com/apache/incubator-pulsar/pull/1789
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java b/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java
index c4caa04b99..d94e1e25a5 100644
--- a/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java
+++ b/buildtools/src/main/java/org/apache/pulsar/tests/RetryAnalyzer.java
@@ -26,7 +26,7 @@
     private int count = 0;
 
     // Only try again once
-    private static final int MAX_RETRIES = 1;
+    private static final int MAX_RETRIES = Integer.valueOf(System.getProperty("testRetryCount", "1"));
 
     @Override
     public boolean retry(ITestResult result) {
diff --git a/pom.xml b/pom.xml
index e62168a358..814ce614f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -117,6 +117,7 @@ flexible messaging model and an intuitive client API.</description>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <redirectTestOutputToFile>true</redirectTestOutputToFile>
     <testRealAWS>false</testRealAWS>
+    <testRetryCount>1</testRetryCount>
 
     <bookkeeper.version>4.7.0</bookkeeper.version>
     <zookeeper.version>3.4.10</zookeeper.version>
@@ -837,6 +838,10 @@ flexible messaging model and an intuitive client API.</description>
               <name>testRealAWS</name>
               <value>${testRealAWS}</value>
             </property>
+            <property>
+              <name>testRetryCount</name>
+              <value>${testRetryCount}</value>
+            </property>
             <property>
               <name>listener</name>
               <value>org.apache.pulsar.tests.PulsarTestListener,org.apache.pulsar.tests.AnnotationListener</value>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services