Skip to content

Commit

Permalink
Fix flaky tests (#556)
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi authored Jan 31, 2024
1 parent 761c9bb commit b321e4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
su `id -un 1000` -c "./gradlew build && ./gradlew publishToMavenLocal"
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
5 changes: 5 additions & 0 deletions spi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
id 'jacoco'
id 'maven-publish'
id 'signing'
id "org.gradle.test-retry" version "1.5.8"
}

apply plugin: 'opensearch.java'
Expand Down Expand Up @@ -70,6 +71,10 @@ shadowJar {
}

test {
retry {
failOnPassedAfterRetry = false
maxRetries = 5
}
doFirst {
// reverse operation of https://github.com/elastic/elasticsearch/blob/7.6/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy#L736-L743
// to fix the classpath for unit tests
Expand Down

0 comments on commit b321e4a

Please sign in to comment.