Frank Borden | 81b9fea | 2023-02-24 13:02:02 +0100 | [diff] [blame] | 1 | # 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. |
| 8 | luci.builder( |
Frank Borden | 16c6093 | 2023-03-09 12:33:31 +0100 | [diff] [blame] | 9 | 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 Borden | 81b9fea | 2023-02-24 13:02:02 +0100 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | # Create a CQ group to watch luci-test repo for changes. |
| 24 | luci.cq_group( |
Frank Borden | 16c6093 | 2023-03-09 12:33:31 +0100 | [diff] [blame] | 25 | 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 Borden | 81b9fea | 2023-02-24 13:02:02 +0100 | [diff] [blame] | 46 | ), |
Frank Borden | 81b9fea | 2023-02-24 13:02:02 +0100 | [diff] [blame] | 47 | ) |
| 48 | |
| 49 | # Attach our "Verify luci-test CL" builder to this CQ group. |
| 50 | luci.cq_tryjob_verifier( |
Frank Borden | 16c6093 | 2023-03-09 12:33:31 +0100 | [diff] [blame] | 51 | 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 Borden | 81b9fea | 2023-02-24 13:02:02 +0100 | [diff] [blame] | 59 | ) |