| 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 | 5 |
| 6 # Recipe module for Skia Swarming trigger. | 6 # Recipe module for Skia Swarming trigger. |
| 7 | 7 |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 | 10 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 store_output=store_output, | 236 store_output=store_output, |
| 237 extra_args=extra_args, | 237 extra_args=extra_args, |
| 238 expiration=expiration, | 238 expiration=expiration, |
| 239 hard_timeout=hard_timeout, | 239 hard_timeout=hard_timeout, |
| 240 io_timeout=io_timeout, | 240 io_timeout=io_timeout, |
| 241 cipd_packages=cipd_packages) | 241 cipd_packages=cipd_packages) |
| 242 | 242 |
| 243 | 243 |
| 244 def checkout_steps(api): | 244 def checkout_steps(api): |
| 245 """Run the steps to obtain a checkout of Skia.""" | 245 """Run the steps to obtain a checkout of Skia.""" |
| 246 gclient_cfg = api.gclient.make_config(CACHE_DIR=None) | 246 gclient_cfg = api.gclient.make_config(CACHE_DIR=None, GIT_MODE=True) |
| 247 repo = gclient_cfg.solutions.add() | 247 repo = gclient_cfg.solutions.add() |
| 248 repo.managed = False | 248 repo.managed = False |
| 249 repo.revision = api.properties.get('revision') or 'origin/master' | 249 repo.revision = api.properties.get('revision') or 'origin/master' |
| 250 if 'Infra' in api.properties['buildername']: | 250 if 'Infra' in api.properties['buildername']: |
| 251 repo.name = 'infra' | 251 repo.name = 'infra' |
| 252 repo.url = 'https://skia.googlesource.com/buildbot.git' | 252 repo.url = 'https://skia.googlesource.com/buildbot.git' |
| 253 gclient_cfg.got_revision_mapping['infra'] = 'got_revision' | 253 gclient_cfg.got_revision_mapping['infra'] = 'got_revision' |
| 254 else: | 254 else: |
| 255 repo.name = 'skia' | 255 repo.name = 'skia' |
| 256 repo.url = 'https://skia.googlesource.com/skia.git' | 256 repo.url = 'https://skia.googlesource.com/skia.git' |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 mastername=master, | 891 mastername=master, |
| 892 slavename=slave, | 892 slavename=slave, |
| 893 buildnumber=5, | 893 buildnumber=5, |
| 894 path_config='kitchen', | 894 path_config='kitchen', |
| 895 revision='abc123', | 895 revision='abc123', |
| 896 **gerrit_kwargs) + | 896 **gerrit_kwargs) + |
| 897 api.step_data('upload new .isolated file for compile_skia', | 897 api.step_data('upload new .isolated file for compile_skia', |
| 898 stdout=api.raw_io.output('def456 XYZ.isolated')) | 898 stdout=api.raw_io.output('def456 XYZ.isolated')) |
| 899 ) | 899 ) |
| 900 yield test | 900 yield test |
| OLD | NEW |