aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/gen_tasks.go
diff options
context:
space:
mode:
authorGravatar Ben Wagner <benjaminwagner@google.com>2018-04-26 18:02:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-27 12:51:47 +0000
commit82a33425166aacd0726bdd283c6de749420819a8 (patch)
tree2a37c7ebaafaefb1cde1e8f5ba58cac3621b8b8e /infra/bots/gen_tasks.go
parenta886544a7bf727a8f0d75597df99474dcba97273 (diff)
[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 <borenet@google.com> Auto-Submit: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/gen_tasks.go')
-rw-r--r--infra/bots/gen_tasks.go4
1 files changed, 4 insertions, 0 deletions
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.