go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/tricium/mismatch_owner_whitelist.star (about)

     1  luci.project(
     2      name = "foo",
     3      tricium = "tricium-prod.appspot.com",
     4  )
     5  
     6  luci.cq_group(
     7      name = "main",
     8      watch = cq.refset("https://example.googlesource.com/repo1"),
     9      acls = [
    10          acl.entry(acl.CQ_COMMITTER, groups = ["committer"]),
    11      ],
    12      verifiers = [
    13          luci.cq_tryjob_verifier(
    14              builder = "infra:analyzer/spell-checker",
    15              owner_whitelist = ["project-contributor"],
    16              mode_allowlist = [cq.MODE_ANALYZER_RUN],
    17          ),
    18          luci.cq_tryjob_verifier(
    19              builder = "infra:analyzer/format-checker",
    20              owner_whitelist = ["all"],
    21              mode_allowlist = [cq.MODE_ANALYZER_RUN],
    22          ),
    23      ],
    24  )
    25  
    26  # Expect errors like:
    27  #
    28  # Traceback (most recent call last):
    29  #   //testdata/tricium/mismatch_owner_whitelist.star: in <toplevel>
    30  #   ...
    31  # Error: analyzer luci.cq_tryjob_verifier("format-checker") has different owner_whitelist from other analyzers in the config group luci.cq_group("main")