kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject [kafka] branch trunk updated: MINOR: allow retries for unitTest and integrationTest runs (#8323)
Date Sat, 21 Mar 2020 16:10:04 GMT
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 <lucas@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 <ismael@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 {


Mime
View raw message