File tree Expand file tree Collapse file tree 1 file changed +19
-54
lines changed Expand file tree Collapse file tree 1 file changed +19
-54
lines changed Original file line number Diff line number Diff line change @@ -142,51 +142,6 @@ jobs:
142142 - 3
143143 - 4
144144 - 5
145- - 6
146- - 7
147- - 8
148- - 9
149- - 10
150- - 11
151- - 12
152- - 13
153- - 14
154- - 15
155- - 16
156- - 17
157- - 18
158- - 19
159- - 20
160- - 21
161- - 22
162- - 23
163- - 24
164- - 25
165- - 26
166- - 27
167- - 28
168- - 29
169- - 30
170- - 31
171- - 32
172- - 33
173- - 34
174- - 35
175- - 36
176- - 37
177- - 38
178- - 39
179- - 40
180- - 41
181- - 42
182- - 43
183- - 44
184- - 45
185- - 46
186- - 47
187- - 48
188- - 49
189- - 50
190145 fail-fast : false
191146 steps :
192147 - name : Support long paths
@@ -218,12 +173,22 @@ jobs:
218173
219174 - name : Test
220175 # spotless is checked separately since it's a common source of failure
221- run : >
222- ./gradlew
223- check
224- -x spotlessCheck
225- -PtestJavaVersion=${{ matrix.test-java-version }}
226- -PtestJavaVM=${{ matrix.vm }}
227- "-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}"
228- "-Porg.gradle.java.installations.auto-download=false"
229- ${{ inputs.no-build-cache && ' --no-build-cache' || '' }}
176+ # running in a loop 1..50 to identify flaky test behavior
177+ run : |
178+ for i in {1..50}; do
179+ echo "=== Test run $i/50 ==="
180+ ./gradlew \
181+ test \
182+ -PtestJavaVersion=${{ matrix.test-java-version }} \
183+ -PtestJavaVM=${{ matrix.vm }} \
184+ "-Porg.gradle.java.installations.paths=${{ steps.setup-test-java.outputs.path }}" \
185+ "-Porg.gradle.java.installations.auto-download=false" \
186+ --rerun-tasks
187+ if [ $? -eq 0 ]; then
188+ echo "Test run $i completed successfully"
189+ else
190+ echo "Test run $i failed"
191+ exit 1
192+ fi
193+ done
194+ echo "All 50 test runs completed successfully"
You can’t perform that action at this time.
0 commit comments