Remove --experimental_sandbox_base again, as it might have caused issues like this:
mkdir /dev/shm/bazel-sandbox.bd5ff0a8039e94d7eb788e25e959d463/1802295542461631827/execroot/com_github_bazelbuild_buildtools/tmp/go-build639577181: read-only file system
and
mktemp: failed to create directory via template '/dev/shm/bazel-sandbox.b40f3a51a58309ed233ec8b22efc089e/1766770267584410206/execroot/gerrit/tmp/tmp.XXXXXXXXXX': Read-only file system
@@ -73,13 +73,6 @@ def call(config = [:]) {
"-k"
] + config.test_opts
if (getPlatformFromNodeName(config.node_label) == "linux") {
- if (config.node_label.startsWith("ubuntu_14.04")) {
- // Ubuntu 14.04 has /run/shm.
- build_options << "--experimental_sandbox_base=/run/shm"
- } else {
- // Ubuntu 16.04 has /dev/shm.
- build_options << "--experimental_sandbox_base=/dev/shm"
- }
build_options << "--sandbox_tmpfs_path=/tmp"
}
machine(config.node_label) {
