Add logos for ci.chromium.org
Also make consistent indentation in main.star file
Change-Id: Ie6f3b7550cad143706064308fcd5a79f6a648bfc
diff --git a/generated/luci-milo.cfg b/generated/luci-milo.cfg
index 597b599..42c5880 100644
--- a/generated/luci-milo.cfg
+++ b/generated/luci-milo.cfg
@@ -13,4 +13,6 @@
builders {
name: "buildbucket/luci.gerrit.ci/Verify luci-test CL"
}
+ favicon_url: "https://storage.googleapis.com/static-assets-luci/favicon.ico"
}
+logo_url: "https://storage.googleapis.com/static-assets-luci/diffymute.svg"
diff --git a/main.star b/main.star
index eda7555..d54f561 100755
--- a/main.star
+++ b/main.star
@@ -105,71 +105,71 @@
cipd_version = "refs/heads/main"
luci.builder(
- name = "Example Builder",
- bucket = "ci",
- executable = luci.recipe(
- # The name of the recipe we just added.
- name = "hello_world",
- ),
- service_account = "luci-tasks@gerritcodereview-ci.iam.gserviceaccount.com",
- schedule = "with 1m interval",
+ name = "Example Builder",
+ bucket = "ci",
+ executable = luci.recipe(
+ # The name of the recipe we just added.
+ name = "hello_world",
+ ),
+ service_account = "luci-tasks@gerritcodereview-ci.iam.gserviceaccount.com",
+ schedule = "with 1m interval",
)
# Defines a builder to run the "luci-test" recipe in a given bucket. This will
# be hooked up to the CQ label rather than having a set schedule.
def verify_luci_test_builder(bucket):
- luci.builder(
- name = "Verify luci-test CL",
- bucket = bucket,
- executable = luci.recipe(
- # The name of the recipe we just made.
- name = "luci-test",
- ),
- service_account = "gerrit-luci-%s-builder@gerritcodereview-ci.iam.gserviceaccount.com" % bucket,
- dimensions = {
- "os": "Ubuntu",
- "cpu": "x86-64",
- "pool": "luci.gerrit.%s" % bucket,
- },
- )
+ luci.builder(
+ name = "Verify luci-test CL",
+ bucket = bucket,
+ executable = luci.recipe(
+ # The name of the recipe we just made.
+ name = "luci-test",
+ ),
+ service_account = "gerrit-luci-%s-builder@gerritcodereview-ci.iam.gserviceaccount.com" % bucket,
+ dimensions = {
+ "os": "Ubuntu",
+ "cpu": "x86-64",
+ "pool": "luci.gerrit.%s" % bucket,
+ },
+ )
verify_luci_test_builder("try")
verify_luci_test_builder("ci")
# Create a CQ group to watch luci-test repo for changes.
luci.cq_group(
- name = "luci-test_repo",
- acls = [
- # Everyone can trigger dry runs by voting CQ+1
- acl.entry(
- acl.CQ_DRY_RUNNER,
- groups = "all",
- ),
- # Trigger dry runs automatically on new patchsets for everyone
- acl.entry(
- acl.CQ_NEW_PATCHSET_RUN_TRIGGERER,
- groups = "all",
- ),
- # Only project-gerrit-committers can submit by voting CQ+2
- acl.entry(
- acl.CQ_COMMITTER,
- groups = "project-gerrit-committers",
- ),
- ],
- watch = cq.refset(
- repo = "https://gerrit.googlesource.com/luci-test",
- refs = ["refs/heads/.+"], # will watch all branches
- ),
+ name = "luci-test_repo",
+ acls = [
+ # Everyone can trigger dry runs by voting CQ+1
+ acl.entry(
+ acl.CQ_DRY_RUNNER,
+ groups = "all",
+ ),
+ # Trigger dry runs automatically on new patchsets for everyone
+ acl.entry(
+ acl.CQ_NEW_PATCHSET_RUN_TRIGGERER,
+ groups = "all",
+ ),
+ # Only project-gerrit-committers can submit by voting CQ+2
+ acl.entry(
+ acl.CQ_COMMITTER,
+ groups = "project-gerrit-committers",
+ ),
+ ],
+ watch = cq.refset(
+ repo = "https://gerrit.googlesource.com/luci-test",
+ refs = ["refs/heads/.+"], # will watch all branches
+ ),
)
# Attach our "Verify luci-test CL" builder to this CQ group.
luci.cq_tryjob_verifier(
- builder = "try/Verify luci-test CL",
- cq_group = "luci-test_repo",
- # Add NEW_PATCHSET_RUN to the defaults DRY_RUN and FULL_RUN
- mode_allowlist = [
- cq.MODE_DRY_RUN, cq.MODE_FULL_RUN, cq.MODE_NEW_PATCHSET_RUN
- ],
+ builder = "try/Verify luci-test CL",
+ cq_group = "luci-test_repo",
+ # Add NEW_PATCHSET_RUN to the defaults DRY_RUN and FULL_RUN
+ mode_allowlist = [
+ cq.MODE_DRY_RUN, cq.MODE_FULL_RUN, cq.MODE_NEW_PATCHSET_RUN
+ ],
)
# Runs luci-test tests after any merged change
@@ -184,12 +184,19 @@
triggers = ["ci/Verify luci-test CL"],
)
+# Milo is the UI powering https://ci.chromium.org/, configuration is optional
+# but we want to have a nice logo.
+luci.milo(
+ logo = "https://storage.googleapis.com/static-assets-luci/diffymute.svg",
+ favicon = "https://storage.googleapis.com/static-assets-luci/favicon.ico",
+)
+
# 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'),
- ],
+ name = 'luci-test CI builders',
+ repo = "https://gerrit.googlesource.com/luci-test",
+ entries = [
+ luci.console_view_entry(builder='ci/Verify luci-test CL'),
+ ],
)