Skip to content

Commit 6fff5d5

Browse files
HoloRinmergify[bot]
authored andcommitted
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 (cherry picked from commit 47566e4) (cherry picked from commit 77664da)
1 parent 513fb6b commit 6fff5d5

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
@@ -36,8 +36,7 @@ build:rbe --config=buildbuddy
3636

3737
build:rbe --remote_executor=grpcs://remote.buildbuddy.io
3838

39-
build:rbe --spawn_strategy=remote,local
40-
build:rbe --test_strategy=""
39+
build:rbe --strategy=TestRunner=remote,worker,sandboxed,local
4140
build:rbe --jobs=50
4241

4342
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)