Skip to content

Commit 7fb5c10

Browse files
Add CI profile to retry flaky tests
- Automatically retry failing tests up to 2 times when running in CI - Activated by CI environment variable (set by GitHub Actions) - Addresses flaky multipart upload test failures due to transient network issues
1 parent 371e58c commit 7fb5c10

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,24 @@
348348
</plugins>
349349
</build>
350350
</profile>
351+
<profile>
352+
<id>ci</id>
353+
<activation>
354+
<property>
355+
<name>env.CI</name>
356+
</property>
357+
</activation>
358+
<build>
359+
<plugins>
360+
<plugin>
361+
<groupId>org.apache.maven.plugins</groupId>
362+
<artifactId>maven-surefire-plugin</artifactId>
363+
<configuration>
364+
<rerunFailingTestsCount>2</rerunFailingTestsCount>
365+
</configuration>
366+
</plugin>
367+
</plugins>
368+
</build>
369+
</profile>
351370
</profiles>
352371
</project>

0 commit comments

Comments
 (0)