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 copy | 5 import copy |
6 | 6 |
7 from . import chromium_perf | 7 from . import chromium_perf |
8 from . import steps | 8 from . import steps |
9 | 9 |
10 | 10 |
11 def _Builders(): | 11 def _Builders(): |
12 # These should build with the same configs as the main perf builders. | 12 # These should build with the same configs as the main perf builders. |
13 builders = {} | 13 builders = {} |
14 for bisect_bot_name, perf_bot_name in _PERF_BOT_MAPPINGS.iteritems(): | 14 |
| 15 for bisect_bot_name, perf_bot_name in _BUILDER_MAPPINGS.iteritems(): |
| 16 config = copy.deepcopy(chromium_perf.SPEC['builders'][perf_bot_name]) |
| 17 config['tests'] = [steps.SizesStep(None, None)] |
| 18 builders[bisect_bot_name] = config |
| 19 |
| 20 for bisect_bot_name, perf_bot_name in _TESTER_MAPPINGS.iteritems(): |
15 config = copy.deepcopy(chromium_perf.SPEC['builders'][perf_bot_name]) | 21 config = copy.deepcopy(chromium_perf.SPEC['builders'][perf_bot_name]) |
16 del config['tests'] # Don't run the same tests as the perf waterfall. | 22 del config['tests'] # Don't run the same tests as the perf waterfall. |
17 builders[bisect_bot_name] = config | 23 builders[bisect_bot_name] = config |
| 24 |
18 return builders | 25 return builders |
19 | 26 |
20 | 27 |
21 _PERF_BOT_MAPPINGS = { | 28 _BUILDER_MAPPINGS = { |
22 'linux_perf_bisect_builder': 'Linux Builder', | 29 'linux_perf_bisect_builder': 'Linux Builder', |
| 30 'win_perf_bisect_builder': 'Win Builder', |
| 31 'winx64_bisect_builder': 'Win x64 Builder', |
| 32 'mac_perf_bisect_builder': 'Mac Builder', |
| 33 } |
| 34 |
| 35 |
| 36 _TESTER_MAPPINGS = { |
23 'linux_perf_bisect': 'Linux Builder', | 37 'linux_perf_bisect': 'Linux Builder', |
24 'linux_perf_cq': 'Linux Builder', | 38 'linux_perf_cq': 'Linux Builder', |
25 'linux_fyi_perf_bisect': 'Linux Builder', | 39 'linux_fyi_perf_bisect': 'Linux Builder', |
26 'win_perf_bisect_builder': 'Win Builder', | |
27 'win_perf_bisect': 'Win Builder', | 40 'win_perf_bisect': 'Win Builder', |
28 'win_8_perf_bisect': 'Win Builder', | 41 'win_8_perf_bisect': 'Win Builder', |
29 'winx64_10_perf_bisect': 'Win x64 Builder', | 42 'winx64_10_perf_bisect': 'Win x64 Builder', |
30 'winx64_bisect_builder': 'Win x64 Builder', | |
31 'win_x64_perf_bisect': 'Win x64 Builder', | 43 'win_x64_perf_bisect': 'Win x64 Builder', |
32 'winx64ati_perf_bisect': 'Win x64 Builder', | 44 'winx64ati_perf_bisect': 'Win x64 Builder', |
33 'winx64nvidia_perf_bisect': 'Win x64 Builder', | 45 'winx64nvidia_perf_bisect': 'Win x64 Builder', |
34 'winx64intel_perf_bisect': 'Win x64 Builder', | 46 'winx64intel_perf_bisect': 'Win x64 Builder', |
35 'winx64_zen_perf_bisect': 'Win x64 Builder', | 47 'winx64_zen_perf_bisect': 'Win x64 Builder', |
36 'winx64_10_perf_cq': 'Win x64 Builder', | 48 'winx64_10_perf_cq': 'Win x64 Builder', |
37 'win_fyi_perf_bisect': 'Win Builder', | 49 'win_fyi_perf_bisect': 'Win Builder', |
38 'mac_perf_bisect_builder': 'Mac Builder', | |
39 'mac_10_11_perf_bisect': 'Mac Builder', | 50 'mac_10_11_perf_bisect': 'Mac Builder', |
40 'mac_10_10_perf_bisect': 'Mac Builder', | 51 'mac_10_10_perf_bisect': 'Mac Builder', |
41 'mac_retina_perf_bisect': 'Mac Builder', | 52 'mac_retina_perf_bisect': 'Mac Builder', |
42 'mac_hdd_perf_bisect': 'Mac Builder', | 53 'mac_hdd_perf_bisect': 'Mac Builder', |
43 'mac_retina_perf_cq': 'Mac Builder', | 54 'mac_retina_perf_cq': 'Mac Builder', |
44 'mac_fyi_perf_bisect': 'Mac Builder', | 55 'mac_fyi_perf_bisect': 'Mac Builder', |
45 } | 56 } |
46 | 57 |
47 | 58 |
48 SPEC = { | 59 SPEC = { |
49 'settings': chromium_perf.SPEC['settings'], | 60 'settings': chromium_perf.SPEC['settings'], |
50 'builders': _Builders(), | 61 'builders': _Builders(), |
51 } | 62 } |
OLD | NEW |