| 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 """API for the bisect recipe module. | 5 """API for the bisect recipe module. |
| 6 | 6 |
| 7 This API is meant to enable the bisect recipe to bisect any chromium-supported | 7 This API is meant to enable the bisect recipe to bisect any chromium-supported |
| 8 platform for any test that can be run via buildbot, perf or otherwise. | 8 platform for any test that can be run via buildbot, perf or otherwise. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from slave import recipe_api | 11 from recipe_engine import recipe_api |
| 12 from . import bisector | 12 from . import bisector |
| 13 from . import perf_revision_state | 13 from . import perf_revision_state |
| 14 | 14 |
| 15 | 15 |
| 16 class AutoBisectApi(recipe_api.RecipeApi): | 16 class AutoBisectApi(recipe_api.RecipeApi): |
| 17 """A module for bisect specific functions.""" | 17 """A module for bisect specific functions.""" |
| 18 | 18 |
| 19 # Number of seconds to wait between polls for test results | 19 # Number of seconds to wait between polls for test results |
| 20 POLLING_INTERVAL = 60 | 20 POLLING_INTERVAL = 60 |
| 21 # GS bucket to use for communicating results and job state between bisector | 21 # GS bucket to use for communicating results and job state between bisector |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 args += ['--path_to_goma', self.m.path['build'].join('goma')] | 128 args += ['--path_to_goma', self.m.path['build'].join('goma')] |
| 129 args += [ | 129 args += [ |
| 130 '--build-properties', | 130 '--build-properties', |
| 131 self.m.json.dumps(dict(self.m.properties.legacy())), | 131 self.m.json.dumps(dict(self.m.properties.legacy())), |
| 132 ] | 132 ] |
| 133 self.m.chromium.runtest( | 133 self.m.chromium.runtest( |
| 134 self.m.path['checkout'].join('tools', 'run-bisect-perf-regression.py'), | 134 self.m.path['checkout'].join('tools', 'run-bisect-perf-regression.py'), |
| 135 ['-w', self.m.path['slave_build']] + args, | 135 ['-w', self.m.path['slave_build']] + args, |
| 136 name='Running Bisection', | 136 name='Running Bisection', |
| 137 xvfb=True, **kwargs) | 137 xvfb=True, **kwargs) |
| OLD | NEW |