Rerun flaky tests 3 times

This can help to reduce time spent on rebuilds caused by flaky tests.

Change-Id: I8f7831e470fd8aa065f0b8728f62f39734d05016
This commit is contained in:
Matthias Sohn 2023-03-07 16:37:45 +01:00
parent 8dcb02140d
commit c6b979444b
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ build:remote17 --tool_java_runtime_version=remotejdk_17
test --build_tests_only
test --test_output=errors
test --flaky_test_attempts=3
import %workspace%/tools/remote-bazelrc

View File

@ -282,6 +282,7 @@
<forkCount>${test-fork-count}</forkCount>
<reuseForks>true</reuseForks>
<argLine>@{argLine}</argLine>
<rerunFailingTestsCount>3</rerunFailingTestsCount>
</configuration>
</plugin>