You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2020/03/21 16:10:04 UTC

[kafka] branch trunk updated: MINOR: allow retries for unitTest and integrationTest runs (#8323)

This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c16938f  MINOR: allow retries for unitTest and integrationTest runs (#8323)
c16938f is described below

commit c16938fd960fbc9e209b19b2abb874683a5aedcb
Author: Lucas Bradstreet <lu...@confluent.io>
AuthorDate: Sat Mar 21 09:09:29 2020 -0700

    MINOR: allow retries for unitTest and integrationTest runs (#8323)
    
    We will currently retry if you run gradle test, but not unitTest or
    integrationTest, which are used directly in Jenkins. This means that we
    have not been achieving the expected retry behavior.
    
    Reviewers: Ismael Juma <is...@juma.me.uk>
---
 build.gradle | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/build.gradle b/build.gradle
index 2935b48..aa8bf97 100644
--- a/build.gradle
+++ b/build.gradle
@@ -324,6 +324,10 @@ subprojects {
       includeCategories 'org.apache.kafka.test.IntegrationTest'
     }
 
+    retry {
+      maxRetries = userMaxTestRetries
+      maxFailures = userMaxTestRetryFailures
+    }
   }
 
   task unitTest(type: Test, dependsOn: compileJava) {
@@ -344,6 +348,11 @@ subprojects {
         excludeCategories 'org.apache.kafka.test.IntegrationTest'
       }
     }
+
+    retry {
+      maxRetries = userMaxTestRetries
+      maxFailures = userMaxTestRetryFailures
+    }
   }
 
   jar {