aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/builder_name_schema/api.py
diff options
context:
space:
mode:
authorGravatar borenet <borenet@chromium.org>2016-08-04 11:07:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-04 11:07:10 -0700
commit538d5b68e8b6a8745ac8947f15abf1c7c6de8f18 (patch)
tree7fe5f965dde6785a2c3b89a4415f36b78adce561 /infra/bots/recipe_modules/builder_name_schema/api.py
parent4e44efe50474d4eebcb30b762e784b3ef2126750 (diff)
Move builder_spec, [dm|nanobench]_flags, builder_name_schema to recipes
- builder_name_schema becomes its own recipe module. - builder_spec, dm, and nanobench flags move into vars module. - recipe expectation diffs include: - no more buildbot_spec.py step - "real" dm and nanobench flags, instead of --dummy-flags - some inconsequential stuff in visualbench, which is removed anyway. BUG=skia:5578 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2215803002 Review-Url: https://codereview.chromium.org/2215803002
Diffstat (limited to 'infra/bots/recipe_modules/builder_name_schema/api.py')
-rw-r--r--infra/bots/recipe_modules/builder_name_schema/api.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/builder_name_schema/api.py b/infra/bots/recipe_modules/builder_name_schema/api.py
new file mode 100644
index 0000000000..09228aa4b7
--- /dev/null
+++ b/infra/bots/recipe_modules/builder_name_schema/api.py
@@ -0,0 +1,39 @@
+# Copyright 2016 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.
+
+
+# pylint: disable=W0201
+
+
+from recipe_engine import recipe_api
+
+from . import builder_name_schema
+
+
+class BuilderNameSchemaApi(recipe_api.RecipeApi):
+ def __init__(self, *args, **kwargs):
+ super(BuilderNameSchemaApi, self).__init__(*args, **kwargs)
+
+ # See builder_name_schema.py for documentation.
+ self.BUILDER_NAME_SCHEMA = builder_name_schema.BUILDER_NAME_SCHEMA
+ self.BUILDER_NAME_SEP = builder_name_schema.BUILDER_NAME_SEP
+
+ self.BUILDER_ROLE_CANARY = builder_name_schema.BUILDER_ROLE_CANARY
+ self.BUILDER_ROLE_BUILD = builder_name_schema.BUILDER_ROLE_BUILD
+ self.BUILDER_ROLE_HOUSEKEEPER = builder_name_schema.BUILDER_ROLE_HOUSEKEEPER
+ self.BUILDER_ROLE_INFRA = builder_name_schema.BUILDER_ROLE_INFRA
+ self.BUILDER_ROLE_PERF = builder_name_schema.BUILDER_ROLE_PERF
+ self.BUILDER_ROLE_TEST = builder_name_schema.BUILDER_ROLE_TEST
+ self.BUILDER_ROLES = builder_name_schema.BUILDER_ROLES
+
+ self.TRYBOT_NAME_SUFFIX = builder_name_schema.TRYBOT_NAME_SUFFIX
+
+ def MakeBuilderName(self, *args, **kwargs):
+ return builder_name_schema.MakeBuilderName(*args, **kwargs)
+
+ def IsTrybot(self, *args, **kwargs):
+ return builder_name_schema.IsTrybot(*args, **kwargs)
+
+ def DictForBuilderName(self, *args, **kwargs):
+ return builder_name_schema.DictForBuilderName(*args, **kwargs)