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

Unified Diff: scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py

Issue 2172553003: The second solution solution for ToT catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Passing gclient config name to BuildSpec. 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py
diff --git a/scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py b/scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py
index 99dca2ba477d0b7ef51a3a6baeac69b159755178..0754913d92d28a519ac7f0f2ed4b05d242cd3221 100644
--- a/scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py
+++ b/scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py
@@ -2,8 +2,19 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from recipe_engine import config as recipe_config
dtu 2016/08/10 01:19:39 Unused import? If it's necessary, include a commen
RobertoCN 2016/08/10 22:59:54 Done.
+
from . import chromium_perf
+import DEPS
+CONFIG_CTX = DEPS['gclient'].CONFIG_CTX
+
+@CONFIG_CTX(includes=['chromium_perf'])
+def tryserver_chromium_perf(c):
+ soln = c.solutions.add()
+ soln.name = 'catapult'
+ soln.url = ('https://chromium.googlesource.com/external/github.com/'
+ 'catapult-project/catapult.git')
SPEC = {
'builders': {},
@@ -13,14 +24,16 @@ SPEC = {
def _AddBuildSpec(name, platform, target_bits=64):
SPEC['builders'][name] = chromium_perf.BuildSpec(
- 'tryserver_chromium_perf', None, platform, target_bits)
+ 'tryserver_chromium_perf', None, platform, target_bits,
+ gclient_config='tryserver_chromium_perf')
def _AddTestSpec(name, platform, target_bits=64):
# TODO(dtu): Change this to TestSpec after try job builds are all offloaded
# to builders.
spec = chromium_perf.BuildSpec(
- 'tryserver_chromium_perf', None, platform, target_bits)
+ 'tryserver_chromium_perf', None, platform, target_bits,
+ gclient_config='tryserver_chromium_perf')
del spec['tests']
SPEC['builders'][name] = spec

Powered by Google App Engine
This is Rietveld 408576698