| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 """A recipe for actually running recipe on build/ repo patches as tryjobs. | 5 """A recipe for actually running recipe on build/ repo patches as tryjobs. |
| 6 | 6 |
| 7 The idea is to actually execute some common recipe things so as to prevent | 7 The idea is to actually execute some common recipe things so as to prevent |
| 8 major outages. | 8 major outages. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 properties['actual_run'] = 'True' | 36 properties['actual_run'] = 'True' |
| 37 return api.python( | 37 return api.python( |
| 38 name=name, | 38 name=name, |
| 39 script=api.path['checkout'].join('scripts', 'tools', 'run_recipe.py'), | 39 script=api.path['checkout'].join('scripts', 'tools', 'run_recipe.py'), |
| 40 args=[ | 40 args=[ |
| 41 'infra/build_repo_real_try', | 41 'infra/build_repo_real_try', |
| 42 '--master-overrides-slave', | 42 '--master-overrides-slave', |
| 43 '--properties-file', | 43 '--properties-file', |
| 44 api.json.input(properties), | 44 api.json.input(properties), |
| 45 ], | 45 ], |
| 46 allow_subannotations=True, |
| 46 ) | 47 ) |
| 47 | 48 |
| 48 | 49 |
| 49 def outer(api): | 50 def outer(api): |
| 50 """Check out itself, maybe apply patch, and then execute_inner real itself.""" | 51 """Check out itself, maybe apply patch, and then execute_inner real itself.""" |
| 51 api.gclient.set_config('build') | 52 api.gclient.set_config('build') |
| 52 api.bot_update.ensure_checkout(force=True, patch_root='build') | 53 api.bot_update.ensure_checkout(force=True, patch_root='build') |
| 53 | 54 |
| 54 execute_inner(api, 'ci actual execute_inner') | 55 execute_inner(api, 'ci actual execute_inner') |
| 55 | 56 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ) | 96 ) |
| 96 ) | 97 ) |
| 97 yield ( | 98 yield ( |
| 98 api.test('ok-inner-try-rietveld') + | 99 api.test('ok-inner-try-rietveld') + |
| 99 api.properties.tryserver( | 100 api.properties.tryserver( |
| 100 mastername='tryserver.infra', | 101 mastername='tryserver.infra', |
| 101 buildername='build_repo_real', | 102 buildername='build_repo_real', |
| 102 actual_run='True', | 103 actual_run='True', |
| 103 ) | 104 ) |
| 104 ) | 105 ) |
| OLD | NEW |