Introduce post-submit CI and console
We can decide to remove this later, but we should try it e2e now while
LUCI members are assisting us.
Release-Notes: skip
Change-Id: Id47a6605bb757fe14a53041fd100c6f810d0b94b
diff --git a/generated/luci-milo.cfg b/generated/luci-milo.cfg
new file mode 100644
index 0000000..597b599
--- /dev/null
+++ b/generated/luci-milo.cfg
@@ -0,0 +1,16 @@
+# Auto-generated by lucicfg.
+# Do not modify manually.
+#
+# For the schema of this file, see Project message:
+# https://luci-config.appspot.com/schemas/projects:luci-milo.cfg
+
+consoles {
+ id: "luci-test CI builders"
+ name: "luci-test CI builders"
+ repo_url: "https://gerrit.googlesource.com/luci-test"
+ refs: "regexp:refs/heads/main"
+ manifest_name: "REVISION"
+ builders {
+ name: "buildbucket/luci.gerrit.ci/Verify luci-test CL"
+ }
+}
diff --git a/generated/luci-scheduler.cfg b/generated/luci-scheduler.cfg
index 9b580dc..cd2b8dd 100644
--- a/generated/luci-scheduler.cfg
+++ b/generated/luci-scheduler.cfg
@@ -14,3 +14,21 @@
builder: "Example Builder"
}
}
+job {
+ id: "Verify luci-test CL"
+ realm: "ci"
+ buildbucket {
+ server: "cr-buildbucket.appspot.com"
+ bucket: "ci"
+ builder: "Verify luci-test CL"
+ }
+}
+trigger {
+ id: "luci-test main source"
+ realm: "ci"
+ triggers: "Verify luci-test CL"
+ gitiles {
+ repo: "https://gerrit.googlesource.com/luci-test"
+ refs: "regexp:refs/heads/main"
+ }
+}
diff --git a/main.star b/main.star
index 12f9604..300dc41 100755
--- a/main.star
+++ b/main.star
@@ -142,3 +142,25 @@
builder = "try/Verify luci-test CL",
cq_group = "luci-test_repo",
)
+
+# Runs luci-test tests after any merged change
+luci.gitiles_poller(
+ name = "luci-test main source",
+ bucket = "ci",
+ repo = "https://gerrit.googlesource.com/luci-test",
+
+ # by default this will scan "refs/heads/main"; Supply the `refs` argument
+ # if you want something else.
+
+ triggers = ["ci/Verify luci-test CL"],
+)
+
+# This console view will appear on https://ci.chromium.org/p/gerrit and display
+# current luci-test build status at HEAD
+luci.console_view(
+ name = 'luci-test CI builders',
+ repo = "https://gerrit.googlesource.com/luci-test",
+ entries = [
+ luci.console_view_entry(builder='ci/Verify luci-test CL'),
+ ],
+)