bazel: Retry build on remote cache evictions
The default value of this flag is 0. Set this to 5, in case more than
one evicted artifact is stumbled upon.
Bug: 369413203
Change-Id: I104ec8741eb9f5435aa9352810ac499ed6701285
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/238177
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Austin Foxley <afoxley@google.com>
diff --git a/.bazelrc b/.bazelrc
index c65812e..94ae30b 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -109,6 +109,7 @@
common:remote_cache --bes_instance_name=pigweed-rbe-open
common:remote_cache --bes_results_url="https://source.cloud.google.com/results/invocations/"
common:remote_cache --bes_timeout=600s
+common:remote_cache --experimental_remote_cache_eviction_retries=5
common:remote_cache --google_default_credentials=true
# Required to use buildeventservice on Bazel 8+.
# TODO: b/345556899 -- Remove this flag when no longer required.