[go: nahoru, domu]

[code coverage] Add builder for ToT Windows Coverage.

Bug: 1090653
Change-Id: If66e60bf98a908b5e214971b3892f555f74974c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519058
Commit-Queue: Sajjad Mirza <sajjadm@chromium.org>
Reviewed-by: Yuke Liao <liaoyuke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824206}
diff --git a/infra/config/generated/cr-buildbucket.cfg b/infra/config/generated/cr-buildbucket.cfg
index 75174db..c357336 100644
--- a/infra/config/generated/cr-buildbucket.cfg
+++ b/infra/config/generated/cr-buildbucket.cfg
@@ -8638,6 +8638,43 @@
       }
     }
     builders {
+      name: "ToTWindowsCoverage"
+      swarming_host: "chromium-swarm.appspot.com"
+      swarming_tags: "vpython:native-python-wrapper"
+      dimensions: "builderless:1"
+      dimensions: "cores:32"
+      dimensions: "cpu:x86-64"
+      dimensions: "os:Windows"
+      dimensions: "pool:luci.chromium.ci"
+      dimensions: "ssd:0"
+      exe {
+        cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
+        cipd_version: "refs/heads/master"
+        cmd: "recipes"
+      }
+      properties: "{\"$build/goma\":{\"use_luci_auth\":true},\"$kitchen\":{\"devshell\":true,\"git_auth\":true},\"$recipe_engine/isolated\":{\"server\":\"https://isolateserver.appspot.com\"},\"builder_group\":\"chromium.clang\",\"perf_dashboard_machine_group\":\"ChromiumClang\",\"recipe\":\"chromium_clang_coverage_tot\"}"
+      execution_timeout_secs: 43200
+      build_numbers: YES
+      service_account: "chromium-ci-builder@chops-service-accounts.iam.gserviceaccount.com"
+      experiments {
+        key: "chromium.resultdb.result_sink"
+        value: 0
+      }
+      experiments {
+        key: "luci.use_realms"
+        value: 100
+      }
+      resultdb {
+        enable: true
+        bq_exports {
+          project: "luci-resultdb"
+          dataset: "chromium"
+          table: "ci_test_results"
+          test_results {}
+        }
+      }
+    }
+    builders {
       name: "ToTiOS"
       swarming_host: "chromium-swarm.appspot.com"
       swarming_tags: "vpython:native-python-wrapper"
diff --git a/infra/config/generated/luci-milo.cfg b/infra/config/generated/luci-milo.cfg
index 936fdd8..8a58133 100644
--- a/infra/config/generated/luci-milo.cfg
+++ b/infra/config/generated/luci-milo.cfg
@@ -3914,6 +3914,11 @@
     short_name: "x64"
   }
   builders {
+    name: "buildbucket/luci.chromium.ci/ToTWindowsCoverage"
+    category: "Tot Code Coverage"
+    short_name: "win"
+  }
+  builders {
     name: "buildbucket/luci.chromium.ci/ToTiOS"
     category: "iOS|public"
     short_name: "sim"
diff --git a/infra/config/generated/luci-scheduler.cfg b/infra/config/generated/luci-scheduler.cfg
index 89988a3..cb282d7 100644
--- a/infra/config/generated/luci-scheduler.cfg
+++ b/infra/config/generated/luci-scheduler.cfg
@@ -3097,6 +3097,16 @@
   }
 }
 job {
+  id: "ToTWindowsCoverage"
+  realm: "ci"
+  acl_sets: "ci"
+  buildbucket {
+    server: "cr-buildbucket.appspot.com"
+    bucket: "luci.chromium.ci"
+    builder: "ToTWindowsCoverage"
+  }
+}
+job {
   id: "ToTiOS"
   realm: "ci"
   acl_sets: "ci"
@@ -6321,6 +6331,7 @@
   triggers: "ToTWinASanLibfuzzer"
   triggers: "ToTWinCFI"
   triggers: "ToTWinCFI64"
+  triggers: "ToTWindowsCoverage"
   triggers: "ToTiOS"
   triggers: "ToTiOSDevice"
   triggers: "UBSan Release"
diff --git a/infra/config/subprojects/chromium/ci.star b/infra/config/subprojects/chromium/ci.star
index 9beb814..d40a378c 100644
--- a/infra/config/subprojects/chromium/ci.star
+++ b/infra/config/subprojects/chromium/ci.star
@@ -1606,6 +1606,16 @@
 )
 
 ci.clang_builder(
+    name = "ToTWindowsCoverage",
+    console_view_entry = ci.console_view_entry(
+        category = "Tot Code Coverage",
+        short_name = "win",
+    ),
+    executable = "recipe:chromium_clang_coverage_tot",
+    os = os.WINDOWS_ANY,
+)
+
+ci.clang_builder(
     name = "linux-win_cross-rel",
     console_view_entry = ci.console_view_entry(
         category = "ToT Windows",