From c6b979444b671f013f630241f84fba7983b540b6 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Tue, 7 Mar 2023 16:37:45 +0100 Subject: [PATCH] Rerun flaky tests 3 times This can help to reduce time spent on rebuilds caused by flaky tests. Change-Id: I8f7831e470fd8aa065f0b8728f62f39734d05016 --- .bazelrc | 1 + pom.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/.bazelrc b/.bazelrc index 8c3266121..e6c3dc6ab 100644 --- a/.bazelrc +++ b/.bazelrc @@ -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 diff --git a/pom.xml b/pom.xml index 0ea089eab..4ed91ffc4 100644 --- a/pom.xml +++ b/pom.xml @@ -282,6 +282,7 @@ ${test-fork-count} true @{argLine} + 3