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

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

Issue 2273833002: Make v8 recipes explicitly set GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 years, 4 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 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 import base64 5 import base64
6 6
7 DEPS = [ 7 DEPS = [
8 'chromium', 8 'chromium',
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'depot_tools/gclient', 10 'depot_tools/gclient',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 def V8RevisionFrom(deps): 57 def V8RevisionFrom(deps):
58 Var = lambda var: '%s' # pylint: disable=W0612 58 Var = lambda var: '%s' # pylint: disable=W0612
59 exec(deps) 59 exec(deps)
60 return vars['v8_revision'] 60 return vars['v8_revision']
61 61
62 def RunSteps(api): 62 def RunSteps(api):
63 monitoring_state = 'failure' 63 monitoring_state = 'failure'
64 try: 64 try:
65 api.chromium.cleanup_temp() 65 api.chromium.cleanup_temp()
66 api.gclient.set_config('chromium') 66 api.gclient.set_config('chromium', GIT_MODE=True)
67 api.gclient.apply_config('v8_bleeding_edge_git') 67 api.gclient.apply_config('v8_bleeding_edge_git')
68 68
69 step_result = api.python( 69 step_result = api.python(
70 'check roll status', 70 'check roll status',
71 api.path['build'].join('scripts', 'tools', 'runit.py'), 71 api.path['build'].join('scripts', 'tools', 'runit.py'),
72 [api.path['build'].join('scripts', 'tools', 'pycurl.py'), 72 [api.path['build'].join('scripts', 'tools', 'pycurl.py'),
73 'https://v8-roll.appspot.com/status'], 73 'https://v8-roll.appspot.com/status'],
74 stdout=api.raw_io.output(), 74 stdout=api.raw_io.output(),
75 step_test_data=lambda: api.raw_io.test_api.stream_output( 75 step_test_data=lambda: api.raw_io.test_api.stream_output(
76 '1', stream='stdout') 76 '1', stream='stdout')
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 '{"results": [{"subject": "Update V8 to foo",' + 207 '{"results": [{"subject": "Update V8 to foo",' +
208 ' "issue": 123456, "commit": false}]}')) 208 ' "issue": 123456, "commit": false}]}'))
209 ) 209 )
210 yield (api.test('inconsistent_state') + 210 yield (api.test('inconsistent_state') +
211 api.properties.generic(mastername='client.v8') + 211 api.properties.generic(mastername='client.v8') +
212 api.override_step_data( 212 api.override_step_data(
213 'git cat-file', api.raw_io.stream_output( 213 'git cat-file', api.raw_io.stream_output(
214 TEST_DEPS_FILE % 'beefdead')) 214 TEST_DEPS_FILE % 'beefdead'))
215 ) 215 )
216 216
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698