From 82a33425166aacd0726bdd283c6de749420819a8 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 26 Apr 2018 18:02:23 -0400 Subject: [infra] Specify machine_type dimension for Linux GCE bots. This is in preparation of assigning bots either "small" or "large" GCE machines. Bug: skia:7415, skia:7416 Change-Id: I82b6fe454ba3622ef8a9d515dc3e72362dd30ee5 Reviewed-on: https://skia-review.googlesource.com/124183 Commit-Queue: Eric Boren Auto-Submit: Ben Wagner Reviewed-by: Eric Boren --- infra/bots/gen_tasks.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'infra/bots/gen_tasks.go') diff --git a/infra/bots/gen_tasks.go b/infra/bots/gen_tasks.go index 7ec603c204..2f3e97e38e 100644 --- a/infra/bots/gen_tasks.go +++ b/infra/bots/gen_tasks.go @@ -277,6 +277,8 @@ func linuxGceDimensions() []string { // Specify CPU to avoid running builds on bots with a more unique CPU. "cpu:x86-64-Haswell_GCE", "gpu:none", + // Currently all Linux GCE tasks run on 16-CPU machines. + "machine_type:n1-standard-16", fmt.Sprintf("os:%s", DEFAULT_OS_LINUX_GCE), fmt.Sprintf("pool:%s", CONFIG.Pool), } @@ -446,6 +448,8 @@ func defaultSwarmDimensions(parts map[string]string) []string { d["cpu"] = cpu if parts["model"] == "GCE" && d["os"] == DEFAULT_OS_DEBIAN { d["os"] = DEFAULT_OS_LINUX_GCE + // Currently all Linux GCE tasks run on 16-CPU machines. + d["machine_type"] = "n1-standard-16" } if parts["model"] == "GCE" && d["os"] == DEFAULT_OS_WIN { // Use normal-size machines for Test and Perf tasks on Win GCE. -- cgit v1.2.3