From bd296ebe621698fe026fbc60db549a3e476749d3 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Wed, 14 Apr 2021 15:54:59 +0200 Subject: [PATCH] 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 --- .bazelrc | 4 ++++ 1 file changed, 4 insertions(+) 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