| 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 import collections | 5 import collections |
| 6 import contextlib | 6 import contextlib |
| 7 import copy | 7 import copy |
| 8 import itertools | 8 import itertools |
| 9 import json | 9 import json |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'cpu': None, | 32 'cpu': None, |
| 33 'gpu': None, | 33 'gpu': None, |
| 34 'os': 'Android', | 34 'os': 'Android', |
| 35 } | 35 } |
| 36 }) | 36 }) |
| 37 | 37 |
| 38 | 38 |
| 39 MASTER_SWARMING_PRIORITIES = collections.defaultdict(lambda: 25) | 39 MASTER_SWARMING_PRIORITIES = collections.defaultdict(lambda: 25) |
| 40 MASTER_SWARMING_PRIORITIES.update({ | 40 MASTER_SWARMING_PRIORITIES.update({ |
| 41 'chromium.fyi': 35, # This should be lower than the CQ. | 41 'chromium.fyi': 35, # This should be lower than the CQ. |
| 42 'chromium.memory.full': 27, | 42 'chromium.memory.fyi': 27, |
| 43 }) | 43 }) |
| 44 | 44 |
| 45 | 45 |
| 46 class ChromiumTestsApi(recipe_api.RecipeApi): | 46 class ChromiumTestsApi(recipe_api.RecipeApi): |
| 47 def __init__(self, *args, **kwargs): | 47 def __init__(self, *args, **kwargs): |
| 48 super(ChromiumTestsApi, self).__init__(*args, **kwargs) | 48 super(ChromiumTestsApi, self).__init__(*args, **kwargs) |
| 49 self._builders = {} | 49 self._builders = {} |
| 50 self.add_builders(builders.BUILDERS) | 50 self.add_builders(builders.BUILDERS) |
| 51 self._precommit_mode = False | 51 self._precommit_mode = False |
| 52 | 52 |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 def get_compile_targets_for_scripts(self): | 839 def get_compile_targets_for_scripts(self): |
| 840 return self.m.python( | 840 return self.m.python( |
| 841 name='get compile targets for scripts', | 841 name='get compile targets for scripts', |
| 842 script=self.m.path['checkout'].join( | 842 script=self.m.path['checkout'].join( |
| 843 'testing', 'scripts', 'get_compile_targets.py'), | 843 'testing', 'scripts', 'get_compile_targets.py'), |
| 844 args=[ | 844 args=[ |
| 845 '--output', self.m.json.output(), | 845 '--output', self.m.json.output(), |
| 846 '--', | 846 '--', |
| 847 ] + self.get_common_args_for_scripts(), | 847 ] + self.get_common_args_for_scripts(), |
| 848 step_test_data=lambda: self.m.json.test_api.output({})) | 848 step_test_data=lambda: self.m.json.test_api.output({})) |
| OLD | NEW |