summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2021-04-14 15:54:59 +0200
committerDavid Ostrovsky <david@ostrovsky.org>2021-04-14 16:38:20 +0200
commitbd296ebe621698fe026fbc60db549a3e476749d3 (patch)
treecfa96ec09732ce2b7559d9fdca2cf1222c2c699c
parent83fbbbbeff004a89ddb970e3e035159849b639dc (diff)
Bazel: Disable worker multiplexer to avoid sporadic build failures
Bazel 4.0.0 has a known worker multiplexer bug, that causes Bazel to crash spordically. The bug was fixed: [1], but the fix wasn't released yet. See this issue: [2] for more details. [1] https://github.com/bazelbuild/bazel/commit/a607d9dc70ac67f1aa2c32ca954177f9c77860be [2] https://github.com/bazelbuild/bazel/issues/13333 Change-Id: I2265c4ed7128a4b6ed259f44c5594ab717de58b0
-rw-r--r--.bazelrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc
index bf3aa6c3b0..3556b82a5d 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -11,6 +11,10 @@ build --java_toolchain //tools:error_prone_warnings_toolchain
# this flag here once flipped in Bazel again.
build --incompatible_strict_action_env
+# Workaround Bazel worker crash (remove after upgrading to 4.1.0)
+# https://github.com/bazelbuild/bazel/issues/13333
+build --experimental_worker_multiplex=false
+
test --build_tests_only
test --test_output=errors