| 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', |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 if bot_config.get('set_component_rev'): | 187 if bot_config.get('set_component_rev'): |
| 188 # If this is a component build and the main revision is e.g. blink, | 188 # If this is a component build and the main revision is e.g. blink, |
| 189 # webrtc, or v8, the custom deps revision of this component must be | 189 # webrtc, or v8, the custom deps revision of this component must be |
| 190 # dynamically set to either: | 190 # dynamically set to either: |
| 191 # (1) 'revision' from the waterfall, or | 191 # (1) 'revision' from the waterfall, or |
| 192 # (2) 'HEAD' for forced builds with unspecified 'revision'. | 192 # (2) 'HEAD' for forced builds with unspecified 'revision'. |
| 193 component_rev = revision | 193 component_rev = revision |
| 194 dep = bot_config.get('set_component_rev') | 194 dep = bot_config.get('set_component_rev') |
| 195 api.gclient.c.revisions[dep['name']] = dep['rev_str'] % component_rev | 195 api.gclient.c.revisions[dep['name']] = dep['rev_str'] % component_rev |
| 196 | 196 |
| 197 api.chromium.ensure_goma() |
| 197 api.bot_update.ensure_checkout() | 198 api.bot_update.ensure_checkout() |
| 198 api.chromium_android.clean_local_files() | 199 api.chromium_android.clean_local_files() |
| 199 | 200 |
| 200 api.chromium.runhooks() | 201 api.chromium.runhooks() |
| 201 | 202 |
| 202 if bot_config.get('run_mb'): | 203 if bot_config.get('run_mb'): |
| 203 api.chromium.run_mb(mastername, buildername, use_goma=True) | 204 api.chromium.run_mb(mastername, buildername, use_goma=True) |
| 204 | 205 |
| 205 if bot_config.get('check_licenses'): | 206 if bot_config.get('check_licenses'): |
| 206 with bot_config['check_licenses'](): | 207 with bot_config['check_licenses'](): |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 '_'.join(_sanitize_nonalpha(step) for step in steps))) + | 260 '_'.join(_sanitize_nonalpha(step) for step in steps))) + |
| 260 props(mastername=mastername, buildername=buildername) + | 261 props(mastername=mastername, buildername=buildername) + |
| 261 reduce(lambda a, b: a + b, | 262 reduce(lambda a, b: a + b, |
| 262 (api.step_data(step, retcode=1) for step in steps)) | 263 (api.step_data(step, retcode=1) for step in steps)) |
| 263 ) | 264 ) |
| 264 | 265 |
| 265 yield step_failure(mastername='chromium.android', | 266 yield step_failure(mastername='chromium.android', |
| 266 buildername='Android x64 Builder (dbg)', | 267 buildername='Android x64 Builder (dbg)', |
| 267 steps=['check licenses']) | 268 steps=['check licenses']) |
| 268 | 269 |
| OLD | NEW |