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

Side by Side Diff: scripts/slave/recipes/android/builder.py

Issue 2018003002: New chromium.perf.fyi bots! Mac Retina and Android Galaxy S5. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix expectations. Created 4 years, 6 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from contextlib import contextmanager 5 from contextlib import contextmanager
6 from recipe_engine import recipe_api 6 from recipe_engine import recipe_api
7 from recipe_engine.types import freeze 7 from recipe_engine.types import freeze
8 8
9 DEPS = [ 9 DEPS = [
10 'chromium', 10 'chromium',
11 'chromium_android', 11 'chromium_android',
12 'depot_tools/bot_update', 12 'depot_tools/bot_update',
13 'depot_tools/gclient', 13 'depot_tools/gclient',
14 'recipe_engine/path', 14 'recipe_engine/path',
15 'recipe_engine/properties', 15 'recipe_engine/properties',
16 'recipe_engine/step', 16 'recipe_engine/step',
17 'trigger',
17 'depot_tools/tryserver', 18 'depot_tools/tryserver',
18 ] 19 ]
19 20
20 @contextmanager 21 @contextmanager
21 def FYIStep(): 22 def FYIStep():
22 try: 23 try:
23 yield 24 yield
24 except recipe_api.StepFailure: 25 except recipe_api.StepFailure:
25 pass 26 pass
26 27
(...skipping 30 matching lines...) Expand all
57 'run_mb': True, 58 'run_mb': True,
58 'targets': [ 59 'targets': [
59 'android_tools', 60 'android_tools',
60 'cc_perftests', 61 'cc_perftests',
61 'chrome_public_apk', 62 'chrome_public_apk',
62 'gpu_perftests', 63 'gpu_perftests',
63 'push_apps_to_background_apk', 64 'push_apps_to_background_apk',
64 'system_webview_apk', 65 'system_webview_apk',
65 'system_webview_shell_apk', 66 'system_webview_shell_apk',
66 ], 67 ],
68 'triggers': [
69 {
70 'buildername': 'Android Galaxy S5 Perf (1)',
71 'mastername': 'chromium.perf.fyi',
72 },
73 ],
67 }, 74 },
68 'Android arm64 Builder': { 75 'Android arm64 Builder': {
69 'recipe_config': 'arm64_builder_rel_mb', 76 'recipe_config': 'arm64_builder_rel_mb',
70 'gclient_apply_config': ['android', 'perf'], 77 'gclient_apply_config': ['android', 'perf'],
71 'kwargs': { 78 'kwargs': {
72 'BUILD_CONFIG': 'Release', 79 'BUILD_CONFIG': 'Release',
73 }, 80 },
74 'upload': { 81 'upload': {
75 'bucket': 'chrome-perf', 82 'bucket': 'chrome-perf',
76 'path': lambda api: ( 83 'path': lambda api: (
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 209
203 upload_config = bot_config.get('upload') 210 upload_config = bot_config.get('upload')
204 if upload_config: 211 if upload_config:
205 droid.upload_build(upload_config['bucket'], 212 droid.upload_build(upload_config['bucket'],
206 upload_config['path'](api)) 213 upload_config['path'](api))
207 214
208 upload_config = bot_config.get('zip_and_upload') 215 upload_config = bot_config.get('zip_and_upload')
209 if upload_config: 216 if upload_config:
210 droid.zip_and_upload_build(upload_config['bucket']) 217 droid.zip_and_upload_build(upload_config['bucket'])
211 218
219 if 'triggers' in bot_config:
220 api.trigger(*[{'bucket': 'master.' + b['mastername'],
221 'builder_name': b['buildername'],
222 'properties': {
223 'revision': api.properties['revision'],
224 'parent_revision': api.properties['revision']}
225 } for b in bot_config['triggers']])
226
212 227
213 def RunSteps(api, mastername, buildername, revision): 228 def RunSteps(api, mastername, buildername, revision):
214 with api.tryserver.set_failure_hash(): 229 with api.tryserver.set_failure_hash():
215 return _RunStepsInternal(api, mastername, buildername, revision) 230 return _RunStepsInternal(api, mastername, buildername, revision)
216 231
217 232
218 def _sanitize_nonalpha(text): 233 def _sanitize_nonalpha(text):
219 return ''.join(c if c.isalnum() else '_' for c in text) 234 return ''.join(c if c.isalnum() else '_' for c in text)
220 235
221 236
(...skipping 22 matching lines...) Expand all
244 '_'.join(_sanitize_nonalpha(step) for step in steps))) + 259 '_'.join(_sanitize_nonalpha(step) for step in steps))) +
245 props(mastername=mastername, buildername=buildername) + 260 props(mastername=mastername, buildername=buildername) +
246 reduce(lambda a, b: a + b, 261 reduce(lambda a, b: a + b,
247 (api.step_data(step, retcode=1) for step in steps)) 262 (api.step_data(step, retcode=1) for step in steps))
248 ) 263 )
249 264
250 yield step_failure(mastername='chromium.android', 265 yield step_failure(mastername='chromium.android',
251 buildername='Android x64 Builder (dbg)', 266 buildername='Android x64 Builder (dbg)',
252 steps=['check licenses']) 267 steps=['check licenses'])
253 268
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698