OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 5 |
6 DEPS = [ | 6 DEPS = [ |
7 'depot_tools/bot_update', | 7 'depot_tools/bot_update', |
8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
9 'depot_tools/git', | 9 'depot_tools/git', |
| 10 'depot_tools/infra_paths', |
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 'webrtc', | 15 'webrtc', |
15 ] | 16 ] |
16 | 17 |
17 | 18 |
18 def RunSteps(api): | 19 def RunSteps(api): |
19 api.gclient.set_config('webrtc') | 20 api.gclient.set_config('webrtc') |
20 | 21 |
21 step_result = api.python( | 22 step_result = api.python( |
22 'check roll status', | 23 'check roll status', |
23 api.path['build'].join('scripts', 'tools', 'pycurl.py'), | 24 api.infra_paths['build'].join('scripts', 'tools', 'pycurl.py'), |
24 args=['https://webrtc-roll-cr-rev-status.appspot.com/status'], | 25 args=['https://webrtc-roll-cr-rev-status.appspot.com/status'], |
25 stdout=api.raw_io.output(), | 26 stdout=api.raw_io.output(), |
26 step_test_data=lambda: api.raw_io.test_api.stream_output( | 27 step_test_data=lambda: api.raw_io.test_api.stream_output( |
27 '1', stream='stdout') | 28 '1', stream='stdout') |
28 ) | 29 ) |
29 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() | 30 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() |
30 if step_result.stdout.strip() != '1': | 31 if step_result.stdout.strip() != '1': |
31 step_result.presentation.step_text = 'Rolling deactivated' | 32 step_result.presentation.step_text = 'Rolling deactivated' |
32 return | 33 return |
33 else: | 34 else: |
(...skipping 28 matching lines...) Expand all Loading... |
62 api.test('rolling_activated') + | 63 api.test('rolling_activated') + |
63 api.properties.generic(mastername='client.webrtc.fyi', | 64 api.properties.generic(mastername='client.webrtc.fyi', |
64 buildername='Auto-roll - WebRTC DEPS') | 65 buildername='Auto-roll - WebRTC DEPS') |
65 ) | 66 ) |
66 yield (api.test('rolling_deactivated') + | 67 yield (api.test('rolling_deactivated') + |
67 api.properties.generic(mastername='client.webrtc.fyi', | 68 api.properties.generic(mastername='client.webrtc.fyi', |
68 buildername='Auto-roll - WebRTC DEPS') + | 69 buildername='Auto-roll - WebRTC DEPS') + |
69 api.override_step_data('check roll status', | 70 api.override_step_data('check roll status', |
70 api.raw_io.stream_output('0', stream='stdout')) | 71 api.raw_io.stream_output('0', stream='stdout')) |
71 ) | 72 ) |
OLD | NEW |