summaryrefslogtreecommitdiff
path: root/chromium/infra/config/generators
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/infra/config/generators')
-rw-r--r--chromium/infra/config/generators/scheduler-noop-jobs.star56
1 files changed, 0 insertions, 56 deletions
diff --git a/chromium/infra/config/generators/scheduler-noop-jobs.star b/chromium/infra/config/generators/scheduler-noop-jobs.star
deleted file mode 100644
index bd881836969..00000000000
--- a/chromium/infra/config/generators/scheduler-noop-jobs.star
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 2020 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Generator for creating no-op scheduler jobs.
-
-The triggering relationship is actually described in the configuration defined
-in the recipes, which is shared between the versions of a builder for different
-milestones. We don't always want to trigger the same set of builders on all of
-the branches, so we create no-op jobs for the milestones where the builder is
-not defined so that the recipe can issue a trigger for the non-existent builder
-without error.
-"""
-
-# Don't make a habit of this - it isn't public API
-load("@stdlib//internal/luci/proto.star", "scheduler_pb")
-load("//lib/branches.star", "branches")
-load("//project.star", "settings")
-
-_NON_BRANCHED_TESTERS = {
- # This tester is triggered by 'Mac Builder', but it is an FYI builder and
- # not mirrored by any branched try builders, so we do not need to run it on
- # the branches
- "mac-osxbeta-rel": branches.DESKTOP_EXTENDED_STABLE_MILESTONE,
-
- # This tester is triggered by 'Win x64 Builder', but it is an FYI builder
- # and not mirrored by any branched try builders, so we do not need to run it
- # on the branches
- "Win10 Tests x64 20h2": branches.STANDARD_MILESTONE,
- "Win11 Tests x64": branches.DESKTOP_EXTENDED_STABLE_MILESTONE,
-
- # These Android testers are triggered by 'Android arm Builder (dbg)', but we
- # don't have sufficient capacity of devices with older Android versions, so
- # we do not run them on the branches
- "Marshmallow Tablet Tester": branches.STANDARD_MILESTONE,
-}
-
-_TESTER_NOOP_JOBS = [scheduler_pb.Job(
- id = builder,
- schedule = "triggered",
- acl_sets = ["ci"],
- acls = [scheduler_pb.Acl(
- role = scheduler_pb.Acl.TRIGGERER,
- granted_to = "chromium-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
- )],
- noop = scheduler_pb.NoopTask(),
-) for builder, selector in _NON_BRANCHED_TESTERS.items() if branches.matches(selector)]
-
-def _add_noop_jobs(ctx):
- if settings.is_main:
- return
- cfg = ctx.output["luci/luci-scheduler.cfg"]
- for j in _TESTER_NOOP_JOBS:
- cfg.job.append(j)
-
-lucicfg.generator(_add_noop_jobs)