| 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 DEPS = [ | 5 DEPS = [ |
| 6 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
| 7 'file', | 7 'file', |
| 8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
| 9 'depot_tools/git', | 9 'depot_tools/git', |
| 10 'gsutil', | 10 'gsutil', |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 step_result.presentation.status = api.step.FAILURE | 137 step_result.presentation.status = api.step.FAILURE |
| 138 return True | 138 return True |
| 139 return False | 139 return False |
| 140 | 140 |
| 141 | 141 |
| 142 def RunSteps(api): | 142 def RunSteps(api): |
| 143 repo = api.properties.get('repo', REPO) | 143 repo = api.properties.get('repo', REPO) |
| 144 fail_on_exit = [] | 144 fail_on_exit = [] |
| 145 | 145 |
| 146 api.gclient.set_config('v8') | 146 api.gclient.set_config('v8') |
| 147 api.bot_update.ensure_checkout(force=True, no_shallow=True) | 147 api.bot_update.ensure_checkout(no_shallow=True) |
| 148 | 148 |
| 149 # Get current lkgr ref and update. | 149 # Get current lkgr ref and update. |
| 150 new_lkgr = GetLKGR(api) | 150 new_lkgr = GetLKGR(api) |
| 151 current_lkgr = GetRef(api, repo, LKGR_REF) | 151 current_lkgr = GetRef(api, repo, LKGR_REF) |
| 152 if new_lkgr != current_lkgr: | 152 if new_lkgr != current_lkgr: |
| 153 PushRef(api, repo, LKGR_REF, new_lkgr) | 153 PushRef(api, repo, LKGR_REF, new_lkgr) |
| 154 else: | 154 else: |
| 155 LogStep(api, 'There is no new lkgr.') | 155 LogStep(api, 'There is no new lkgr.') |
| 156 | 156 |
| 157 # Get current candidate and update roll ref. | 157 # Get current candidate and update roll ref. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 date_new, | 268 date_new, |
| 269 current_roll=hsh_old, | 269 current_roll=hsh_old, |
| 270 ) + api.override_step_data('check clusterfuzz', api.json.output([1, 2])) | 270 ) + api.override_step_data('check clusterfuzz', api.json.output([1, 2])) |
| 271 yield Test( | 271 yield Test( |
| 272 'new_lkgr_failed_timestamp', | 272 'new_lkgr_failed_timestamp', |
| 273 hsh_recent, | 273 hsh_recent, |
| 274 date_recent, | 274 date_recent, |
| 275 hsh_new, | 275 hsh_new, |
| 276 date_new, | 276 date_new, |
| 277 ) + api.override_step_data('check timestamp', retcode=1) | 277 ) + api.override_step_data('check timestamp', retcode=1) |
| OLD | NEW |