From 8edd56841e856b96072f02cc33029b21759abf5a Mon Sep 17 00:00:00 2001 From: Adele Zhou Date: Thu, 12 Jul 2018 17:50:55 -0700 Subject: Step 3 of multipool RBE configuration. --- test/core/gpr/BUILD | 1 + test/core/iomgr/BUILD | 1 + test/cpp/qps/BUILD | 1 + third_party/toolchains/BUILD | 10 ++++++++-- third_party/toolchains/RBE_USE_MACHINE_TYPE_LARGE | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 third_party/toolchains/RBE_USE_MACHINE_TYPE_LARGE diff --git a/test/core/gpr/BUILD b/test/core/gpr/BUILD index 5308ea0934..d58d4f2a14 100644 --- a/test/core/gpr/BUILD +++ b/test/core/gpr/BUILD @@ -86,6 +86,7 @@ grpc_cc_test( "//:gpr", "//test/core/util:gpr_test_util", ], + data = ["//third_party/toolchains:RBE_USE_MACHINE_TYPE_LARGE"], ) grpc_cc_test( diff --git a/test/core/iomgr/BUILD b/test/core/iomgr/BUILD index cc1b6aee5e..fb0490a95f 100644 --- a/test/core/iomgr/BUILD +++ b/test/core/iomgr/BUILD @@ -47,6 +47,7 @@ grpc_cc_test( "//test/core/util:gpr_test_util", "//test/core/util:grpc_test_util", ], + data = ["//third_party/toolchains:RBE_USE_MACHINE_TYPE_LARGE"], ) grpc_cc_test( diff --git a/test/cpp/qps/BUILD b/test/cpp/qps/BUILD index a348b88079..e7d093c71a 100644 --- a/test/cpp/qps/BUILD +++ b/test/cpp/qps/BUILD @@ -176,6 +176,7 @@ grpc_cc_test( "//test/cpp/util:test_config", "//test/cpp/util:test_util", ], + data = ["//third_party/toolchains:RBE_USE_MACHINE_TYPE_LARGE"], ) grpc_cc_test( diff --git a/third_party/toolchains/BUILD b/third_party/toolchains/BUILD index 1933072ff1..29fc4fdaf3 100644 --- a/third_party/toolchains/BUILD +++ b/third_party/toolchains/BUILD @@ -16,6 +16,8 @@ licenses(["notice"]) # Apache v2 package(default_visibility = ["//visibility:public"]) +exports_files(["RBE_USE_MACHINE_TYPE_LARGE",]) + # Latest RBE Ubuntu16_04 container # Update every time when a new container is released. alias( @@ -39,8 +41,12 @@ platform( value:"docker://gcr.io/cloud-marketplace/google/rbe-ubuntu16-04@sha256:59bf0e191a6b5cc1ab62c2224c810681d1326bad5a27b1d36c9f40113e79da7f" } properties: { - name: "gceMachineType" - value: "n1-highmem-2" + name: "gceMachineType" # Small machines for majority of tests. + value: "n1-standard-1" + } + properties: { + name: "gceMachineType_LARGE" # Large machines for a small set of resource-consuming tests such as combiner_tests under TSAN. + value: "n1-standard-8" } """, ) diff --git a/third_party/toolchains/RBE_USE_MACHINE_TYPE_LARGE b/third_party/toolchains/RBE_USE_MACHINE_TYPE_LARGE new file mode 100644 index 0000000000..b1120238d7 --- /dev/null +++ b/third_party/toolchains/RBE_USE_MACHINE_TYPE_LARGE @@ -0,0 +1 @@ +# This file is a sentinel and is meant to be empty. -- cgit v1.2.3