OLD | NEW |
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', |
7 'chromium', | 8 'chromium', |
8 'depot_tools/gclient', | 9 'depot_tools/gclient', |
9 'recipe_engine/json', | 10 'recipe_engine/json', |
10 'recipe_engine/path', | 11 'recipe_engine/path', |
11 'recipe_engine/properties', | 12 'recipe_engine/properties', |
12 'recipe_engine/python', | 13 'recipe_engine/python', |
13 'recipe_engine/raw_io', | 14 'recipe_engine/raw_io', |
14 'recipe_engine/step', | 15 'recipe_engine/step', |
15 'url', | 16 'url', |
16 ] | 17 ] |
(...skipping 23 matching lines...) Expand all Loading... |
40 | 41 |
41 def RunSteps(api): | 42 def RunSteps(api): |
42 monitoring_state = 'failure' | 43 monitoring_state = 'failure' |
43 try: | 44 try: |
44 api.chromium.cleanup_temp() | 45 api.chromium.cleanup_temp() |
45 api.gclient.set_config('chromium') | 46 api.gclient.set_config('chromium') |
46 api.gclient.apply_config('v8_bleeding_edge_git') | 47 api.gclient.apply_config('v8_bleeding_edge_git') |
47 | 48 |
48 step_result = api.python( | 49 step_result = api.python( |
49 'check roll status', | 50 'check roll status', |
50 api.path['build'].join('scripts', 'tools', 'runit.py'), | 51 api.infra_paths['build'].join('scripts', 'tools', 'runit.py'), |
51 [api.path['build'].join('scripts', 'tools', 'pycurl.py'), | 52 [api.infra_paths['build'].join('scripts', 'tools', 'pycurl.py'), |
52 'https://v8-roll.appspot.com/status'], | 53 'https://v8-roll.appspot.com/status'], |
53 stdout=api.raw_io.output(), | 54 stdout=api.raw_io.output(), |
54 step_test_data=lambda: api.raw_io.test_api.stream_output( | 55 step_test_data=lambda: api.raw_io.test_api.stream_output( |
55 '1', stream='stdout') | 56 '1', stream='stdout') |
56 ) | 57 ) |
57 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() | 58 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() |
58 if step_result.stdout.strip() != '1': | 59 if step_result.stdout.strip() != '1': |
59 step_result.presentation.step_text = 'Rolling deactivated' | 60 step_result.presentation.step_text = 'Rolling deactivated' |
60 monitoring_state = 'deactivated' | 61 monitoring_state = 'deactivated' |
61 return | 62 return |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 'roll deps', | 106 'roll deps', |
106 api.path['checkout'].join( | 107 api.path['checkout'].join( |
107 'v8', 'tools', 'release', 'auto_roll.py'), | 108 'v8', 'tools', 'release', 'auto_roll.py'), |
108 ['--chromium', api.path['checkout'], | 109 ['--chromium', api.path['checkout'], |
109 '--author', 'v8-autoroll@chromium.org', | 110 '--author', 'v8-autoroll@chromium.org', |
110 '--reviewer', | 111 '--reviewer', |
111 'hablich@chromium.org,machenbach@chromium.org,' | 112 'hablich@chromium.org,machenbach@chromium.org,' |
112 'yangguo@chromium.org,vogelheim@chromium.org', | 113 'yangguo@chromium.org,vogelheim@chromium.org', |
113 '--roll', | 114 '--roll', |
114 '--json-output', api.json.output(), | 115 '--json-output', api.json.output(), |
115 '--work-dir', api.path['slave_build'].join('workdir')], | 116 '--work-dir', api.infra_paths['slave_build'].join('workdir')], |
116 cwd=api.path['checkout'].join('v8'), | 117 cwd=api.path['checkout'].join('v8'), |
117 step_test_data=lambda: api.json.test_api.output( | 118 step_test_data=lambda: api.json.test_api.output( |
118 {'monitoring_state': 'success'}), | 119 {'monitoring_state': 'success'}), |
119 ) | 120 ) |
120 monitoring_state = result.json.output['monitoring_state'] | 121 monitoring_state = result.json.output['monitoring_state'] |
121 finally: | 122 finally: |
122 counter_config = { | 123 counter_config = { |
123 'name': '/v8/autoroller/count', | 124 'name': '/v8/autoroller/count', |
124 'project': 'v8-roll', | 125 'project': 'v8-roll', |
125 'result': monitoring_state, | 126 'result': monitoring_state, |
(...skipping 28 matching lines...) Expand all Loading... |
154 ' "issue": 123456, "commit": true}]}')) | 155 ' "issue": 123456, "commit": true}]}')) |
155 ) | 156 ) |
156 yield (api.test('stale_roll') + | 157 yield (api.test('stale_roll') + |
157 api.properties.generic(mastername='client.v8') + | 158 api.properties.generic(mastername='client.v8') + |
158 api.override_step_data( | 159 api.override_step_data( |
159 'check active roll', api.raw_io.output( | 160 'check active roll', api.raw_io.output( |
160 '{"results": [{"subject": "Update V8 to foo",' + | 161 '{"results": [{"subject": "Update V8 to foo",' + |
161 ' "issue": 123456, "commit": false}]}')) | 162 ' "issue": 123456, "commit": false}]}')) |
162 ) | 163 ) |
163 | 164 |
OLD | NEW |