123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- # Copyright 2020 The Chromium Authors. All rights reserved.
- # Use of this source code is governed by a BSD-style license that can be
- # found in the LICENSE file.
- load("//lib/branches.star", "branches")
- luci.notifier(
- name = "chromesec-lkgr-failures",
- on_status_change = True,
- notify_emails = [
- "chromesec-lkgr-failures@google.com",
- ],
- )
- luci.notifier(
- name = "chrome-lacros-engprod-alerts",
- on_status_change = True,
- notify_emails = [
- "chrome-lacros-engprod-alerts@google.com",
- ],
- )
- luci.notifier(
- name = "chrome-memory-safety",
- on_status_change = True,
- notify_emails = [
- "chrome-memory-safety+bots@google.com",
- ],
- )
- luci.notifier(
- name = "chrome-rust-experiments",
- on_new_status = ["FAILURE", "INFRA_FAILURE"],
- notify_emails = [
- "chrome-rust-experiments+bots@google.com",
- ],
- )
- # Notifier for "package rust" step on *_upload_clang bots.
- luci.notifier(
- name = "chrome-rust-toolchain",
- # Watch for Rust failure regardless of the overall build status.
- on_occurrence = ["SUCCESS", "FAILURE", "INFRA_FAILURE"],
- failed_step_regexp = "package rust",
- notify_emails = [
- "chrome-rust-experiments+toolchain@google.com",
- ],
- )
- luci.notifier(
- name = "chrome-memory-sheriffs",
- on_status_change = True,
- notify_emails = [
- "chrome-memory-sheriffs+bots@google.com",
- ],
- )
- luci.notifier(
- name = "chromium-androidx-packager",
- on_new_status = ["FAILURE"],
- notify_emails = [
- "clank-library-failures+androidx@google.com",
- ],
- )
- luci.notifier(
- name = "chromium-3pp-packager",
- on_new_status = ["FAILURE"],
- notify_emails = [
- "chromium-3pp-packager+failures@google.com",
- ],
- )
- luci.notifier(
- name = "cr-fuchsia",
- on_status_change = True,
- notify_emails = [
- "chrome-fuchsia-gardener@grotations.appspotmail.com",
- ],
- )
- luci.notifier(
- name = "cr-fuchsia-engprod",
- on_status_change = True,
- notify_emails = [
- "chrome-fuchsia-engprod+builder-notification@google.com",
- ],
- )
- luci.notifier(
- name = "cronet",
- on_occurrence = ["FAILURE", "INFRA_FAILURE"],
- notify_emails = [
- "cronet-sheriff@grotations.appspotmail.com",
- ],
- )
- luci.notifier(
- name = "metadata-mapping",
- on_new_status = ["FAILURE"],
- notify_emails = ["chromium-component-mapping@google.com"],
- )
- luci.notifier(
- name = "weblayer-sheriff",
- on_new_status = ["FAILURE"],
- notify_emails = [
- "weblayer-sheriff@grotations.appspotmail.com",
- ],
- )
- TREE_CLOSING_STEPS_REGEXP = "\\b({})\\b".format("|".join([
- "bot_update",
- "compile",
- "gclient runhooks",
- "runhooks",
- "update",
- "\\w*nocompile_test",
- ]))
- # This results in a notifier with no recipients, so nothing will actually be
- # notified. This still creates a "notifiable" that can be passed to the notifies
- # argument of a builder, so conditional logic doesn't need to be used when
- # setting the argument and erroneous tree closure notifications won't be sent
- # for failures on branches.
- def _empty_notifier(*, name):
- luci.notifier(
- name = name,
- on_new_status = ["INFRA_FAILURE"],
- )
- def tree_closer(*, name, tree_status_host, **kwargs):
- if branches.matches(branches.MAIN):
- luci.tree_closer(
- name = name,
- tree_status_host = tree_status_host,
- **kwargs
- )
- else:
- _empty_notifier(name = name)
- tree_closer(
- name = "chromium-tree-closer",
- tree_status_host = "chromium-status.appspot.com",
- failed_step_regexp = TREE_CLOSING_STEPS_REGEXP,
- )
- tree_closer(
- name = "close-on-any-step-failure",
- tree_status_host = "chromium-status.appspot.com",
- )
- def tree_closure_notifier(*, name, **kwargs):
- if branches.matches(branches.MAIN):
- luci.notifier(
- name = name,
- on_occurrence = ["FAILURE"],
- failed_step_regexp = TREE_CLOSING_STEPS_REGEXP,
- **kwargs
- )
- else:
- _empty_notifier(name = name)
- tree_closure_notifier(
- name = "chromium-tree-closer-email",
- notify_rotation_urls = [
- "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-build-sheriff",
- ],
- template = luci.notifier_template(
- name = "tree_closure_email_template",
- body = io.read_file("templates/tree_closure_email.template"),
- ),
- )
- tree_closure_notifier(
- name = "gpu-tree-closer-email",
- notify_emails = ["chrome-gpu-build-failures@google.com"],
- notify_rotation_urls = [
- "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-gpu-pixel-wrangler-weekly",
- ],
- )
- tree_closure_notifier(
- name = "linux-memory",
- notify_emails = ["thomasanderson@chromium.org"],
- )
- tree_closure_notifier(
- name = "linux-archive-rel",
- notify_emails = ["thomasanderson@chromium.org"],
- )
- tree_closure_notifier(
- name = "Deterministic Android",
- notify_emails = ["agrieve@chromium.org"],
- )
- tree_closure_notifier(
- name = "Deterministic Linux",
- notify_emails = [
- "tikuta@chromium.org",
- "ukai@chromium.org",
- "yyanagisawa@chromium.org",
- ],
- )
- tree_closure_notifier(
- name = "linux-ozone-rel",
- notify_emails = [
- "fwang@chromium.org",
- "maksim.sisov@chromium.org",
- "rjkroege@chromium.org",
- "thomasanderson@chromium.org",
- "timbrown@chromium.org",
- "tonikitoo@chromium.org",
- ],
- )
- luci.notifier(
- name = "Site Isolation Android",
- notify_emails = [
- "nasko+fyi-bots@chromium.org",
- "creis+fyi-bots@chromium.org",
- "lukasza+fyi-bots@chromium.org",
- "alexmos+fyi-bots@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "CFI Linux",
- notify_emails = [
- "pcc@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "Win 10 Fast Ring",
- notify_emails = [
- "wfh@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "linux-blink-fyi-bots",
- notify_emails = [
- "mlippautz+fyi-bots@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "annotator-rel",
- notify_emails = [
- "pastarmovj@chromium.org",
- "nicolaso@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "headless-owners",
- notify_emails = [
- "headless-owners@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- tree_closure_notifier(
- name = "chromium.linux",
- notify_emails = [
- "thomasanderson@chromium.org",
- ],
- )
- luci.notifier(
- name = "v8-sandbox-fyi-bots",
- notify_emails = [
- "saelo+fyi-bots@chromium.org",
- ],
- on_new_status = ["FAILURE"],
- )
- luci.notifier(
- name = "cr-accessibility",
- notify_emails = [
- "chrome-a11y-alerts@google.com",
- ],
- on_new_status = ["FAILURE"],
- )
|