blob: e5c87eadcf1af5b9f1e263cb826f9d3e3a70d993 [file] [log] [blame]
# 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.
def _validate_builders_in_console(ctx):
builders = {}
for console in ctx.output["luci-milo.cfg"].consoles:
for builder in
_, long_bucket, builder_name ="/")
_, _, bucket = long_bucket.split(".", 2)
builders.setdefault(bucket, {})[builder_name] = True
builders_without_console = []
for bucket in ctx.output["cr-buildbucket.cfg"].buckets:
bucket_builders = builders.get(, {})
for builder in
if not in bucket_builders:
if builders_without_console:
fail("The following builders do not appear in any console:\n " +
"\n ".join([repr(b) for b in builders_without_console]))