1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
infra / config / dev / dev.star [blame]
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# See https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/doc/README.md
# for information on starlark/lucicfg
load("//lib/chrome_settings.star", "chrome_settings")
luci.project(
name = "chromium",
config_dir = "luci",
dev = True,
buildbucket = "cr-buildbucket-dev.appspot.com",
logdog = "luci-logdog-dev.appspot.com",
milo = "luci-milo-dev.appspot.com",
scheduler = "luci-scheduler-dev.appspot.com",
swarming = "chromium-swarm-dev.appspot.com",
acls = [
acl.entry(
roles = [
acl.LOGDOG_READER,
acl.PROJECT_CONFIGS_READER,
acl.SCHEDULER_READER,
],
groups = "all",
),
acl.entry(
roles = acl.LOGDOG_WRITER,
groups = "luci-logdog-chromium-dev-writers",
),
acl.entry(
roles = acl.SCHEDULER_OWNER,
groups = "project-chromium-admins",
),
],
bindings = [
# Roles for LUCI Analysis.
luci.binding(
roles = "role/analysis.reader",
groups = "all",
),
luci.binding(
roles = "role/analysis.queryUser",
groups = "authenticated-users",
),
luci.binding(
roles = "role/analysis.editor",
groups = ["project-chromium-committers", "googlers"],
),
],
)
luci.logdog(
gs_bucket = "chromium-luci-logdog",
)
luci.milo(
logo = "https://storage.googleapis.com/chrome-infra-public/logo/chromium.svg",
)
chrome_settings.per_builder_outputs(
root_dir = "builders-dev",
)
# An all-purpose public realm.
luci.realm(
name = "public",
bindings = [
luci.binding(
roles = "role/buildbucket.reader",
groups = "all",
),
luci.binding(
roles = "role/resultdb.invocationCreator",
groups = "luci-resultdb-access",
),
# Other roles are inherited from @root which grants them to group:all.
],
)
# @project realm.
luci.realm(
name = "@project",
bindings = [
# Allow everyone (including non-logged-in users) to see chromium tree status.
luci.binding(
roles = "role/treestatus.limitedReader",
groups = [
"all",
],
),
# Only allow Googlers to see PII.
luci.binding(
roles = "role/treestatus.reader",
groups = [
"googlers",
],
users = [
"luci-notify-dev@appspot.gserviceaccount.com",
],
),
# Only allow Googlers and service accounts.
luci.binding(
roles = "role/treestatus.writer",
groups = [
"googlers",
],
users = [
"luci-notify-dev@appspot.gserviceaccount.com",
],
),
],
)
luci.builder.defaults.test_presentation.set(resultdb.test_presentation(grouping_keys = ["status", "v.test_suite"]))
exec("//dev/swarming.star")
exec("//recipes.star")
exec("//gn_args/gn_args.star")
exec("//targets/basic_suites.star")
exec("//targets/binaries.star")
exec("//targets/bundles.star")
exec("//targets/compile_targets.star")
exec("//targets/compound_suites.star")
exec("//targets/matrix_compound_suites.star")
exec("//targets/mixins.star")
exec("//targets/tests.star")
exec("//targets/variants.star")
exec("//dev/subprojects/chromium/subproject.star")