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