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

Side by Side Diff: scripts/slave/recipes/v8/auto_roll_v8_deps.py

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 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 1
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from recipe_engine.types import freeze 6 from recipe_engine.types import freeze
7 7
8 DEPS = [ 8 DEPS = [
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'depot_tools/gclient', 10 'depot_tools/gclient',
11 'depot_tools/git', 11 'depot_tools/git',
12 'depot_tools/infra_paths',
13 'recipe_engine/json', 12 'recipe_engine/json',
14 'recipe_engine/path', 13 'recipe_engine/path',
15 'recipe_engine/properties', 14 'recipe_engine/properties',
16 'recipe_engine/python', 15 'recipe_engine/python',
17 'recipe_engine/raw_io', 16 'recipe_engine/raw_io',
18 'recipe_engine/step', 17 'recipe_engine/step',
19 'v8', 18 'v8',
20 ] 19 ]
21 20
22 AUTO_REVIEWERS = [ 21 AUTO_REVIEWERS = [
(...skipping 22 matching lines...) Expand all
45 '\'managed\':False,' 44 '\'managed\':False,'
46 '\'name\':\'%s\',' 45 '\'name\':\'%s\','
47 '\'url\':\'%s\',' 46 '\'url\':\'%s\','
48 '\'deps_file\':\'DEPS\'}]' % (name, repo)) 47 '\'deps_file\':\'DEPS\'}]' % (name, repo))
49 48
50 # Read local deps information. Each deps has one line in the format: 49 # Read local deps information. Each deps has one line in the format:
51 # path/to/deps: repo@revision 50 # path/to/deps: repo@revision
52 step_result = api.gclient( 51 step_result = api.gclient(
53 'get %s deps' % name, 52 'get %s deps' % name,
54 ['revinfo', '--deps', 'all', '--spec', spec], 53 ['revinfo', '--deps', 'all', '--spec', spec],
55 cwd=api.infra_paths['slave_build'], 54 cwd=api.path['slave_build'],
56 stdout=api.raw_io.output(), 55 stdout=api.raw_io.output(),
57 ) 56 )
58 57
59 # Transform into dict. Skip the solution prefix in keys (e.g. src/). 58 # Transform into dict. Skip the solution prefix in keys (e.g. src/).
60 deps = {} 59 deps = {}
61 for line in step_result.stdout.strip().splitlines(): 60 for line in step_result.stdout.strip().splitlines():
62 key, value = line.strip().split(' ') 61 key, value = line.strip().split(' ')
63 62
64 # Remove trailing colon. 63 # Remove trailing colon.
65 key = key.split(':')[0] 64 key = key.split(':')[0]
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ) + 223 ) +
225 api.override_step_data( 224 api.override_step_data(
226 'look up another_dep', 225 'look up another_dep',
227 api.raw_io.stream_output('deadbeaf\tHEAD', stream='stdout'), 226 api.raw_io.stream_output('deadbeaf\tHEAD', stream='stdout'),
228 ) + 227 ) +
229 api.override_step_data( 228 api.override_step_data(
230 'git diff', 229 'git diff',
231 api.raw_io.stream_output('some difference', stream='stdout'), 230 api.raw_io.stream_output('some difference', stream='stdout'),
232 ) 231 )
233 ) 232 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698