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

Side by Side Diff: scripts/slave/recipes/v8/auto_roll_push.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, 8 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 DEPS = [ 5 DEPS = [
6 'depot_tools/bot_update', 6 'depot_tools/bot_update',
7 'depot_tools/infra_paths',
8 'chromium', 7 'chromium',
9 'depot_tools/gclient', 8 'depot_tools/gclient',
10 'recipe_engine/path', 9 'recipe_engine/path',
11 'recipe_engine/properties', 10 'recipe_engine/properties',
12 'recipe_engine/python', 11 'recipe_engine/python',
13 'recipe_engine/raw_io', 12 'recipe_engine/raw_io',
14 'recipe_engine/step', 13 'recipe_engine/step',
15 'v8', 14 'v8',
16 ] 15 ]
17 16
18 def RunSteps(api): 17 def RunSteps(api):
19 api.chromium.cleanup_temp() 18 api.chromium.cleanup_temp()
20 api.gclient.set_config('v8') 19 api.gclient.set_config('v8')
21 api.bot_update.ensure_checkout(force=True, no_shallow=True) 20 api.bot_update.ensure_checkout(force=True, no_shallow=True)
22 21
23 step_result = api.python( 22 step_result = api.python(
24 'check roll status', 23 'check roll status',
25 api.infra_paths['build'].join('scripts', 'tools', 'runit.py'), 24 api.path['build'].join('scripts', 'tools', 'runit.py'),
26 [api.infra_paths['build'].join('scripts', 'tools', 'pycurl.py'), 25 [api.path['build'].join('scripts', 'tools', 'pycurl.py'),
27 'https://v8-roll.appspot.com/status'], 26 'https://v8-roll.appspot.com/status'],
28 stdout=api.raw_io.output(), 27 stdout=api.raw_io.output(),
29 step_test_data=lambda: api.raw_io.test_api.stream_output( 28 step_test_data=lambda: api.raw_io.test_api.stream_output(
30 '1', stream='stdout') 29 '1', stream='stdout')
31 ) 30 )
32 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() 31 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines()
33 if step_result.stdout.strip() != '1': 32 if step_result.stdout.strip() != '1':
34 step_result.presentation.step_text = "Pushing deactivated" 33 step_result.presentation.step_text = "Pushing deactivated"
35 return 34 return
36 else: 35 else:
37 step_result.presentation.step_text = "Pushing activated" 36 step_result.presentation.step_text = "Pushing activated"
38 37
39 api.python( 38 api.python(
40 'push candidate', 39 'push candidate',
41 api.path['checkout'].join( 40 api.path['checkout'].join(
42 'tools', 'release', 'auto_push.py'), 41 'tools', 'release', 'auto_push.py'),
43 ['--author', 'v8-autoroll@chromium.org', 42 ['--author', 'v8-autoroll@chromium.org',
44 '--reviewer', 'v8-autoroll@chromium.org', 43 '--reviewer', 'v8-autoroll@chromium.org',
45 '--push', 44 '--push',
46 '--work-dir', api.infra_paths['slave_build'].join('workdir')], 45 '--work-dir', api.path['slave_build'].join('workdir')],
47 cwd=api.path['checkout'], 46 cwd=api.path['checkout'],
48 ) 47 )
49 48
50 49
51 def GenTests(api): 50 def GenTests(api):
52 yield api.test('standard') + api.properties.generic( 51 yield api.test('standard') + api.properties.generic(
53 mastername='client.v8.fyi') 52 mastername='client.v8.fyi')
54 yield (api.test('rolling_deactivated') + 53 yield (api.test('rolling_deactivated') +
55 api.properties.generic(mastername='client.v8.fyi') + 54 api.properties.generic(mastername='client.v8.fyi') +
56 api.override_step_data( 55 api.override_step_data(
57 'check roll status', api.raw_io.stream_output('0', stream='stdout')) 56 'check roll status', api.raw_io.stream_output('0', stream='stdout'))
58 ) 57 )
59 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698