blob: 461368f7c847bd4036813c1d859e06b7e56d7de3 [file] [log] [blame]
Frank Borden81b9fea2023-02-24 13:02:02 +01001# This is configuration for LUCI for the luci-test repo
2# https://gerrit.googlesource.com/luci-test
3
4# Builders
5
6# Defines a builder to run the "luci-test" recipe in a given bucket. This will
7# be hooked up to the CQ label rather than having a set schedule.
8luci.builder(
Frank Borden16c60932023-03-09 12:33:31 +01009 name = "Verify luci-test CL",
10 bucket = "try",
11 executable = luci.recipe(
12 # The name of the recipe we just made.
13 name = "luci-test",
14 ),
15 service_account = "gerrit-luci-try-builder@gerritcodereview-ci.iam.gserviceaccount.com",
16 dimensions = {
17 "os": "Ubuntu",
18 "cpu": "x86-64",
19 "pool": "luci.gerrit.try",
20 },
Frank Borden81b9fea2023-02-24 13:02:02 +010021)
22
23# Create a CQ group to watch luci-test repo for changes.
24luci.cq_group(
Frank Borden16c60932023-03-09 12:33:31 +010025 name = "luci-test_repo",
26 acls = [
27 # Everyone can trigger dry runs by voting CQ+1
28 acl.entry(
29 acl.CQ_DRY_RUNNER,
30 groups = "all",
31 ),
32 # Everyone can Trigger dry runs by uploading a new patchset
33 acl.entry(
34 acl.CQ_NEW_PATCHSET_RUN_TRIGGERER,
35 groups = "all",
36 ),
37 # Only project-gerrit-committers can submit by voting CQ+2
38 acl.entry(
39 acl.CQ_COMMITTER,
40 groups = "project-gerrit-committers",
41 ),
42 ],
43 watch = cq.refset(
44 repo = "https://gerrit.googlesource.com/luci-test",
45 refs = ["refs/heads/.+"], # will watch all branches
Frank Borden81b9fea2023-02-24 13:02:02 +010046 ),
Frank Borden81b9fea2023-02-24 13:02:02 +010047)
48
49# Attach our "Verify luci-test CL" builder to this CQ group.
50luci.cq_tryjob_verifier(
Frank Borden16c60932023-03-09 12:33:31 +010051 builder = "try/Verify luci-test CL",
52 cq_group = "luci-test_repo",
53 # Add NEW_PATCHSET_RUN to the defaults DRY_RUN and FULL_RUN
54 mode_allowlist = [
55 cq.MODE_DRY_RUN,
56 cq.MODE_FULL_RUN,
57 cq.MODE_NEW_PATCHSET_RUN,
58 ],
Frank Borden81b9fea2023-02-24 13:02:02 +010059)