From fc1fd797b4ee192d1b4c83dfbfffbd18963582ff Mon Sep 17 00:00:00 2001 From: jjudd Date: Thu, 14 Nov 2024 22:26:50 -0700 Subject: [PATCH] Workaround the sandbox is missing files bug For some reason multiplex sandboxing seems to have issues with files going missing. It's been happening for a while, but intermittently. It got much worse recently. Not sure if this is a rule set bug or a Bazel bug. Regardless, disabling multiplex sandboxing fixes it. --- .bazelrc_shared | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bazelrc_shared b/.bazelrc_shared index dfdbc10a..03733dd0 100644 --- a/.bazelrc_shared +++ b/.bazelrc_shared @@ -22,7 +22,10 @@ build --strategy=worker,sandboxed,local build --worker_max_instances=4 build --worker_sandboxing -build --experimental_worker_multiplex_sandboxing +# Disable multiplex sandboxing because there is a bug that causes files which +# should be in the sandbox to not be. Not sure if this is a Bazel bug or a rule +# set bug. Something we need to deal with either way. +#build --experimental_worker_multiplex_sandboxing build --experimental_worker_cancellation build --verbose_failures