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

     1  luci.project(
     2      name = "zzz",
     3      buildbucket = "cr-buildbucket.appspot.com",
     4      scheduler = "luci-scheduler.appspot.com",
     5      swarming = "chromium-swarm.appspot.com",
     6  )
     7  luci.bucket(name = "bucket")
     8  luci.recipe(name = "noop", cipd_package = "noop")
     9  
    10  luci.builder(
    11      name = "confused",
    12      bucket = "bucket",
    13      executable = "noop",
    14  )
    15  
    16  luci.cq_group(
    17      name = "main",
    18      watch = cq.refset("https://example.googlesource.com/repo1"),
    19      acls = [
    20          acl.entry(acl.CQ_COMMITTER, groups = ["committer"]),
    21      ],
    22      verifiers = [
    23          luci.cq_tryjob_verifier(
    24              builder = "confused",
    25              includable_only = True,
    26              experiment_percentage = 10.0,
    27          ),
    28      ],
    29  )
    30  
    31  # Expect errors like:
    32  #
    33  # Traceback (most recent call last):
    34  #   //testdata/cq/includable_only.star: in <toplevel>
    35  #   ...
    36  # Error: "includable_only" can not be used together with "experiment_percentage"