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 from . import chromium_perf | 5 from . import chromium_perf |
6 from . import steps | 6 from . import steps |
7 | 7 |
8 import DEPS | 8 import DEPS |
9 CHROMIUM_CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 9 CHROMIUM_CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
10 GCLIENT_CONFIG_CTX = DEPS['gclient'].CONFIG_CTX | 10 GCLIENT_CONFIG_CTX = DEPS['gclient'].CONFIG_CTX |
(...skipping 15 matching lines...) Expand all Loading... |
26 pass | 26 pass |
27 | 27 |
28 | 28 |
29 def _AddBuildSpec(name, perf_id, platform, config_name='chromium_perf', | 29 def _AddBuildSpec(name, perf_id, platform, config_name='chromium_perf', |
30 target_bits=64): | 30 target_bits=64): |
31 SPEC['builders'][name] = chromium_perf.BuildSpec( | 31 SPEC['builders'][name] = chromium_perf.BuildSpec( |
32 config_name, perf_id, platform, target_bits) | 32 config_name, perf_id, platform, target_bits) |
33 | 33 |
34 | 34 |
35 def _AddTestSpec(name, perf_id, platform, | 35 def _AddTestSpec(name, perf_id, platform, |
36 parent_builder=None, target_bits=64): | 36 parent_buildername=None, target_bits=64): |
37 parent_buildername = (parent_builder or | 37 tests = [steps.DynamicPerfTests( |
38 chromium_perf.builders[platform][target_bits]) | 38 perf_id, platform, target_bits, |
39 spec = chromium_perf.TestSpec('chromium_perf', parent_buildername, perf_id, | 39 num_device_shards=1, num_host_shards=1, shard_index=0)] |
40 platform, target_bits, 0, 1, 1) | 40 |
41 if not parent_builder: | 41 spec = chromium_perf.TestSpec( |
| 42 'chromium_perf', platform, target_bits, |
| 43 parent_buildername=parent_buildername, tests=tests) |
| 44 if not parent_buildername: |
42 spec['parent_mastername'] = 'chromium.perf' | 45 spec['parent_mastername'] = 'chromium.perf' |
43 spec['disable_tests'] = True | |
44 SPEC['builders'][name] = spec | |
45 | |
46 | |
47 def _AddIsolatedTestSpec(name, platform, parent_builder=None, target_bits=64): | |
48 spec = { | |
49 'bot_type': 'tester', | |
50 'chromium_config': 'chromium_perf', | |
51 'chromium_config_kwargs': { | |
52 'BUILD_CONFIG': 'Release', | |
53 'TARGET_BITS': target_bits, | |
54 }, | |
55 'gclient_config': 'chromium_perf', | |
56 'testing': { | |
57 'platform': 'linux' if platform == 'android' else platform, | |
58 }, | |
59 'parent_buildername': parent_builder, | |
60 'test_generators': [steps.generate_isolated_script], | |
61 'test_spec_file': 'chromium.perf.fyi.json', | |
62 'enable_swarming': True, | |
63 'parent_mastername': 'chromium.perf', | |
64 } | |
65 | 46 |
66 SPEC['builders'][name] = spec | 47 SPEC['builders'][name] = spec |
67 | 48 |
68 | 49 |
| 50 def _AddIsolatedTestSpec(name, platform, target_bits=64): |
| 51 spec = chromium_perf.TestSpec('chromium_perf', platform, target_bits) |
| 52 spec['parent_mastername'] = 'chromium.perf' |
| 53 spec['enable_swarming'] = True |
| 54 spec['test_generators'] = [steps.generate_isolated_script] |
| 55 SPEC['builders'][name] = spec |
| 56 |
| 57 |
69 _AddTestSpec('Android Galaxy S5 Perf (1)', 'fyi-android-galaxy-s5', 'android', | 58 _AddTestSpec('Android Galaxy S5 Perf (1)', 'fyi-android-galaxy-s5', 'android', |
70 target_bits=32) | 59 target_bits=32) |
71 | 60 |
72 | 61 |
73 _AddTestSpec('Win 7 Intel GPU Perf (Xeon)', 'chromium-rel-win7-gpu-intel', | 62 _AddTestSpec('Win 7 Intel GPU Perf (Xeon)', 'chromium-rel-win7-gpu-intel', |
74 'win') | 63 'win') |
75 _AddTestSpec('Win Power High-DPI Perf', 'win-power-high-dpi', 'win') | 64 _AddTestSpec('Win Power High-DPI Perf', 'win-power-high-dpi', 'win') |
76 | 65 |
77 | 66 |
78 _AddTestSpec('Mac Power Dual-GPU Perf', 'mac-power-dual-gpu', 'mac') | 67 _AddTestSpec('Mac Power Dual-GPU Perf', 'mac-power-dual-gpu', 'mac') |
79 _AddTestSpec('Mac Power Low-End Perf', 'mac-power-low-end', 'mac') | 68 _AddTestSpec('Mac Power Low-End Perf', 'mac-power-low-end', 'mac') |
80 _AddTestSpec('Mac Test Retina Perf', 'mac-test-retina', 'mac') | 69 _AddTestSpec('Mac Test Retina Perf', 'mac-test-retina', 'mac') |
81 | 70 |
82 | 71 |
83 _AddBuildSpec('Win Clang Builder', 'win-clang-builder', 'win', | 72 _AddBuildSpec('Win Clang Builder', 'win-clang-builder', 'win', |
84 config_name='chromium_perf_clang', target_bits=32) | 73 config_name='chromium_perf_clang', target_bits=32) |
85 _AddTestSpec('Win Clang Perf', 'chromium-win-clang', 'win', | 74 _AddTestSpec('Win Clang Perf', 'chromium-win-clang', 'win', |
86 parent_builder='Win Clang Builder', target_bits=32) | 75 parent_buildername='Win Clang Builder', target_bits=32) |
87 | 76 |
88 | 77 |
89 _AddIsolatedTestSpec('Win 10 Low-End 2 Core Perf', 'win', | 78 _AddIsolatedTestSpec('Win 10 Low-End 2 Core Perf', 'win') |
90 parent_builder='Win x64 Builder') | 79 _AddIsolatedTestSpec('Win 10 Low-End 4 Core Perf', 'win') |
91 _AddIsolatedTestSpec('Win 10 Low-End 4 Core Perf', 'win', | |
92 parent_builder='Win x64 Builder') | |
OLD | NEW |