| 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 import collections | 5 import collections |
| 6 import hashlib | 6 import hashlib |
| 7 import json | 7 import json |
| 8 import re | 8 import re |
| 9 | 9 |
| 10 from recipe_engine import recipe_api | 10 from recipe_engine import recipe_api |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 '-u', script] + args, **kwargs) | 260 '-u', script] + args, **kwargs) |
| 261 | 261 |
| 262 def run_tryjob(self, patches_raw, rietveld, issue, patchset, patch_project): | 262 def run_tryjob(self, patches_raw, rietveld, issue, patchset, patch_project): |
| 263 patches = parse_patches( | 263 patches = parse_patches( |
| 264 self.m.python.failing_step, patches_raw, rietveld, issue, patchset, | 264 self.m.python.failing_step, patches_raw, rietveld, issue, patchset, |
| 265 patch_project) | 265 patch_project) |
| 266 | 266 |
| 267 root_dir = self.m.path['slave_build'] | 267 root_dir = self.m.path['slave_build'] |
| 268 | 268 |
| 269 # Needed to set up the infra checkout, for _python | 269 # Needed to set up the infra checkout, for _python |
| 270 self.m.gclient.set_config('infra') | 270 self.m.gclient.set_config('infra', GIT_MODE=True) |
| 271 self.m.gclient.c.solutions[0].revision = 'origin/master' | 271 self.m.gclient.c.solutions[0].revision = 'origin/master' |
| 272 self.m.gclient.checkout() | 272 self.m.gclient.checkout() |
| 273 self.m.gclient.runhooks() | 273 self.m.gclient.runhooks() |
| 274 | 274 |
| 275 url_mapping = self.m.luci_config.get_projects() | 275 url_mapping = self.m.luci_config.get_projects() |
| 276 | 276 |
| 277 # TODO(martiniss): use luci-config smarter; get recipes.cfg directly, rather | 277 # TODO(martiniss): use luci-config smarter; get recipes.cfg directly, rather |
| 278 # than in two steps. | 278 # than in two steps. |
| 279 # luci config project name to recipe config namedtuple | 279 # luci config project name to recipe config namedtuple |
| 280 recipe_configs = {} | 280 recipe_configs = {} |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 'no reference builder; file a bug to get one?'] = ( | 312 'no reference builder; file a bug to get one?'] = ( |
| 313 FILE_BUG_FOR_CONTINUOUS_LINK) | 313 FILE_BUG_FOR_CONTINUOUS_LINK) |
| 314 | 314 |
| 315 | 315 |
| 316 if bad_projects: | 316 if bad_projects: |
| 317 raise recipe_api.StepFailure( | 317 raise recipe_api.StepFailure( |
| 318 "One or more projects failed tests: %s" % ( | 318 "One or more projects failed tests: %s" % ( |
| 319 ','.join(bad_projects))) | 319 ','.join(bad_projects))) |
| 320 | 320 |
| 321 | 321 |
| OLD | NEW |