Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: infra/bots/recipe_modules/builder_name_schema/api.py

Issue 2215803002: Move builder_spec, [dm|nanobench]_flags, builder_name_schema to recipes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add missing blacklist Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
6 # pylint: disable=W0201
7
8
9 from recipe_engine import recipe_api
10
11 from . import builder_name_schema
12
13
14 class BuilderNameSchemaApi(recipe_api.RecipeApi):
15 def __init__(self, *args, **kwargs):
16 super(BuilderNameSchemaApi, self).__init__(*args, **kwargs)
17
18 # See builder_name_schema.py for documentation.
19 self.BUILDER_NAME_SCHEMA = builder_name_schema.BUILDER_NAME_SCHEMA
20 self.BUILDER_NAME_SEP = builder_name_schema.BUILDER_NAME_SEP
21
22 self.BUILDER_ROLE_CANARY = builder_name_schema.BUILDER_ROLE_CANARY
23 self.BUILDER_ROLE_BUILD = builder_name_schema.BUILDER_ROLE_BUILD
24 self.BUILDER_ROLE_HOUSEKEEPER = builder_name_schema.BUILDER_ROLE_HOUSEKEEPER
25 self.BUILDER_ROLE_INFRA = builder_name_schema.BUILDER_ROLE_INFRA
26 self.BUILDER_ROLE_PERF = builder_name_schema.BUILDER_ROLE_PERF
27 self.BUILDER_ROLE_TEST = builder_name_schema.BUILDER_ROLE_TEST
28 self.BUILDER_ROLES = builder_name_schema.BUILDER_ROLES
29
30 self.TRYBOT_NAME_SUFFIX = builder_name_schema.TRYBOT_NAME_SUFFIX
31
32 def MakeBuilderName(self, *args, **kwargs):
33 return builder_name_schema.MakeBuilderName(*args, **kwargs)
34
35 def IsTrybot(self, *args, **kwargs):
36 return builder_name_schema.IsTrybot(*args, **kwargs)
37
38 def DictForBuilderName(self, *args, **kwargs):
39 return builder_name_schema.DictForBuilderName(*args, **kwargs)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698