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