Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: scripts/slave/recipes/skia/swarm_trigger.py

Issue 2270963002: Make skia recipes explicitly set GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 store_output=store_output, 229 store_output=store_output,
230 extra_args=extra_args, 230 extra_args=extra_args,
231 expiration=expiration, 231 expiration=expiration,
232 hard_timeout=hard_timeout, 232 hard_timeout=hard_timeout,
233 io_timeout=io_timeout, 233 io_timeout=io_timeout,
234 cipd_packages=cipd_packages) 234 cipd_packages=cipd_packages)
235 235
236 236
237 def checkout_steps(api): 237 def checkout_steps(api):
238 """Run the steps to obtain a checkout of Skia.""" 238 """Run the steps to obtain a checkout of Skia."""
239 gclient_cfg = api.gclient.make_config(CACHE_DIR=None) 239 gclient_cfg = api.gclient.make_config(CACHE_DIR=None, GIT_MODE=True)
240 repo = gclient_cfg.solutions.add() 240 repo = gclient_cfg.solutions.add()
241 repo.managed = False 241 repo.managed = False
242 repo.revision = api.properties.get('revision') or 'origin/master' 242 repo.revision = api.properties.get('revision') or 'origin/master'
243 if 'Infra' in api.properties['buildername']: 243 if 'Infra' in api.properties['buildername']:
244 repo.name = 'infra' 244 repo.name = 'infra'
245 repo.url = 'https://skia.googlesource.com/buildbot.git' 245 repo.url = 'https://skia.googlesource.com/buildbot.git'
246 gclient_cfg.got_revision_mapping['infra'] = 'got_revision' 246 gclient_cfg.got_revision_mapping['infra'] = 'got_revision'
247 else: 247 else:
248 repo.name = 'skia' 248 repo.name = 'skia'
249 repo.url = 'https://skia.googlesource.com/skia.git' 249 repo.url = 'https://skia.googlesource.com/skia.git'
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 slavename=slave, 859 slavename=slave,
860 buildnumber=5, 860 buildnumber=5,
861 path_config='kitchen', 861 path_config='kitchen',
862 revision='abc123') + 862 revision='abc123') +
863 api.path.exists( 863 api.path.exists(
864 api.path['slave_build'].join('skia'), 864 api.path['slave_build'].join('skia'),
865 api.path['slave_build'].join('skia', 'infra', 'bots', 'recipes.py'), 865 api.path['slave_build'].join('skia', 'infra', 'bots', 'recipes.py'),
866 ) 866 )
867 ) 867 )
868 yield test 868 yield test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698