go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/luci_notify/api/config/testdata/basic.cfg (about)

     1  # Copyright 2017 The LUCI Authors. All rights reserved.
     2  # Use of this source code is governed under the Apache License, Version 2.0
     3  # that can be found in the LICENSE file.
     4  
     5  notifiers {
     6    name: "basic"
     7    notifications {
     8      on_occurrence: FAILURE
     9      email {
    10        recipients: "test-example-failure@google.com"
    11      }
    12    }
    13    notifications {
    14      on_occurrence: SUCCESS
    15      email {
    16        recipients: "test-example-success@google.com"
    17      }
    18    }
    19    notifications {
    20      on_new_status: SUCCESS
    21      on_new_status: FAILURE
    22      on_new_status: INFRA_FAILURE
    23      email {
    24        recipients: "test-example-change@google.com"
    25      }
    26      template: "default"
    27    }
    28    builders {
    29      name: "test-builder-no-repo"
    30      bucket: "ci"
    31    }
    32    builders {
    33      name: "test-builder-1"
    34      bucket: "ci"
    35      repository: "https://chromium.googlesource.com/chromium/src"
    36    }
    37    builders {
    38      name: "test-builder-2"
    39      bucket: "ci"
    40      repository: "https://chromium.googlesource.com/chromium/src"
    41    }
    42    builders {
    43      name: "test-builder-3"
    44      bucket: "ci"
    45      repository: "https://chromium.googlesource.com/chromium/src"
    46    }
    47    builders {
    48      name: "test-builder-4"
    49      bucket: "ci"
    50      repository: "https://chromium.googlesource.com/chromium/src"
    51    }
    52  }
    53  
    54  notifiers {
    55    name: "infra failures only"
    56    notifications {
    57      on_occurrence: INFRA_FAILURE
    58      email {
    59        recipients: "test-example-infra-failure@google.com"
    60      }
    61    }
    62    builders {
    63      name: "test-builder-infra-1"
    64      bucket: "ci"
    65      repository: "https://chromium.googlesource.com/chromium/src"
    66    }
    67  }
    68  
    69  notifiers {
    70    name: "failures and infra failures"
    71    notifications {
    72      on_occurrence: FAILURE
    73      on_occurrence: INFRA_FAILURE
    74      email {
    75        recipients: "test-example-failure-and-infra-failure@google.com"
    76      }
    77    }
    78    builders {
    79      name: "test-builder-failure-and-infra-failures-1"
    80      bucket: "ci"
    81      repository: "https://chromium.googlesource.com/chromium/src"
    82    }
    83  }
    84  
    85  notifiers {
    86    name: "blamelist-no-allowlist"
    87    notifications {
    88      on_new_status: SUCCESS
    89      on_new_status: FAILURE
    90      on_new_status: INFRA_FAILURE
    91      email {
    92        recipients: "test-example-change@google.com"
    93      }
    94      template: "default"
    95      notify_blamelist {}
    96    }
    97    builders {
    98      name: "test-builder-blamelist-1"
    99      bucket: "ci"
   100      repository: "https://chromium.googlesource.com/chromium/src"
   101    }
   102  }
   103  
   104  notifiers {
   105    name: "blamelist-with-allowlist"
   106    notifications {
   107      on_new_status: SUCCESS
   108      on_new_status: FAILURE
   109      on_new_status: INFRA_FAILURE
   110      email {
   111        recipients: "test-example-change@google.com"
   112      }
   113      template: "default"
   114      notify_blamelist {
   115        repository_allowlist: "https://chromium.googlesource.com/third_party/hello"
   116      }
   117    }
   118    builders {
   119      name: "test-builder-blamelist-2"
   120      bucket: "ci"
   121      repository: "https://chromium.googlesource.com/chromium/src"
   122    }
   123  }
   124  
   125  notifiers {
   126    name: "blamelist-mixed"
   127    notifications {
   128      on_new_status: SUCCESS
   129      on_new_status: FAILURE
   130      on_new_status: INFRA_FAILURE
   131      template: "default"
   132      notify_blamelist {
   133        repository_allowlist: "https://chromium.googlesource.com/third_party/hello"
   134      }
   135    }
   136    notifications {
   137      on_new_status: SUCCESS
   138      on_new_status: FAILURE
   139      on_new_status: INFRA_FAILURE
   140      template: "default"
   141      notify_blamelist {}
   142    }
   143    builders {
   144      name: "test-builder-blamelist-3"
   145      bucket: "ci"
   146      repository: "https://chromium.googlesource.com/chromium/src"
   147    }
   148  }
   149  
   150  notifiers {
   151    name: "blamelist-duplicate"
   152    notifications {
   153      on_new_status: SUCCESS
   154      on_new_status: FAILURE
   155      on_new_status: INFRA_FAILURE
   156      template: "hello"
   157      notify_blamelist {
   158        repository_allowlist: "https://chromium.googlesource.com/chromium/src"
   159      }
   160    }
   161    notifications {
   162      on_new_status: SUCCESS
   163      on_new_status: FAILURE
   164      on_new_status: INFRA_FAILURE
   165      template: "goodbye"
   166      notify_blamelist {
   167        repository_allowlist: "https://chromium.googlesource.com/chromium/src"
   168      }
   169    }
   170    notifications {
   171      on_new_status: SUCCESS
   172      on_new_status: FAILURE
   173      on_new_status: INFRA_FAILURE
   174      template: "default"
   175      notify_blamelist {}
   176    }
   177    builders {
   178      name: "test-builder-blamelist-4"
   179      bucket: "ci"
   180      repository: "https://chromium.googlesource.com/chromium/src"
   181    }
   182  }
   183  
   184  notifiers {
   185    name: "tree-closers"
   186    tree_closers {
   187      tree_status_host: "chromium-status.appspot.com"
   188      failed_step_regexp: "include"
   189      failed_step_regexp_exclude: "exclude"
   190    }
   191    builders {
   192      name: "test-builder-tree-closer"
   193      bucket: "ci"
   194      repository: "https://chromium.googlesource.com/chromium/src"
   195    }
   196  }