@@ -18,23 +18,15 @@ register_toolchains(
18
18
"//third_party/toolchains/bazel_0.26.0_rbe_windows:cc-toolchain-x64_windows" ,
19
19
)
20
20
21
- load ("@bazel_toolchains//rules/exec_properties:exec_properties.bzl" , "create_exec_properties_dict " , "custom_exec_properties" , "merge_dicts " )
21
+ load ("@bazel_toolchains//rules/exec_properties:exec_properties.bzl" , "create_rbe_exec_properties_dict " , "custom_exec_properties" )
22
22
23
23
custom_exec_properties (
24
24
name = "grpc_custom_exec_properties" ,
25
25
constants = {
26
- "LARGE_MACHINE" : merge_dicts (
27
- create_exec_properties_dict (),
28
- # TODO(jtattermusch): specifying 'labels = {"abc": "xyz"}' in create_exec_properties_dict
29
- # is not possible without https://github.com/bazelbuild/bazel-toolchains/pull/748
30
- # and currently the toolchain we're using is too old for that. To be able to select worker
31
- # pools through labels, we use a workaround and populate the corresponding label values
32
- # manually (see create_exec_properties_dict logic for how labels get transformed)
33
- # Remove this workaround once we transition to a new-enough bazel toolchain.
34
- # The next line corresponds to 'labels = {"os": "ubuntu", "machine_size": "large"}'
35
- {
36
- "label:os" : "ubuntu" ,
37
- "label:machine_size" : "large" ,
26
+ "LARGE_MACHINE" : create_rbe_exec_properties_dict (
27
+ labels = {
28
+ "os" : "ubuntu" ,
29
+ "machine_size" : "large" ,
38
30
},
39
31
),
40
32
},
@@ -45,23 +37,14 @@ load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
45
37
# Create toolchain configuration for remote execution.
46
38
rbe_autoconfig (
47
39
name = "rbe_default" ,
48
- exec_properties = merge_dicts (
49
- create_exec_properties_dict (
50
- docker_add_capabilities = "SYS_PTRACE" ,
51
- docker_privileged = True ,
52
- os_family = "Linux" ,
53
- ),
54
- # TODO(jtattermusch): specifying 'labels = {"abc": "xyz"}' in create_exec_properties_dict
55
- # is not possible without https://github.com/bazelbuild/bazel-toolchains/pull/748
56
- # and currently the toolchain we're using is too old for that. To be able to select worker
57
- # pools through labels, we use a workaround and populate the corresponding label values
58
- # manually (see create_exec_properties_dict logic for how labels get transformed)
59
- # Remove this workaround once we transition to a new-enough bazel toolchain.
60
- # The next line corresponds to 'labels = {"os": "ubuntu", "machine_size": "small"}'
61
- {
62
- "label:os" : "ubuntu" ,
63
- "label:machine_size" : "small" ,
40
+ exec_properties = create_rbe_exec_properties_dict (
41
+ docker_add_capabilities = "SYS_PTRACE" ,
42
+ docker_privileged = True ,
43
+ labels = {
44
+ "os" : "ubuntu" ,
45
+ "machine_size" : "small" ,
64
46
},
47
+ os_family = "Linux" ,
65
48
),
66
49
# use exec_properties instead of deprecated remote_execution_properties
67
50
use_legacy_platform_definition = False ,
0 commit comments