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: Ic8b487c4f2e1c1b2a5614ce45a02bad3af20e4f3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/238212
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Austin Foxley <afoxley@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/.bazelrc b/.bazelrc
index 4507f9c..f81c0a7 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -110,6 +110,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.