Skip to content

Commit

Permalink
[Backport 2.x] Retry flaky tests (#450)
Browse files Browse the repository at this point in the history
Retry flaky tests (#449)

* Retry flaky tests



* Addressed PR Comments



---------


(cherry picked from commit 03cdb99)

Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 658e2c3 commit 01a56c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ buildscript {

plugins {
id "de.undercouch.download" version "5.5.0"
id "org.gradle.test-retry" version "1.5.4" apply false
}

apply plugin: 'java'
Expand Down Expand Up @@ -404,6 +405,19 @@ task integTestRemote(type: RestIntegTestTask) {
}
}


// test retry configuration
subprojects {
apply plugin: "org.gradle.test-retry"
tasks.withType(RestIntegTestTask).configureEach {
retry {
failOnPassedAfterRetry = false
maxRetries = 3
maxFailures = 5
}
}
}

// Automatically sets up the integration test cluster locally
run {
doFirst {
Expand Down

0 comments on commit 01a56c1

Please sign in to comment.