Skip to content

Commit

Permalink
Attempt to prevent CI from failing when running in parallel (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c authored Jan 4, 2023
1 parent feee060 commit fb9a942
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,18 @@ build --explicit_java_test_deps
test --verbose_failures
test --test_output=errors

# Every JVM creates a temporary performance instrumentation file in
# /tmp/hsperfdata_$USERNAME/$PID. When we use sandboxing, we use PID
# namespaces, which means that the PIDs are virtualized and all
# running JVMs believe they are PID 2.
#
# This means that they all open/ftruncate/mmap the same file and that
# gives you SIGBUS eventually, because "It tries to read an address
# that no longer exists from an mmap'd file".
#
# https://github.com/bazelbuild/bazel/issues/3236#issuecomment-310776024

build --sandbox_tmpfs_path=/tmp

# Allows the examples to extend the default bazelrc
try-import %workspace%/.bazelrc.example

0 comments on commit fb9a942

Please sign in to comment.