Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 'depot_tools/tryserver', | 17 'depot_tools/tryserver', |
| 18 'trigger', | |
| 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 |
| 27 BUILDERS = freeze({ | 28 BUILDERS = freeze({ |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 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': 'WebView Nexus5 Perf (1)', | |
| 71 'mastername': 'chromium.perf.fyi', | |
| 72 }, | |
| 73 { | |
| 74 'buildername': 'WebView Nexus5X Perf (1)', | |
| 75 'mastername': 'chromium.perf.fyi', | |
| 76 }, | |
| 77 { | |
| 78 'buildername': 'WebView Nexus5X Perf (2)', | |
| 79 'mastername': 'chromium.perf.fyi', | |
| 80 } | |
| 81 ] | |
| 67 }, | 82 }, |
| 68 'Android arm64 Builder': { | 83 'Android arm64 Builder': { |
| 69 'recipe_config': 'arm64_builder_rel_mb', | 84 'recipe_config': 'arm64_builder_rel_mb', |
| 70 'gclient_apply_config': ['android', 'perf'], | 85 'gclient_apply_config': ['android', 'perf'], |
| 71 'kwargs': { | 86 'kwargs': { |
| 72 'BUILD_CONFIG': 'Release', | 87 'BUILD_CONFIG': 'Release', |
| 73 }, | 88 }, |
| 74 'upload': { | 89 'upload': { |
| 75 'bucket': 'chrome-perf', | 90 'bucket': 'chrome-perf', |
| 76 'path': lambda api: ( | 91 'path': lambda api: ( |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 | 207 |
| 193 upload_config = bot_config.get('upload') | 208 upload_config = bot_config.get('upload') |
| 194 if upload_config: | 209 if upload_config: |
| 195 droid.upload_build(upload_config['bucket'], | 210 droid.upload_build(upload_config['bucket'], |
| 196 upload_config['path'](api)) | 211 upload_config['path'](api)) |
| 197 | 212 |
| 198 upload_config = bot_config.get('zip_and_upload') | 213 upload_config = bot_config.get('zip_and_upload') |
| 199 if upload_config: | 214 if upload_config: |
| 200 droid.zip_and_upload_build(upload_config['bucket']) | 215 droid.zip_and_upload_build(upload_config['bucket']) |
| 201 | 216 |
| 217 # TODO(mikecase): Remove this logic once WebView bots are on chromium.perf | |
| 218 if bot_config.get('triggers'): | |
| 219 api.trigger(*[{'mastername': b['mastername'], | |
|
bpastene
2016/04/14 18:55:29
I believe you'll want to add the tag {'bucket': b[
mikecase (-- gone --)
2016/04/15 21:23:17
Done. Added
'bucket': b['mastername'],
to the
| |
| 220 'buildername': b['buildername'], | |
| 221 'revision': api.properties['revision']} | |
| 222 for b in bot_config['triggers']]) | |
| 202 | 223 |
| 203 def RunSteps(api, mastername, buildername, revision): | 224 def RunSteps(api, mastername, buildername, revision): |
| 204 with api.tryserver.set_failure_hash(): | 225 with api.tryserver.set_failure_hash(): |
| 205 return _RunStepsInternal(api, mastername, buildername, revision) | 226 return _RunStepsInternal(api, mastername, buildername, revision) |
| 206 | 227 |
| 207 | 228 |
| 208 def _sanitize_nonalpha(text): | 229 def _sanitize_nonalpha(text): |
| 209 return ''.join(c if c.isalnum() else '_' for c in text) | 230 return ''.join(c if c.isalnum() else '_' for c in text) |
| 210 | 231 |
| 211 | 232 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 234 '_'.join(_sanitize_nonalpha(step) for step in steps))) + | 255 '_'.join(_sanitize_nonalpha(step) for step in steps))) + |
| 235 props(mastername=mastername, buildername=buildername) + | 256 props(mastername=mastername, buildername=buildername) + |
| 236 reduce(lambda a, b: a + b, | 257 reduce(lambda a, b: a + b, |
| 237 (api.step_data(step, retcode=1) for step in steps)) | 258 (api.step_data(step, retcode=1) for step in steps)) |
| 238 ) | 259 ) |
| 239 | 260 |
| 240 yield step_failure(mastername='chromium.android', | 261 yield step_failure(mastername='chromium.android', |
| 241 buildername='Android x64 Builder (dbg)', | 262 buildername='Android x64 Builder (dbg)', |
| 242 steps=['check licenses']) | 263 steps=['check licenses']) |
| 243 | 264 |
| OLD | NEW |