Move build tasks to MacOS 10.12
authorStephan Altmueller <stephana@google.com>
Mon, 20 Mar 2017 17:38:45 +0000 (13:38 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 21 Mar 2017 14:33:48 +0000 (14:33 +0000)
BUG=skia:

Change-Id: I5317dde5262ff6e880fa54a660f09205c616f1a4
Reviewed-on: https://skia-review.googlesource.com/9898
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Stephan Altmueller <stephana@google.com>

infra/bots/gen_tasks.go
infra/bots/tasks.json

index a7353b58d328bcac752100c38af464b3c7293ed2..2c47d69a1462ca7400e029c772911b4df8ca58de 100644 (file)
@@ -242,10 +242,23 @@ func compile(b *specs.TasksCfgBuilder, name string, parts map[string]string) str
                }
        }
 
+       // TODO(stephana): Remove this once all Mac machines are on the same
+       // OS version again. Move the call to swarmDimensions back to the
+       // creation of the TaskSpec struct below.
+       dimensions := swarmDimensions(parts)
+       if strings.Contains(name, "Mac") {
+               for idx, dim := range dimensions {
+                       if strings.HasPrefix(dim, "os") {
+                               dimensions[idx] = "os:Mac-10.12"
+                               break
+                       }
+               }
+       }
+
        // Add the task.
        b.MustAddTask(name, &specs.TaskSpec{
                CipdPackages: pkgs,
-               Dimensions:   swarmDimensions(parts),
+               Dimensions:   dimensions,
                ExtraArgs: []string{
                        "--workdir", "../../..", "swarm_compile",
                        fmt.Sprintf("repository=%s", specs.PLACEHOLDER_REPO),
index b24f41039446dea0c3fc1a5cbfb4aa62a63a6a40..238fffdc26833f9bec58d6ea064f9e32209e68e2 100644 (file)
     "Build-Mac-Clang-arm-Debug-iOS": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-arm-Release-iOS": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
       ],
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-arm64-Debug-iOS": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-arm64-Release-iOS": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-x86_64-Debug": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-x86_64-Debug-CommandBuffer": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-x86_64-Release": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [
     "Build-Mac-Clang-x86_64-Release-CommandBuffer": {
       "dimensions": [
         "gpu:none",
-        "os:Mac-10.11",
+        "os:Mac-10.12",
         "pool:Skia"
       ],
       "extra_args": [