Skip to content

Commit 2d19530

Browse files
Explicitly adds retry logic
Signed-off-by: Darshit Chanpura <[email protected]>
1 parent df217ee commit 2d19530

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ jobs:
199199
- name: Run SampleResourcePlugin Integration Tests
200200
uses: gradle/gradle-build-action@v3
201201
with:
202-
cache-disabled: true
203202
arguments: |
204203
:opensearch-sample-resource-plugin:integrationTest -Dbuild.snapshot=false
205204

sample-resource-plugin/build.gradle

+9-6
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ sourceSets {
9595

9696
tasks.register("integrationTest", Test) {
9797
doFirst {
98-
if (System.getenv('DISABLE_RETRY') != 'true') {
99-
retry {
100-
failOnPassedAfterRetry = false
101-
maxRetries = 2
102-
maxFailures = 5
103-
}
98+
retry {
99+
failOnPassedAfterRetry = false
100+
maxRetries = 5
101+
maxFailures = 5
104102
}
105103
}
106104
description = 'Run integration tests for the subproject.'
@@ -115,3 +113,8 @@ tasks.register("integrationTest", Test) {
115113
tasks.named("integrationTest").configure {
116114
dependsOn rootProject.tasks.named("compileIntegrationTestJava")
117115
}
116+
117+
tasks.named("integrationTest") {
118+
minHeapSize = "512m"
119+
maxHeapSize = "2g"
120+
}

0 commit comments

Comments
 (0)