Skip to content

Commit

Permalink
Retry flaky tests (opensearch-project#449)
Browse files Browse the repository at this point in the history
* Retry flaky tests

Signed-off-by: Owais Kazi <[email protected]>

* Addressed PR Comments

Signed-off-by: Owais Kazi <[email protected]>

---------

Signed-off-by: Owais Kazi <[email protected]>
  • Loading branch information
owaiskazi19 authored Jan 25, 2024
1 parent b84e9aa commit 03cdb99
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 @@ -405,6 +406,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 03cdb99

Please sign in to comment.