| 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 'recipe_engine/path', | 10 'recipe_engine/path', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 step_test_data=lambda: api.raw_io.test_api.stream_output( | 26 step_test_data=lambda: api.raw_io.test_api.stream_output( |
| 27 '1', stream='stdout') | 27 '1', stream='stdout') |
| 28 ) | 28 ) |
| 29 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() | 29 step_result.presentation.logs['stdout'] = step_result.stdout.splitlines() |
| 30 if step_result.stdout.strip() != '1': | 30 if step_result.stdout.strip() != '1': |
| 31 step_result.presentation.step_text = 'Rolling deactivated' | 31 step_result.presentation.step_text = 'Rolling deactivated' |
| 32 return | 32 return |
| 33 else: | 33 else: |
| 34 step_result.presentation.step_text = 'Rolling activated' | 34 step_result.presentation.step_text = 'Rolling activated' |
| 35 | 35 |
| 36 api.bot_update.ensure_checkout(force=True) | 36 api.bot_update.ensure_checkout() |
| 37 api.gclient.runhooks() | 37 api.gclient.runhooks() |
| 38 | 38 |
| 39 # Enforce a clean state. | 39 # Enforce a clean state. |
| 40 api.git( | 40 api.git( |
| 41 'checkout', '-f', 'master', | 41 'checkout', '-f', 'master', |
| 42 cwd=api.path['checkout'], | 42 cwd=api.path['checkout'], |
| 43 ) | 43 ) |
| 44 api.git( | 44 api.git( |
| 45 'clean', '-ffd', | 45 'clean', '-ffd', |
| 46 cwd=api.path['checkout'], | 46 cwd=api.path['checkout'], |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 api.test('rolling_activated') + | 62 api.test('rolling_activated') + |
| 63 api.properties.generic(mastername='client.webrtc.fyi', | 63 api.properties.generic(mastername='client.webrtc.fyi', |
| 64 buildername='Auto-roll - WebRTC DEPS') | 64 buildername='Auto-roll - WebRTC DEPS') |
| 65 ) | 65 ) |
| 66 yield (api.test('rolling_deactivated') + | 66 yield (api.test('rolling_deactivated') + |
| 67 api.properties.generic(mastername='client.webrtc.fyi', | 67 api.properties.generic(mastername='client.webrtc.fyi', |
| 68 buildername='Auto-roll - WebRTC DEPS') + | 68 buildername='Auto-roll - WebRTC DEPS') + |
| 69 api.override_step_data('check roll status', | 69 api.override_step_data('check roll status', |
| 70 api.raw_io.stream_output('0', stream='stdout')) | 70 api.raw_io.stream_output('0', stream='stdout')) |
| 71 ) | 71 ) |
| OLD | NEW |