Add realms.cfg to LUCI configs.
This is a part of an ongoing migration, see the bug.
Denote the project configs as publicly readable (they are
just be being defined in a public repository).
Explicitly specify `refs/heads/master` as a ref for CQ, since
lucicfg now defaults to `refs/heads/main` (and SwiftShader repo
doesn't have it).
Finally, run `lucicfg fmt .` to normalize string quoting.
R=ynovikov@chromium.org
CC=tandrii@chromium.org
BUG=chromium:1068817
Change-Id: If0db5688639ba8a041cbf514506ece902853cd46
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/57828
Reviewed-by: Yuly Novikov <ynovikov@google.com>
Presubmit-Ready: Yuly Novikov <ynovikov@google.com>
Tested-by: Yuly Novikov <ynovikov@google.com>
Commit-Queue: Yuly Novikov <ynovikov@google.com>
diff --git a/infra/config/generated/project.cfg b/infra/config/generated/project.cfg
index 6b89351..559c467 100644
--- a/infra/config/generated/project.cfg
+++ b/infra/config/generated/project.cfg
@@ -5,3 +5,4 @@
# https://luci-config.appspot.com/schemas/projects:project.cfg
name: "swiftshader"
+access: "group:all"
diff --git a/infra/config/generated/realms.cfg b/infra/config/generated/realms.cfg
new file mode 100644
index 0000000..86efc47
--- /dev/null
+++ b/infra/config/generated/realms.cfg
@@ -0,0 +1,13 @@
+# Auto-generated by lucicfg.
+# Do not modify manually.
+#
+# For the schema of this file, see RealmsCfg message:
+# https://luci-config.appspot.com/schemas/projects:realms.cfg
+
+realms {
+ name: "@root"
+ bindings {
+ role: "role/configs.reader"
+ principals: "group:all"
+ }
+}
diff --git a/infra/config/main.star b/infra/config/main.star
index b7d9e49..4c7d9f9 100755
--- a/infra/config/main.star
+++ b/infra/config/main.star
@@ -1,32 +1,44 @@
#!/usr/bin/env lucicfg
+# Enable LUCI Realms support.
+lucicfg.enable_experiment("crbug.com/1085650")
+
luci.project(
name = "swiftshader",
+ acls = [
+ acl.entry(
+ acl.PROJECT_CONFIGS_READER,
+ groups = "all",
+ ),
+ ],
)
luci.cq_group(
- name = 'SwiftShader-CQ',
- watch = cq.refset('https://swiftshader.googlesource.com/SwiftShader'),
+ name = "SwiftShader-CQ",
+ watch = cq.refset(
+ repo = "https://swiftshader.googlesource.com/SwiftShader",
+ refs = ["refs/heads/master"],
+ ),
acls = [
acl.entry(
acl.CQ_COMMITTER,
- groups = 'project-swiftshader-committers',
+ groups = "project-swiftshader-committers",
),
acl.entry(
acl.CQ_DRY_RUNNER,
- groups = 'project-swiftshader-tryjob-access',
+ groups = "project-swiftshader-tryjob-access",
),
],
verifiers = [
luci.cq_tryjob_verifier(
- builder = 'chromium:try/linux-swangle-try-tot-swiftshader-x64',
+ builder = "chromium:try/linux-swangle-try-tot-swiftshader-x64",
),
luci.cq_tryjob_verifier(
- builder = 'chromium:try/win-swangle-try-tot-swiftshader-x86',
+ builder = "chromium:try/win-swangle-try-tot-swiftshader-x86",
),
],
)
luci.cq(
- status_host = 'chromium-cq-status.appspot.com',
+ status_host = "chromium-cq-status.appspot.com",
)