Skip to content

Commit 91b6d4e

Browse files
committed
[bazel] Extract remote configuration into separate file
1 parent c69304a commit 91b6d4e

File tree

2 files changed

+72
-76
lines changed

2 files changed

+72
-76
lines changed

.bazelrc

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import .bazelrc.remote
12
try-import .bazelrc.local
23
try-import .bazelrc.windows.local
34

@@ -69,6 +70,7 @@ test --test_env=MOZ_HEADLESS
6970
test --test_env=SELENIUM_BROWSER
7071
test --test_env=TRAVIS
7172
test --test_env=PYTHON_VERSION
73+
test --test_env=SE_AVOID_STATS=true
7274

7375
# Remove once rules_ruby support proper $LOAD_PATH expansion.
7476

@@ -80,11 +82,6 @@ test --test_env=RUBYOPT="-Irb/lib -w"
8082
build --action_env=JRUBY_OPTS="--dev"
8183
test --test_env=JRUBY_OPTS="--dev"
8284

83-
# JRuby/TruffleRuby: https://github.com/jruby/jruby/issues/5661
84-
85-
#build --action_env=HOME
86-
#test --test_env=HOME
87-
8885
# Expose necessary variables for Selenium-Manager.
8986

9087
test:windows --test_env=LOCALAPPDATA
@@ -96,77 +93,6 @@ test --test_timeout=1800
9693
test:node_debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results
9794
test:ruby_debug --test_output=streamed --test_env=RUBY_DEBUG_FORK_MODE=parent --run_under="@bundle//bin:rdbg --nonstop --open --command"
9895

99-
# The RBE to use
100-
build:remote --bes_results_url=https://gypsum.cluster.engflow.com/invocation
101-
build:remote --bes_backend=grpcs://gypsum.cluster.engflow.com
102-
build:remote --remote_executor=grpcs://gypsum.cluster.engflow.com
103-
build:remote --remote_cache=grpcs://gypsum.cluster.engflow.com
104-
105-
# The number of cores available
106-
build:remote -j 50
107-
108-
# Build Without The Bytes
109-
build:remote --remote_download_minimal
110-
111-
build:remote --define=EXECUTOR=remote
112-
build:remote --experimental_inmemory_dotd_files
113-
build:remote --experimental_inmemory_jdeps_files
114-
build:remote --remote_timeout=3600
115-
build:remote --spawn_strategy=remote,local
116-
#build:remote --nolegacy_important_outputs
117-
build:remote --incompatible_strict_action_env=true
118-
119-
build:remote --crosstool_top=//common/remote-build/cc:toolchain
120-
build:remote --extra_execution_platforms=//common/remote-build:platform
121-
build:remote --extra_toolchains=//common/remote-build:cc-toolchain
122-
build:remote --host_platform=//common/remote-build:platform
123-
build:remote --platforms=//common/remote-build:platform
124-
125-
# The Docker images are running Linux
126-
build:remote --cpu=k8
127-
build:remote --host_cpu=k8
128-
129-
build:remote --disk_cache=
130-
131-
build:remote --incompatible_enable_cc_toolchain_resolution
132-
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
133-
test:remote --test_env=DISPLAY=:99.0
134-
test:remote --test_tag_filters=-skip-remote,-remote
135-
136-
# Env vars we can hard code
137-
build:remote --action_env=HOME=/home/dev
138-
build:remote --action_env=PATH=/bin:/usr/bin:/usr/local/bin
139-
test:remote --test_env=PATH=/bin:/usr/bin:/usr/local/bin
140-
test:remote --test_env=HOME=/home/dev
141-
test --test_env=SE_AVOID_STATS=true
142-
143-
# Make sure we sniff credentials properly
144-
build:remote --credential_helper=%workspace%/scripts/credential-helper.sh
145-
146-
# Use pinned browsers when running remotely
147-
build:remote --//common:pin_browsers
148-
149-
# The remote build machines are pretty small, and 50 threads may leave them
150-
# thrashing, but our dev machines are a lot larger. Scale the workload so we
151-
# make reasonable usage of everything, everywhere, all at once.
152-
build:remote --local_resources=cpu='HOST_CPUS*10'
153-
build:remote --local_resources=memory='HOST_RAM*4.0'
154-
155-
# A small hint that we're running our tests remotely
156-
test:remote --test_env=REMOTE_BUILD=1
157-
158-
# Wait for up to 5 minutes for a test to pass
159-
test:remote --test_timeout=600
160-
161-
# Extend the remote config for CI
162-
build:remote-ci --config=remote
163-
build:remote-ci --curses=no --color=yes --show_timestamps --show_progress_rate_limit=5
164-
build:remote-ci --bes_upload_mode=wait_for_upload_complete
165-
166-
# Configuration changes suggested by EngFlow
167-
build:remote --grpc_keepalive_time=30s
168-
build:remote --nolegacy_important_outputs
169-
17096
build:release --config=remote
17197
build:release --stamp
17298
build:release --remote_download_outputs=toplevel

.bazelrc.remote

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# The RBE to use
2+
build:remote --bes_results_url=https://gypsum.cluster.engflow.com/invocation
3+
build:remote --bes_backend=grpcs://gypsum.cluster.engflow.com
4+
build:remote --remote_executor=grpcs://gypsum.cluster.engflow.com
5+
build:remote --remote_cache=grpcs://gypsum.cluster.engflow.com
6+
7+
# The number of cores available
8+
build:remote -j 50
9+
10+
# Build Without The Bytes
11+
build:remote --remote_download_minimal
12+
13+
build:remote --define=EXECUTOR=remote
14+
build:remote --experimental_inmemory_dotd_files
15+
build:remote --experimental_inmemory_jdeps_files
16+
build:remote --remote_timeout=3600
17+
build:remote --spawn_strategy=remote,local
18+
#build:remote --nolegacy_important_outputs
19+
build:remote --incompatible_strict_action_env=true
20+
21+
build:remote --crosstool_top=//common/remote-build/cc:toolchain
22+
build:remote --extra_execution_platforms=//common/remote-build:platform
23+
build:remote --extra_toolchains=//common/remote-build:cc-toolchain
24+
build:remote --host_platform=//common/remote-build:platform
25+
build:remote --platforms=//common/remote-build:platform
26+
build:remote --cxxopt=-std=c++14
27+
28+
# The Docker images are running Linux
29+
build:remote --cpu=k8
30+
build:remote --host_cpu=k8
31+
32+
build:remote --disk_cache=
33+
34+
build:remote --incompatible_enable_cc_toolchain_resolution
35+
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
36+
test:remote --test_env=DISPLAY=:99.0
37+
test:remote --test_tag_filters=-skip-remote,-remote
38+
39+
# Env vars we can hard code
40+
build:remote --action_env=HOME=/home/dev
41+
build:remote --action_env=PATH=/bin:/usr/bin:/usr/local/bin
42+
test:remote --test_env=PATH=/bin:/usr/bin:/usr/local/bin
43+
test:remote --test_env=HOME=/home/dev
44+
45+
# Make sure we sniff credentials properly
46+
build:remote --credential_helper=%workspace%/scripts/credential-helper.sh
47+
48+
# Use pinned browsers when running remotely
49+
build:remote --//common:pin_browsers
50+
51+
# The remote build machines are pretty small, and 50 threads may leave them
52+
# thrashing, but our dev machines are a lot larger. Scale the workload so we
53+
# make reasonable usage of everything, everywhere, all at once.
54+
build:remote --local_resources=cpu='HOST_CPUS*10'
55+
build:remote --local_resources=memory='HOST_RAM*4.0'
56+
57+
# A small hint that we're running our tests remotely
58+
test:remote --test_env=REMOTE_BUILD=1
59+
60+
# Wait for up to 5 minutes for a test to pass
61+
test:remote --test_timeout=600
62+
63+
# Extend the remote config for CI
64+
build:remote-ci --config=remote
65+
build:remote-ci --curses=no --color=yes --show_timestamps --show_progress_rate_limit=5
66+
build:remote-ci --bes_upload_mode=wait_for_upload_complete
67+
68+
# Configuration changes suggested by EngFlow
69+
build:remote --grpc_keepalive_time=30s
70+
build:remote --nolegacy_important_outputs

0 commit comments

Comments
 (0)