Skip to content

Commit 47566e4

Browse files
committed
Adjust strategy flags for bazel
With this adjustment, more actions will use the sandbox, which may help with an error relating to a missing `rabbit.hrl` that could occur when building the cli or running its tests Since this adjusts the user-template.bazelrc, everyone should likely update their own user.bazelrc accordingly
1 parent 552775e commit 47566e4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.bazelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ build:rbe --config=buildbuddy
3838

3939
build:rbe --remote_executor=grpcs://remote.buildbuddy.io
4040

41-
build:rbe --spawn_strategy=remote,local
42-
build:rbe --test_strategy=""
41+
build:rbe --strategy=TestRunner=remote,worker,sandboxed,local
4342
build:rbe --jobs=50
4443

4544
build:rbe --crosstool_top=@rbe//cc:toolchain

user-template.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rabbitmqctl wait shells out to 'ps', which is broken in the bazel macOS
22
# sandbox (https://github.com/bazelbuild/bazel/issues/7448)
3-
# adding "--spawn_strategy=local" to the invocation is a workaround
4-
build --spawn_strategy=local
3+
# adding "--strategy=TestRunner=local" to the invocation is a workaround
4+
build --strategy=TestRunner=local
55

66
# --experimental_strict_action_env breaks memory size detection on macOS,
77
# so turn it off for local runs

0 commit comments

Comments
 (0)