Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 1 | #!/usr/bin/env lucicfg |
| 2 | |
| 3 | # Copyright (c) 2019 The WebRTC project authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # https://chromium.googlesource.com/infra/luci/luci-go/+/master/lucicfg/doc/ |
| 8 | |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 9 | """LUCI project configuration for WebRTC CQ and CI.""" |
| 10 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 11 | lucicfg.check_version("1.23.0") |
Mirko Bonadei | 9189d9c | 2020-06-09 21:54:18 +0200 | [diff] [blame] | 12 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 13 | WEBRTC_GIT = "https://webrtc.googlesource.com/src" |
| 14 | WEBRTC_GERRIT = "https://webrtc-review.googlesource.com/src" |
| 15 | |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 16 | GOMA_BACKEND_WEBRTC_RBE_PROD = { |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 17 | "$build/goma": { |
| 18 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 19 | "use_luci_auth": True, |
| 20 | }, |
Mirko Bonadei | 1e90534 | 2020-03-04 09:39:42 +0100 | [diff] [blame] | 21 | } |
| 22 | |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 23 | GOMA_BACKEND_WEBRTC_IOS_RBE_PROD = { |
| 24 | "$build/goma": { |
| 25 | "server_host": "goma.chromium.org", |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 26 | "use_luci_auth": True, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 27 | }, |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 28 | "$depot_tools/osx_sdk": {"sdk_version": "12a7209"}, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 29 | } |
| 30 | |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 31 | GOMA_BACKEND_RBE_ATS_PROD = { |
| 32 | "$build/goma": { |
| 33 | "server_host": "goma.chromium.org", |
Mirko Bonadei | 2688eca | 2020-03-25 09:15:54 +0100 | [diff] [blame] | 34 | "use_luci_auth": True, |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 35 | "enable_ats": True, |
| 36 | }, |
Patrik Höglund | 3916a97 | 2019-12-04 13:19:38 +0100 | [diff] [blame] | 37 | } |
| 38 | |
Mirko Bonadei | 5aafd47 | 2021-04-21 10:42:00 +0200 | [diff] [blame] | 39 | # Disable ATS on CQ/try. |
| 40 | GOMA_BACKEND_RBE_NO_ATS_PROD = { |
| 41 | "$build/goma": { |
| 42 | "server_host": "goma.chromium.org", |
| 43 | "use_luci_auth": True, |
| 44 | "enable_ats": False, |
| 45 | }, |
| 46 | } |
| 47 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 48 | # Top-level configs: |
| 49 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 50 | # Enable LUCI Realms support. |
| 51 | lucicfg.enable_experiment("crbug.com/1085650") |
| 52 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 53 | lucicfg.config( |
| 54 | config_dir = ".", |
| 55 | tracked_files = [ |
| 56 | "commit-queue.cfg", |
| 57 | "cr-buildbucket.cfg", |
| 58 | "luci-logdog.cfg", |
| 59 | "luci-milo.cfg", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 60 | "luci-notify.cfg", |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 61 | "luci-notify/**/*", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 62 | "luci-scheduler.cfg", |
| 63 | "project.cfg", |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 64 | "realms.cfg", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 65 | ], |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 66 | lint_checks = ["default"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 67 | ) |
| 68 | |
| 69 | luci.project( |
| 70 | name = "webrtc", |
| 71 | buildbucket = "cr-buildbucket.appspot.com", |
| 72 | logdog = "luci-logdog.appspot.com", |
| 73 | milo = "luci-milo.appspot.com", |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 74 | notify = "luci-notify.appspot.com", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 75 | scheduler = "luci-scheduler.appspot.com", |
| 76 | swarming = "chromium-swarm.appspot.com", |
| 77 | acls = [ |
| 78 | acl.entry( |
| 79 | [acl.BUILDBUCKET_READER, acl.LOGDOG_READER, acl.PROJECT_CONFIGS_READER, acl.SCHEDULER_READER], |
| 80 | groups = ["all"], |
| 81 | ), |
| 82 | acl.entry(acl.LOGDOG_WRITER, groups = ["luci-logdog-chromium-writers"]), |
| 83 | acl.entry(acl.SCHEDULER_OWNER, groups = ["project-webrtc-admins"]), |
| 84 | ], |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 85 | bindings = [ |
| 86 | luci.binding( |
| 87 | roles = "role/swarming.poolOwner", |
| 88 | groups = "project-webrtc-admins", |
| 89 | ), |
| 90 | luci.binding( |
| 91 | roles = "role/swarming.poolViewer", |
| 92 | groups = "all", |
| 93 | ), |
| 94 | ], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 95 | ) |
| 96 | |
| 97 | luci.logdog( |
| 98 | gs_bucket = "chromium-luci-logdog", |
| 99 | ) |
| 100 | |
| 101 | luci.milo( |
| 102 | logo = "https://storage.googleapis.com/chrome-infra/webrtc-logo-vert-retro-255x305.png", |
| 103 | ) |
| 104 | |
Owen Rodley | a55c38e | 2020-06-15 11:16:10 +1000 | [diff] [blame] | 105 | luci.notify(tree_closing_enabled = True) |
| 106 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 107 | luci.cq( |
| 108 | status_host = "chromium-cq-status.appspot.com", |
| 109 | submit_max_burst = 1, |
| 110 | submit_burst_delay = 1 * time.minute, |
| 111 | ) |
| 112 | |
| 113 | luci.gitiles_poller( |
| 114 | name = "webrtc-gitiles-trigger-master", |
| 115 | bucket = "ci", |
| 116 | repo = WEBRTC_GIT, |
| 117 | ) |
| 118 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 119 | # Swarming permissions: |
| 120 | |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame^] | 121 | luci.realm(name = "pools/cron", bindings = [ |
| 122 | # Unlike WebRTC's own builders, other projects need an explicit grant to use this pool. |
| 123 | luci.binding( |
| 124 | roles = "role/swarming.poolUser", |
| 125 | projects = "libyuv", |
| 126 | ), |
| 127 | ]) |
| 128 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 129 | luci.realm(name = "pools/ci") |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame^] | 130 | luci.realm(name = "pools/ci-tests", bindings = [ |
| 131 | # Allow task service accounts of .ci pool/bucket to trigger tasks here. |
| 132 | luci.binding( |
| 133 | roles = "role/swarming.poolUser", |
| 134 | groups = "project-webrtc-ci-task-accounts", |
| 135 | ), |
| 136 | # Allow tasks here to use .ci task service accounts. |
| 137 | luci.binding( |
| 138 | roles = "role/swarming.taskServiceAccount", |
| 139 | groups = "project-webrtc-ci-task-accounts", |
| 140 | ), |
| 141 | ]) |
| 142 | |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 143 | luci.realm(name = "pools/try") |
Andrii Shyshkalov | c26aaad | 2021-04-27 16:47:26 +0200 | [diff] [blame^] | 144 | luci.realm(name = "pools/try-tests", bindings = [ |
| 145 | # Allow task service accounts of .try pool/bucket to trigger tasks here. |
| 146 | luci.binding( |
| 147 | roles = "role/swarming.poolUser", |
| 148 | groups = "project-webrtc-try-task-accounts", |
| 149 | ), |
| 150 | # Allow tasks here to use .try task service accounts. |
| 151 | luci.binding( |
| 152 | roles = "role/swarming.taskServiceAccount", |
| 153 | groups = "project-webrtc-try-task-accounts", |
| 154 | ), |
| 155 | ]) |
Andrii Shyshkalov | 0efa6da | 2021-04-26 20:40:33 +0200 | [diff] [blame] | 156 | |
| 157 | # Allow admins to use LED & Swarming "Debug" feature on all WebRTC bots. |
| 158 | luci.binding( |
| 159 | realm = "@root", |
| 160 | roles = "role/swarming.poolUser", |
| 161 | groups = "project-webrtc-admins", |
| 162 | ) |
| 163 | luci.binding( |
| 164 | realm = "@root", |
| 165 | roles = "role/swarming.taskTriggerer", |
| 166 | groups = "project-webrtc-admins", |
| 167 | ) |
| 168 | |
| 169 | # Allow to use LED & Swarming "Debug" feature to a larger group but only on try bots / builders. |
| 170 | luci.binding( |
| 171 | realm = "pools/try", |
| 172 | roles = "role/swarming.poolUser", |
| 173 | groups = "project-webrtc-led-users", |
| 174 | ) |
| 175 | luci.binding( |
| 176 | realm = "try", |
| 177 | roles = "role/swarming.taskTriggerer", |
| 178 | groups = "project-webrtc-led-users", |
| 179 | ) |
| 180 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 181 | # Bucket definitions: |
| 182 | |
| 183 | luci.bucket( |
| 184 | name = "try", |
| 185 | acls = [ |
| 186 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 187 | "service-account-cq", |
| 188 | "project-webrtc-tryjob-access", |
| 189 | ]), |
| 190 | ], |
| 191 | ) |
| 192 | |
| 193 | luci.bucket( |
| 194 | name = "ci", |
| 195 | acls = [ |
Oleh Prypin | f35939d | 2019-05-03 20:42:38 +0200 | [diff] [blame] | 196 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 197 | "project-webrtc-ci-schedulers", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 198 | ]), |
Jeremy Leconte | 2e25bb5 | 2020-07-16 09:38:56 +0200 | [diff] [blame] | 199 | acl.entry(acl.BUILDBUCKET_TRIGGERER, groups = [ |
| 200 | # Allow Pinpoint to trigger builds for bisection |
| 201 | "service-account-chromeperf", |
| 202 | ]), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 203 | ], |
| 204 | ) |
| 205 | |
| 206 | luci.bucket( |
| 207 | name = "perf", |
| 208 | acls = [ |
| 209 | acl.entry(acl.BUILDBUCKET_TRIGGERER, users = [ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 210 | "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 211 | ]), |
| 212 | ], |
| 213 | ) |
| 214 | |
| 215 | luci.bucket( |
| 216 | name = "cron", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 217 | ) |
| 218 | |
| 219 | # Commit queue definitions: |
| 220 | |
| 221 | luci.cq_group( |
| 222 | name = "cq", |
| 223 | tree_status_host = "webrtc-status.appspot.com", |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 224 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/master"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 225 | acls = [ |
| 226 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 227 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 228 | ], |
| 229 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 230 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 231 | ) |
| 232 | |
| 233 | luci.cq_group( |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 234 | name = "cq_branch", |
| 235 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/branch-heads/.+"])], |
| 236 | acls = [ |
| 237 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-committers"]), |
| 238 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 239 | ], |
| 240 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 241 | cancel_stale_tryjobs = True, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 242 | ) |
| 243 | |
| 244 | luci.cq_group( |
| 245 | name = "cq_infra", |
| 246 | watch = [cq.refset(repo = WEBRTC_GERRIT, refs = ["refs/heads/infra/config"])], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 247 | acls = [ |
| 248 | acl.entry(acl.CQ_COMMITTER, groups = ["project-webrtc-admins"]), |
| 249 | acl.entry(acl.CQ_DRY_RUNNER, groups = ["project-webrtc-tryjob-access"]), |
| 250 | ], |
| 251 | retry_config = cq.RETRY_ALL_FAILURES, |
Oleh Prypin | 5416f2d | 2019-08-02 09:43:15 +0200 | [diff] [blame] | 252 | cancel_stale_tryjobs = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 253 | ) |
| 254 | |
| 255 | luci.cq_tryjob_verifier( |
| 256 | builder = "presubmit", |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 257 | cq_group = "cq_infra", |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 258 | ) |
| 259 | |
Oleh Prypin | e56cd9b | 2019-05-29 21:14:31 +0200 | [diff] [blame] | 260 | luci.cq_tryjob_verifier( |
| 261 | builder = "webrtc-internal:g3.webrtc-internal.try/internal_compile_lite", |
| 262 | owner_whitelist = ["project-webrtc-internal-tryjob-access"], |
| 263 | cq_group = "cq", |
| 264 | ) |
| 265 | |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 266 | # Notifier definitions: |
| 267 | |
| 268 | luci.notifier( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 269 | name = "post_submit_failure_notifier", |
| 270 | on_new_status = ["FAILURE"], |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 271 | notify_emails = ["webrtc-sheriffs-robots@google.com"], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 272 | template = luci.notifier_template( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 273 | name = "build_failure", |
| 274 | body = io.read_file("luci-notify/email-templates/build_failure.template"), |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 275 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 276 | ) |
| 277 | |
| 278 | luci.notifier( |
| 279 | name = "cron_notifier", |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 280 | on_new_status = ["FAILURE", "INFRA_FAILURE"], |
Mirko Bonadei | 450e9b7 | 2020-07-10 19:19:22 +0000 | [diff] [blame] | 281 | notify_emails = ["webrtc-troopers-robots@google.com"], |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 282 | template = luci.notifier_template( |
| 283 | name = "cron", |
| 284 | body = io.read_file("luci-notify/email-templates/cron.template"), |
| 285 | ), |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 286 | ) |
| 287 | |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 288 | luci.notifier( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 289 | name = "infra_failure_notifier", |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 290 | on_new_status = ["INFRA_FAILURE"], |
Mirko Bonadei | 450e9b7 | 2020-07-10 19:19:22 +0000 | [diff] [blame] | 291 | notify_emails = ["webrtc-troopers-robots@google.com"], |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 292 | template = luci.notifier_template( |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 293 | name = "infra_failure", |
| 294 | body = io.read_file("luci-notify/email-templates/infra_failure.template"), |
Jeremy Leconte | 67a904e | 2020-07-08 11:48:18 +0200 | [diff] [blame] | 295 | ), |
| 296 | ) |
| 297 | |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 298 | # Tree closer definitions: |
| 299 | |
| 300 | luci.tree_closer( |
| 301 | name = "webrtc_tree_closer", |
| 302 | tree_status_host = "webrtc-status.appspot.com", |
Owen Rodley | 6b721ba | 2020-05-26 10:04:20 +1000 | [diff] [blame] | 303 | # TODO: These step filters are copied verbatim from Gatekeeper, for testing |
| 304 | # that LUCI-Notify would take the exact same actions. Once we've switched |
| 305 | # over, this should be updated - several of these steps don't exist in |
| 306 | # WebRTC recipes. |
| 307 | failed_step_regexp = [ |
| 308 | "bot_update", |
| 309 | "compile", |
| 310 | "gclient runhooks", |
| 311 | "runhooks", |
| 312 | "update", |
| 313 | "extract build", |
| 314 | "cleanup_temp", |
| 315 | "taskkill", |
| 316 | "compile", |
| 317 | "gn", |
| 318 | ], |
| 319 | failed_step_regexp_exclude = ".*\\(experimental\\).*", |
| 320 | ) |
| 321 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 322 | # Recipe definitions: |
| 323 | |
| 324 | def recipe(recipe, pkg = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"): |
| 325 | return luci.recipe( |
| 326 | name = recipe.split("/")[-1], |
| 327 | cipd_package = pkg, |
| 328 | cipd_version = "refs/heads/master", |
| 329 | recipe = recipe, |
| 330 | ) |
| 331 | |
| 332 | recipe("chromium_trybot") |
| 333 | recipe("run_presubmit") |
| 334 | recipe("webrtc/auto_roll_webrtc_deps") |
| 335 | recipe("webrtc/ios") |
| 336 | recipe("webrtc/ios_api_framework") |
| 337 | recipe("webrtc/libfuzzer") |
| 338 | recipe("webrtc/more_configs") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 339 | recipe("webrtc/standalone") |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 340 | recipe("webrtc/update_webrtc_binary_version") |
Jeff Yoon | f421c68 | 2020-12-17 00:16:22 -0800 | [diff] [blame] | 341 | recipe("lkgr_finder", pkg = "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 342 | |
| 343 | # Console definitions: |
| 344 | |
| 345 | luci.console_view(name = "ci", title = "Main", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 346 | luci.console_view(name = "perf", title = "Perf", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 347 | luci.list_view(name = "cron", title = "Cron") |
| 348 | luci.console_view(name = "fyi", title = "FYI", repo = WEBRTC_GIT, header = "console-header.textpb") |
| 349 | luci.list_view(name = "try", title = "Tryserver") |
| 350 | |
| 351 | def add_milo(builder, views): |
| 352 | """Add Milo console entries for the builder. |
| 353 | |
| 354 | Args: |
| 355 | builder: builder name (str). |
| 356 | views: dict where keys are names of consoles and values are either a |
| 357 | category for the console (str, pipe-separated) or True, which means |
| 358 | adding to a list view rather than a console. |
| 359 | """ |
| 360 | for view_name, category in views.items(): |
| 361 | if category == None: |
| 362 | continue |
| 363 | elif type(category) == "string": |
| 364 | category, _, short_name = category.rpartition("|") |
| 365 | luci.console_view_entry( |
| 366 | console_view = view_name, |
| 367 | builder = builder, |
| 368 | category = category or None, |
| 369 | short_name = short_name or None, |
| 370 | ) |
| 371 | elif category == True: |
| 372 | luci.list_view_entry( |
| 373 | list_view = view_name, |
| 374 | builder = builder, |
| 375 | ) |
| 376 | else: |
| 377 | fail("Unexpected value for category: %r" % category) |
| 378 | |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 379 | lkgr_builders = {} |
| 380 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 381 | # Builder-defining functions: |
| 382 | |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 383 | def webrtc_builder( |
| 384 | name, |
| 385 | recipe = "standalone", |
| 386 | dimensions = {}, |
Mirko Bonadei | 825f9c2 | 2020-07-01 11:52:39 +0200 | [diff] [blame] | 387 | properties = {}, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 388 | priority = 30, |
| 389 | execution_timeout = 2 * time.hour, |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 390 | goma_jobs = None, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 391 | **kwargs): |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 392 | """WebRTC specific wrapper around luci.builder. |
| 393 | |
| 394 | Args: |
| 395 | name: builder name (str). |
| 396 | recipe: string with the name of the recipe to run. |
| 397 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 398 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 399 | priority: int [1-255] or None, indicating swarming task priority, lower is |
| 400 | more important. If None, defer the decision to Buildbucket service. |
| 401 | execution_timeout: int or None, how long to wait for a running build to finish before |
| 402 | forcefully aborting it and marking the build as timed out. If None, |
| 403 | defer the decision to Buildbucket service. |
| 404 | goma_jobs: int or None, number of jobs to be used by the builder. If None, defer the |
| 405 | decition to the goma module. |
| 406 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 407 | Returns: |
| 408 | A luci.builder. |
| 409 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 410 | dimensions = merge_dicts({"cpu": "x86-64"}, dimensions) |
| 411 | |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 412 | if goma_jobs != None: |
| 413 | goma_additional_params = {"$build/goma": {"jobs": goma_jobs}} |
| 414 | properties = merge_dicts(properties, goma_additional_params) |
Ye Kuang | 8df2049 | 2020-10-15 14:54:17 +0900 | [diff] [blame] | 415 | properties = merge_dicts(properties, { |
| 416 | "$recipe_engine/isolated": { |
| 417 | "server": "https://isolateserver.appspot.com", |
| 418 | }, |
| 419 | }) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 420 | return luci.builder( |
| 421 | name = name, |
Oleh Prypin | 705b6a6 | 2019-04-03 23:10:51 +0200 | [diff] [blame] | 422 | executable = recipe, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 423 | dimensions = {k: v for k, v in dimensions.items() if v != None}, |
Mirko Bonadei | b7ef460 | 2020-07-01 13:28:26 +0200 | [diff] [blame] | 424 | properties = properties, |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 425 | execution_timeout = execution_timeout, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 426 | priority = priority, |
| 427 | build_numbers = True, |
| 428 | swarming_tags = ["vpython:native-python-wrapper"], |
| 429 | **kwargs |
| 430 | ) |
| 431 | |
| 432 | def ci_builder( |
| 433 | name, |
| 434 | ci_cat, |
| 435 | perf_cat = None, |
| 436 | fyi_cat = None, |
| 437 | properties = {}, |
| 438 | dimensions = {}, |
| 439 | prioritized = False, |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 440 | enabled = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 441 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 442 | """Add a post-submit builder. |
| 443 | |
| 444 | Args: |
| 445 | name: builder name (str). |
| 446 | ci_cat: the category + name for the /ci/ console, or None to omit from the console. |
| 447 | perf_cat: the category + name for the /perf/ console, or None to omit from the console. |
| 448 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 449 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 450 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 451 | prioritized: True to make this builder have a higher priority and never batch builds. |
| 452 | enabled: False to exclude this builder from consoles and failure notifications. |
| 453 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 454 | Returns: |
| 455 | A luci.builder. |
| 456 | |
| 457 | Notifications are also disabled if a builder is not on either of /ci/ or /perf/ consoles. |
| 458 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 459 | if prioritized: |
| 460 | kwargs["triggering_policy"] = scheduler.greedy_batching( |
| 461 | max_batch_size = 1, |
| 462 | max_concurrent_invocations = 3, |
| 463 | ) |
| 464 | kwargs["priority"] = 29 |
| 465 | |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 466 | if enabled: |
| 467 | add_milo(name, {"ci": ci_cat, "perf": perf_cat, "fyi": fyi_cat}) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 468 | if ci_cat: |
| 469 | lkgr_builders[name] = True |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 470 | return webrtc_builder( |
| 471 | name = name, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 472 | properties = merge_dicts({"builder_group": "client.webrtc"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 473 | dimensions = merge_dicts({"pool": "luci.webrtc.ci"}, dimensions), |
| 474 | bucket = "ci", |
| 475 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
Oleh Prypin | f5432c5 | 2019-03-19 15:10:37 +0100 | [diff] [blame] | 476 | triggered_by = ["webrtc-gitiles-trigger-master"] if enabled else None, |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 477 | repo = WEBRTC_GIT, |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 478 | notifies = ["post_submit_failure_notifier", "webrtc_tree_closer", "infra_failure_notifier"] if enabled and (ci_cat or perf_cat) else None, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 479 | **kwargs |
| 480 | ) |
| 481 | |
| 482 | def try_builder( |
| 483 | name, |
| 484 | try_cat = True, |
| 485 | fyi_cat = None, |
| 486 | properties = {}, |
| 487 | dimensions = {}, |
| 488 | cq = {}, |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 489 | branch_cq = True, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 490 | **kwargs): |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 491 | """Add a pre-submit builder. |
| 492 | |
| 493 | Args: |
| 494 | name: builder name (str). |
| 495 | try_cat: boolean, whether to include this builder in the /try/ console. See also: `add_milo`. |
| 496 | fyi_cat: the category + name for the /fyi/ console, or None to omit from the console. |
| 497 | properties: dict of properties to pass to the recipe (on top of the default ones). |
| 498 | dimensions: dict of Swarming dimensions (strings) to search machines by. |
| 499 | cq: None to exclude this from all commit queues, or a dict of kwargs for cq_tryjob_verifier. |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 500 | branch_cq: False to exclude this builder just from the release-branch CQ. |
Oleh Prypin | e567767 | 2019-04-25 12:21:35 +0200 | [diff] [blame] | 501 | **kwargs: Pass on to webrtc_builder / luci.builder. |
| 502 | Returns: |
| 503 | A luci.builder. |
| 504 | """ |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 505 | add_milo(name, {"try": try_cat, "fyi": fyi_cat}) |
| 506 | if cq != None: |
| 507 | luci.cq_tryjob_verifier( |
| 508 | builder = name, |
| 509 | cq_group = "cq", |
| 510 | **cq |
| 511 | ) |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 512 | if branch_cq: |
| 513 | luci.cq_tryjob_verifier( |
| 514 | builder = name, |
| 515 | cq_group = "cq_branch", |
| 516 | **cq |
| 517 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 518 | |
| 519 | return webrtc_builder( |
| 520 | name = name, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 521 | properties = merge_dicts({"builder_group": "tryserver.webrtc"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 522 | dimensions = merge_dicts({"pool": "luci.webrtc.try"}, dimensions), |
| 523 | bucket = "try", |
| 524 | service_account = "webrtc-try-builder@chops-service-accounts.iam.gserviceaccount.com", |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 525 | notifies = ["infra_failure_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 526 | **kwargs |
| 527 | ) |
| 528 | |
| 529 | def perf_builder( |
| 530 | name, |
| 531 | perf_cat, |
| 532 | recipe = "standalone", |
| 533 | properties = {}, |
| 534 | dimensions = {}, |
| 535 | **kwargs): |
| 536 | add_milo(name, {"perf": perf_cat}) |
| 537 | return webrtc_builder( |
| 538 | name = name, |
| 539 | recipe = recipe, |
Garrett Beaty | 4a106ce | 2020-09-09 14:51:23 -0700 | [diff] [blame] | 540 | properties = merge_dicts({"builder_group": "client.webrtc.perf"}, properties), |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 541 | dimensions = merge_dicts({"pool": "luci.webrtc.perf", "os": "Linux", "cpu": None}, dimensions), |
| 542 | bucket = "perf", |
| 543 | service_account = "webrtc-ci-builder@chops-service-accounts.iam.gserviceaccount.com", |
| 544 | # log_base of 1.7 means: |
| 545 | # when there are P pending builds, LUCI will batch the first B builds. |
| 546 | # P: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... |
| 547 | # B: 1 1 2 2 3 3 3 3 4 4 4 4 4 4 5 ... |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 548 | triggering_policy = scheduler.logarithmic_batching(log_base = 1.7), |
Artem Titarenko | f6588b7 | 2019-11-14 14:28:11 +0100 | [diff] [blame] | 549 | execution_timeout = 3 * time.hour, |
Mirko Bonadei | 875a27a | 2020-07-11 15:04:58 +0200 | [diff] [blame] | 550 | notifies = ["post_submit_failure_notifier", "infra_failure_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 551 | **kwargs |
| 552 | ) |
| 553 | |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 554 | def android_perf_builder( |
| 555 | name, |
| 556 | perf_cat, |
| 557 | recipe = "standalone", |
| 558 | properties = {}, |
| 559 | dimensions = {}, |
| 560 | **kwargs): |
| 561 | return perf_builder( |
| 562 | name = name, |
| 563 | perf_cat = perf_cat, |
| 564 | recipe = recipe, |
| 565 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 566 | dimensions = dimensions, |
| 567 | **kwargs |
| 568 | ) |
| 569 | |
| 570 | def linux_perf_builder( |
| 571 | name, |
| 572 | perf_cat, |
| 573 | recipe = "standalone", |
| 574 | properties = {}, |
| 575 | dimensions = {}, |
| 576 | **kwargs): |
| 577 | return perf_builder( |
| 578 | name = name, |
| 579 | perf_cat = perf_cat, |
| 580 | recipe = recipe, |
| 581 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 582 | dimensions = dimensions, |
| 583 | **kwargs |
| 584 | ) |
| 585 | |
| 586 | def mac_perf_builder( |
| 587 | name, |
| 588 | perf_cat, |
| 589 | recipe = "standalone", |
| 590 | properties = {}, |
| 591 | dimensions = {}, |
| 592 | **kwargs): |
| 593 | return perf_builder( |
| 594 | name = name, |
| 595 | perf_cat = perf_cat, |
| 596 | recipe = recipe, |
| 597 | properties = merge_dicts(GOMA_BACKEND_WEBRTC_RBE_PROD, properties), |
| 598 | dimensions = dimensions, |
| 599 | **kwargs |
| 600 | ) |
| 601 | |
| 602 | def win_perf_builder( |
| 603 | name, |
| 604 | perf_cat, |
| 605 | recipe = "standalone", |
| 606 | properties = {}, |
| 607 | dimensions = {}, |
| 608 | **kwargs): |
| 609 | return perf_builder( |
| 610 | name = name, |
| 611 | perf_cat = perf_cat, |
| 612 | recipe = recipe, |
| 613 | properties = merge_dicts(GOMA_BACKEND_RBE_ATS_PROD, properties), |
| 614 | dimensions = dimensions, |
| 615 | **kwargs |
| 616 | ) |
| 617 | |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 618 | def cron_builder(name, dimensions = {}, service_account = None, **kwargs): |
| 619 | if service_account == None: |
| 620 | service_account = "chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com" |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 621 | add_milo(name, {"cron": True}) |
| 622 | return webrtc_builder( |
| 623 | name = name, |
| 624 | dimensions = merge_dicts({"pool": "luci.webrtc.cron", "os": "Linux"}, dimensions), |
| 625 | bucket = "cron", |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 626 | service_account = service_account, |
Oleh Prypin | 71d1742 | 2019-03-28 08:43:16 +0100 | [diff] [blame] | 627 | notifies = ["cron_notifier"], |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 628 | **kwargs |
| 629 | ) |
| 630 | |
| 631 | # Helpers: |
| 632 | |
| 633 | def merge_dicts(a, b): |
| 634 | """Return the result of merging two dicts. |
| 635 | |
| 636 | If matching values are both dicts or both lists, they will be merged (non-recursively). |
| 637 | |
| 638 | Args: |
| 639 | a: first dict. |
| 640 | b: second dict (takes priority). |
| 641 | Returns: |
| 642 | Merged dict. |
| 643 | """ |
| 644 | a = dict(a) |
| 645 | for k, bv in b.items(): |
| 646 | av = a.get(k) |
| 647 | if type(av) == "dict" and type(bv) == "dict": |
| 648 | a[k] = dict(av) |
| 649 | a[k].update(bv) |
| 650 | elif type(av) == "list" and type(bv) == "list": |
| 651 | a[k] = av + bv |
| 652 | else: |
| 653 | a[k] = bv |
| 654 | return a |
| 655 | |
| 656 | def normal_builder_factory(**common_kwargs): |
| 657 | def builder(*args, **kwargs): |
| 658 | return ci_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 659 | |
| 660 | def try_job(*args, **kwargs): |
| 661 | return try_builder(*args, **merge_dicts(common_kwargs, kwargs)) |
| 662 | |
| 663 | return builder, try_job |
| 664 | |
| 665 | # Mixins: |
| 666 | |
| 667 | linux_builder, linux_try_job = normal_builder_factory( |
| 668 | dimensions = {"os": "Linux", "inside_docker": "0"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 669 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 670 | ) |
| 671 | |
| 672 | android_builder, android_try_job = normal_builder_factory( |
| 673 | dimensions = {"os": "Linux"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 674 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 675 | ) |
| 676 | |
Mirko Bonadei | 5aafd47 | 2021-04-21 10:42:00 +0200 | [diff] [blame] | 677 | def win_builder(*args, **kwargs): |
| 678 | return ci_builder( |
| 679 | *args, |
| 680 | **merge_dicts({ |
| 681 | "dimensions": {"os": "Windows"}, |
| 682 | "properties": GOMA_BACKEND_RBE_ATS_PROD, |
| 683 | }, kwargs) |
| 684 | ) |
| 685 | |
| 686 | def win_try_job(*args, **kwargs): |
| 687 | return try_builder( |
| 688 | *args, |
| 689 | **merge_dicts({ |
| 690 | "dimensions": {"os": "Windows"}, |
| 691 | "properties": GOMA_BACKEND_RBE_NO_ATS_PROD, |
| 692 | }, kwargs) |
| 693 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 694 | |
| 695 | mac_builder, mac_try_job = normal_builder_factory( |
| 696 | dimensions = {"os": "Mac"}, |
Mirko Bonadei | 32ca486 | 2020-03-11 10:39:45 +0100 | [diff] [blame] | 697 | properties = GOMA_BACKEND_WEBRTC_RBE_PROD, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 698 | ) |
| 699 | |
| 700 | ios_builder, ios_try_job = normal_builder_factory( |
Mirko Bonadei | 8096c23 | 2020-08-26 21:44:42 +0200 | [diff] [blame] | 701 | dimensions = {"os": "Mac-10.15"}, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 702 | recipe = "ios", |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 703 | properties = GOMA_BACKEND_WEBRTC_IOS_RBE_PROD, |
| 704 | caches = [swarming.cache("osx_sdk")], |
| 705 | ) |
| 706 | |
| 707 | # Some iOS builders don't use goma because they build using |
| 708 | # `use_xcode_clang=true` which is not supported by goma. |
| 709 | # https://ci.chromium.org/p/webrtc/builders/ci/iOS%20API%20Framework%20Builder |
| 710 | # https://ci.chromium.org/p/webrtc/builders/try/ios_api_framework |
| 711 | ios_builder_no_goma, ios_try_job_no_goma = normal_builder_factory( |
Mirko Bonadei | 8096c23 | 2020-08-26 21:44:42 +0200 | [diff] [blame] | 712 | dimensions = {"os": "Mac-10.15"}, |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 713 | recipe = "ios", |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 714 | properties = {"$depot_tools/osx_sdk": {"sdk_version": "12a7209"}}, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 715 | caches = [swarming.cache("osx_sdk")], |
| 716 | ) |
| 717 | |
| 718 | # Actual builder configuration: |
| 719 | |
| 720 | android_builder("Android32 (M Nexus5X)(dbg)", "Android|arm|dbg") |
| 721 | android_try_job("android_compile_arm_dbg", cq = None) |
| 722 | android_try_job("android_arm_dbg") |
| 723 | android_builder("Android32 (M Nexus5X)", "Android|arm|rel") |
| 724 | android_try_job("android_arm_rel") |
| 725 | android_builder("Android32 Builder arm", "Android|arm|size", perf_cat = "Android|arm|Builder|", prioritized = True) |
| 726 | android_try_job("android_compile_arm_rel") |
Mirko Bonadei | 86b4f2d | 2020-07-08 14:24:48 +0200 | [diff] [blame] | 727 | android_perf_builder("Perf Android32 (M Nexus5)", "Android|arm|Tester|M Nexus5", triggered_by = ["Android32 Builder arm"]) |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 728 | android_perf_builder("Perf Android32 (M AOSP Nexus6)", "Android|arm|Tester|M AOSP Nexus6", triggered_by = ["Android32 Builder arm"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 729 | android_try_job("android_compile_arm64_dbg", cq = None) |
| 730 | android_try_job("android_arm64_dbg", cq = None) |
| 731 | android_builder("Android64 (M Nexus5X)", "Android|arm64|rel") |
| 732 | android_try_job("android_arm64_rel") |
| 733 | android_builder("Android64 Builder arm64", "Android|arm64|size", perf_cat = "Android|arm64|Builder|", prioritized = True) |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 734 | android_perf_builder("Perf Android64 (M Nexus5X)", "Android|arm64|Tester|M Nexus5X", triggered_by = ["Android64 Builder arm64"]) |
| 735 | android_perf_builder("Perf Android64 (O Pixel2)", "Android|arm64|Tester|O Pixel2", triggered_by = ["Android64 Builder arm64"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 736 | android_try_job("android_compile_arm64_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 737 | android_builder("Android64 Builder x64 (dbg)", "Android|x64|dbg") |
| 738 | android_try_job("android_compile_x64_dbg") |
| 739 | android_try_job("android_compile_x64_rel", cq = None) |
| 740 | android_builder("Android32 Builder x86 (dbg)", "Android|x86|dbg") |
| 741 | android_try_job("android_compile_x86_dbg") |
| 742 | android_builder("Android32 Builder x86", "Android|x86|rel") |
| 743 | android_try_job("android_compile_x86_rel") |
| 744 | android_builder("Android32 (more configs)", "Android|arm|more", recipe = "more_configs") |
| 745 | android_try_job("android_arm_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 746 | android_try_job("android_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 747 | |
| 748 | ios_builder("iOS32 Debug", "iOS|arm|dbg") |
| 749 | ios_try_job("ios_compile_arm_dbg") |
| 750 | ios_builder("iOS32 Release", "iOS|arm|rel") |
| 751 | ios_try_job("ios_compile_arm_rel") |
| 752 | ios_builder("iOS64 Debug", "iOS|arm64|dbg") |
| 753 | ios_try_job("ios_compile_arm64_dbg") |
| 754 | ios_builder("iOS64 Release", "iOS|arm64|rel") |
| 755 | ios_try_job("ios_compile_arm64_rel") |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 756 | ios_builder("iOS64 Sim Debug (iOS 14.0)", "iOS|x64|14") |
Mirko Bonadei | f1e0c0b | 2021-01-12 13:05:52 +0100 | [diff] [blame] | 757 | ios_try_job("ios_sim_x64_dbg_ios14", cq = None) |
Artem Titov | 1d47d31 | 2020-11-03 14:45:52 +0100 | [diff] [blame] | 758 | ios_builder("iOS64 Sim Debug (iOS 13)", "iOS|x64|13") |
Artem Titov | e973dd6 | 2020-11-03 18:05:21 +0100 | [diff] [blame] | 759 | ios_try_job("ios_sim_x64_dbg_ios13", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 760 | ios_builder("iOS64 Sim Debug (iOS 12)", "iOS|x64|12") |
Andrey Logvin | 34ac659 | 2021-02-04 13:03:49 +0000 | [diff] [blame] | 761 | |
| 762 | # TODO(crbug.com/1174112): return ios_sim_x64_dbg_ios12 to cq. |
| 763 | ios_try_job("ios_sim_x64_dbg_ios12", cq = None) |
Mirko Bonadei | 84360ca | 2020-03-12 08:35:48 +0100 | [diff] [blame] | 764 | ios_builder_no_goma("iOS API Framework Builder", "iOS|fat|size", recipe = "ios_api_framework", prioritized = True) |
Jeremy Leconte | ea2016b | 2020-07-01 09:47:22 +0200 | [diff] [blame] | 765 | ios_try_job_no_goma("ios_api_framework", recipe = "ios_api_framework", cq = None) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 766 | |
| 767 | linux_builder("Linux32 Debug", "Linux|x86|dbg") |
| 768 | linux_try_job("linux_x86_dbg") |
| 769 | linux_builder("Linux32 Release", "Linux|x86|rel") |
| 770 | linux_try_job("linux_x86_rel") |
| 771 | linux_builder("Linux64 Debug", "Linux|x64|dbg") |
| 772 | linux_try_job("linux_dbg", cq = None) |
| 773 | linux_try_job("linux_compile_dbg") |
| 774 | linux_builder("Linux64 Release", "Linux|x64|rel") |
| 775 | linux_try_job("linux_rel") |
| 776 | linux_builder("Linux64 Builder", "Linux|x64|size", perf_cat = "Linux|x64|Builder|", prioritized = True) |
| 777 | linux_try_job("linux_compile_rel") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 778 | linux_perf_builder("Perf Linux Trusty", "Linux|x64|Tester|Trusty", triggered_by = ["Linux64 Builder"]) |
| 779 | linux_perf_builder("Perf Linux Xenial", None, triggered_by = ["Linux64 Builder"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 780 | linux_builder("Linux32 Debug (ARM)", "Linux|arm|dbg") |
| 781 | linux_try_job("linux_compile_arm_dbg") |
| 782 | linux_builder("Linux32 Release (ARM)", "Linux|arm|rel") |
| 783 | linux_try_job("linux_compile_arm_rel") |
| 784 | linux_builder("Linux64 Debug (ARM)", "Linux|arm64|dbg") |
| 785 | linux_try_job("linux_compile_arm64_dbg") |
| 786 | linux_builder("Linux64 Release (ARM)", "Linux|arm64|rel") |
| 787 | linux_try_job("linux_compile_arm64_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 788 | linux_builder("Linux Asan", "Linux|x64|asan") |
| 789 | linux_try_job("linux_asan") |
| 790 | linux_builder("Linux MSan", "Linux|x64|msan") |
| 791 | linux_try_job("linux_msan") |
| 792 | linux_builder("Linux Tsan v2", "Linux|x64|tsan") |
| 793 | linux_try_job("linux_tsan2") |
| 794 | linux_builder("Linux UBSan", "Linux|x64|ubsan") |
| 795 | linux_try_job("linux_ubsan") |
| 796 | linux_builder("Linux UBSan vptr", "Linux|x64|ubsan") |
| 797 | linux_try_job("linux_ubsan_vptr") |
| 798 | linux_builder("Linux64 Release (Libfuzzer)", "Linux|x64|fuzz", recipe = "libfuzzer") |
| 799 | linux_try_job("linux_libfuzzer_rel", recipe = "libfuzzer") |
| 800 | linux_builder("Linux (more configs)", "Linux|x64|more", recipe = "more_configs") |
| 801 | linux_try_job("linux_more_configs", recipe = "more_configs") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 802 | linux_try_job("linux_chromium_compile", recipe = "chromium_trybot", branch_cq = False) |
Mirko Bonadei | 40de50f | 2019-11-07 11:23:47 +0100 | [diff] [blame] | 803 | linux_try_job("linux_chromium_compile_dbg", recipe = "chromium_trybot", branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 804 | |
| 805 | mac_builder("Mac64 Debug", "Mac|x64|dbg") |
| 806 | mac_try_job("mac_dbg", cq = None) |
| 807 | mac_try_job("mac_compile_dbg") |
| 808 | mac_builder("Mac64 Release", "Mac|x64|rel") |
Andrey Logvin | a950122 | 2021-04-27 18:08:39 +0000 | [diff] [blame] | 809 | mac_try_job("mac_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 810 | mac_try_job("mac_compile_rel", cq = None) |
| 811 | mac_builder("Mac64 Builder", ci_cat = None, perf_cat = "Mac|x64|Builder|") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 812 | mac_perf_builder("Perf Mac 10.11", "Mac|x64|Tester|10.11", triggered_by = ["Mac64 Builder"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 813 | mac_builder("Mac Asan", "Mac|x64|asan") |
Andrey Logvin | a950122 | 2021-04-27 18:08:39 +0000 | [diff] [blame] | 814 | mac_try_job("mac_asan") |
Oleh Prypin | 7d1cabe | 2019-03-14 15:10:30 +0100 | [diff] [blame] | 815 | mac_try_job("mac_chromium_compile", recipe = "chromium_trybot", dimensions = {"cores": "8"}, branch_cq = False) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 816 | |
| 817 | win_builder("Win32 Debug", "Win MSVC|x86|dbg") |
| 818 | win_try_job("win_x86_msvc_dbg") |
| 819 | win_try_job("win_compile_x86_msvc_dbg", cq = None) |
Oleh Prypin | 63041b8 | 2019-03-19 22:56:01 +0000 | [diff] [blame] | 820 | win_builder("Win32 Release", "Win MSVC|x86|rel") |
| 821 | win_try_job("win_x86_msvc_rel") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 822 | win_try_job("win_compile_x86_msvc_rel", cq = None) |
| 823 | win_builder("Win64 Debug", "Win MSVC|x64|dbg") |
| 824 | win_try_job("win_x64_msvc_dbg") |
| 825 | win_try_job("win_compile_x64_msvc_dbg", cq = None) |
| 826 | win_builder("Win64 Release", "Win MSVC|x64|rel") |
| 827 | win_try_job("win_x64_msvc_rel") |
| 828 | win_try_job("win_compile_x64_msvc_rel", cq = None) |
| 829 | win_builder("Win32 Debug (Clang)", "Win Clang|x86|dbg") |
| 830 | win_try_job("win_x86_clang_dbg", cq = None) |
| 831 | win_try_job("win_compile_x86_clang_dbg") |
| 832 | win_builder("Win32 Release (Clang)", "Win Clang|x86|rel") |
| 833 | win_try_job("win_x86_clang_rel") |
| 834 | win_try_job("win_compile_x86_clang_rel", cq = None) |
| 835 | win_builder("Win32 Builder (Clang)", ci_cat = None, perf_cat = "Win|x86|Builder|") |
Mirko Bonadei | 1264377 | 2020-03-27 13:16:35 +0100 | [diff] [blame] | 836 | win_perf_builder("Perf Win7", "Win|x86|Tester|7", triggered_by = ["Win32 Builder (Clang)"]) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 837 | win_builder("Win64 Debug (Clang)", "Win Clang|x64|dbg") |
| 838 | win_try_job("win_x64_clang_dbg", cq = None) |
| 839 | win_try_job("win_x64_clang_dbg_win8", cq = None) |
| 840 | win_try_job("win_x64_clang_dbg_win10", cq = None) |
| 841 | win_try_job("win_compile_x64_clang_dbg") |
| 842 | win_builder("Win64 Release (Clang)", "Win Clang|x64|rel") |
| 843 | win_try_job("win_x64_clang_rel", cq = None) |
| 844 | win_try_job("win_compile_x64_clang_rel") |
Mirko Bonadei | afbe33d | 2019-05-31 09:27:54 +0200 | [diff] [blame] | 845 | win_builder("Win64 ASan", "Win Clang|x64|asan") |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 846 | win_try_job("win_asan") |
| 847 | win_builder("Win64 UWP", ci_cat = None, fyi_cat = "") |
| 848 | win_try_job("win_x64_uwp", cq = None, try_cat = None, fyi_cat = "") |
| 849 | win_builder("Win (more configs)", "Win Clang|x86|more", recipe = "more_configs") |
| 850 | win_try_job("win_x86_more_configs", recipe = "more_configs") |
Mirko Bonadei | 825f9c2 | 2020-07-01 11:52:39 +0200 | [diff] [blame] | 851 | win_try_job("win_chromium_compile", recipe = "chromium_trybot", branch_cq = False, goma_jobs = 150) |
| 852 | win_try_job("win_chromium_compile_dbg", recipe = "chromium_trybot", branch_cq = False, goma_jobs = 150) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 853 | |
| 854 | linux_try_job( |
| 855 | "presubmit", |
| 856 | recipe = "run_presubmit", |
| 857 | properties = {"repo_name": "webrtc", "runhooks": True}, |
| 858 | priority = 28, |
| 859 | cq = {"disable_reuse": True}, |
| 860 | ) |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 861 | |
| 862 | cron_builder( |
| 863 | "Auto-roll - WebRTC DEPS", |
| 864 | recipe = "auto_roll_webrtc_deps", |
Oleh Prypin | dc68a72 | 2019-06-25 10:43:13 +0200 | [diff] [blame] | 865 | schedule = "0 */2 * * *", # Every 2 hours. |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 866 | ) |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 867 | |
Mirko Bonadei | 54bbd1c | 2020-12-14 15:54:46 +0100 | [diff] [blame] | 868 | cron_builder( |
| 869 | "WebRTC version update", |
| 870 | recipe = "update_webrtc_binary_version", |
| 871 | schedule = "0 4 * * *", # Every day at 4am. |
| 872 | service_account = "webrtc-version-updater@webrtc-ci.iam.gserviceaccount.com", |
| 873 | ) |
| 874 | |
Mirko Bonadei | ab3ff26 | 2020-12-18 10:17:43 +0100 | [diff] [blame] | 875 | skipped_lkgr_bots = [ |
| 876 | "iOS64 Sim Debug (iOS 14.0)", |
| 877 | "iOS64 Sim Debug (iOS 13)", |
| 878 | "iOS64 Sim Debug (iOS 12)", |
| 879 | ] |
| 880 | |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 881 | lkgr_config = { |
| 882 | "project": "webrtc", |
| 883 | "source_url": WEBRTC_GIT, |
| 884 | "status_url": "https://webrtc-status.appspot.com", |
| 885 | "allowed_lag": 300, # hours |
| 886 | "allowed_gap": 12, # commits behind |
Mirko Bonadei | 450e9b7 | 2020-07-10 19:19:22 +0000 | [diff] [blame] | 887 | "error_recipients": "webrtc-troopers-robots@google.com", |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 888 | "buckets": { |
| 889 | "webrtc/ci": { |
| 890 | # bucket alias: luci.webrtc.ci |
Mirko Bonadei | ab3ff26 | 2020-12-18 10:17:43 +0100 | [diff] [blame] | 891 | "builders": [ |
| 892 | b |
| 893 | for b in sorted(lkgr_builders) |
| 894 | if b not in skipped_lkgr_bots |
| 895 | ], |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 896 | }, |
Michael Achenbach | 09dd7dc | 2019-07-26 15:26:11 +0200 | [diff] [blame] | 897 | "chromium/webrtc.fyi": { |
| 898 | # bucket alias: luci.chromium.webrtc.fyi |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 899 | "builders": [ |
| 900 | "WebRTC Chromium FYI Android Builder (dbg)", |
| 901 | "WebRTC Chromium FYI Android Builder ARM64 (dbg)", |
| 902 | "WebRTC Chromium FYI Android Builder", |
Mirko Bonadei | 04fe32f | 2020-05-01 00:45:58 +0200 | [diff] [blame] | 903 | "WebRTC Chromium FYI Android Tests (dbg) (L Nexus5)", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 904 | "WebRTC Chromium FYI Android Tests (dbg) (M Nexus5X)", |
| 905 | "WebRTC Chromium FYI Linux Builder (dbg)", |
| 906 | "WebRTC Chromium FYI Linux Builder", |
| 907 | "WebRTC Chromium FYI Linux Tester", |
| 908 | "WebRTC Chromium FYI Mac Builder (dbg)", |
| 909 | "WebRTC Chromium FYI Mac Builder", |
| 910 | "WebRTC Chromium FYI Mac Tester", |
| 911 | "WebRTC Chromium FYI Win Builder (dbg)", |
| 912 | "WebRTC Chromium FYI Win Builder", |
| 913 | "WebRTC Chromium FYI Win10 Tester", |
Mirko Bonadei | f1ef929 | 2021-03-25 18:07:48 +0100 | [diff] [blame] | 914 | # TODO(bugs.webrtc.org/12616): Re-enable when the gclient |
| 915 | # runhooks step is fixed or skipped. |
| 916 | # "WebRTC Chromium FYI Win7 Tester", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 917 | "WebRTC Chromium FYI Win8 Tester", |
Mirko Bonadei | 2f05cfe | 2020-11-25 10:41:58 +0100 | [diff] [blame] | 918 | "WebRTC Chromium FYI ios-device", |
| 919 | "WebRTC Chromium FYI ios-simulator", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 920 | ], |
| 921 | }, |
| 922 | }, |
| 923 | } |
| 924 | |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 925 | cron_builder( |
| 926 | "WebRTC lkgr finder", |
| 927 | recipe = "lkgr_finder", |
Oleh Prypin | 8f0dc31 | 2019-05-31 15:54:35 +0200 | [diff] [blame] | 928 | properties = { |
| 929 | "project": "webrtc", |
| 930 | "repo": WEBRTC_GIT, |
| 931 | "ref": "refs/heads/lkgr", |
| 932 | "lkgr_status_gs_path": "chromium-webrtc/lkgr-status", |
| 933 | "config": lkgr_config, |
| 934 | }, |
Oleh Prypin | 1a0593f | 2019-03-11 09:43:28 +0100 | [diff] [blame] | 935 | schedule = "*/10 * * * *", # Every 10 minutes. |
| 936 | ) |