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