Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: scripts/slave/recipe_modules/chromium_tests/chromium_perf.py

Issue 1920863007: Add sizes test to chromium.perf builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Exclude dead code deletion. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import collections 5 import collections
6 6
7 from . import steps 7 from . import steps
8 8
9 9
10 _builders = collections.defaultdict(dict) 10 _builders = collections.defaultdict(dict)
11 11
12 12
13 SPEC = { 13 SPEC = {
14 'builders': {}, 14 'builders': {},
15 'settings': { 15 'settings': {
16 'build_gs_bucket': 'chrome-perf', 16 'build_gs_bucket': 'chrome-perf',
17 }, 17 },
18 } 18 }
19 19
20 20
21 def _BaseSpec(bot_type, chromium_apply_config, disable_tests, 21 def _BaseSpec(bot_type, chromium_apply_config, disable_tests,
22 gclient_config, platform, target_bits): 22 gclient_config, platform, target_bits, tests):
23 return { 23 return {
24 'bot_type': bot_type, 24 'bot_type': bot_type,
25 'chromium_apply_config' : chromium_apply_config, 25 'chromium_apply_config' : chromium_apply_config,
26 'chromium_config': 'chromium_official', 26 'chromium_config': 'chromium_official',
27 'chromium_config_kwargs': { 27 'chromium_config_kwargs': {
28 'BUILD_CONFIG': 'Release', 28 'BUILD_CONFIG': 'Release',
29 'TARGET_BITS': target_bits, 29 'TARGET_BITS': target_bits,
30 }, 30 },
31 'disable_tests': disable_tests, 31 'disable_tests': disable_tests,
32 'gclient_config': gclient_config, 32 'gclient_config': gclient_config,
33 'testing': { 33 'testing': {
34 'platform': 'linux' if platform == 'android' else platform, 34 'platform': 'linux' if platform == 'android' else platform,
35 }, 35 },
36 'tests': tests,
36 } 37 }
37 38
38 39
39 def _BuildSpec(platform, target_bits): 40 def _BuildSpec(platform, target_bits):
41 if target_bits == 64:
42 perf_id = platform
43 else:
44 perf_id = '%s-%d' % (platform, target_bits)
45
46 if platform == 'android':
47 tests = []
48 else:
49 tests = [steps.SizesStep('https://chromeperf.appspot.com', perf_id)]
50
40 spec = _BaseSpec( 51 spec = _BaseSpec(
41 bot_type='builder', 52 bot_type='builder',
42 chromium_apply_config=['mb', 'chromium_perf', 'goma_hermetic_fallback'], 53 chromium_apply_config=['mb', 'chromium_perf', 'goma_hermetic_fallback'],
43 disable_tests=True, 54 disable_tests=True,
44 gclient_config='chromium', 55 gclient_config='chromium',
45 platform=platform, 56 platform=platform,
46 target_bits=target_bits) 57 target_bits=target_bits,
58 tests=tests)
47 59
48 if platform == 'android': 60 if platform == 'android':
49 spec['chromium_apply_config'].append('android') 61 spec['chromium_apply_config'].append('android')
50 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm' 62 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm'
51 spec['gclient_apply_config'] = ['android', 'perf'] 63 spec['gclient_apply_config'] = ['android', 'perf']
52 else: 64 else:
53 spec['compile_targets'] = ['chromium_builder_perf'] 65 spec['compile_targets'] = ['chromium_builder_perf']
54 spec['gclient_apply_config'] = ['chrome_internal'] 66 spec['gclient_apply_config'] = ['chrome_internal']
55 67
56 if platform == 'win':
57 spec['tests'] = { steps.SizesStep(results_url=None, perf_id=None) }
58
59 return spec 68 return spec
60 69
61 70
62 def _TestSpec(parent_builder, perf_id, platform, target_bits, max_battery_temp, 71 def _TestSpec(parent_builder, perf_id, platform, target_bits, max_battery_temp,
63 shard_index, num_host_shards, num_device_shards, 72 shard_index, num_host_shards, num_device_shards,
64 known_devices_file): 73 known_devices_file):
65 spec = _BaseSpec( 74 spec = _BaseSpec(
66 bot_type='tester', 75 bot_type='tester',
67 chromium_apply_config=[], 76 chromium_apply_config=[],
68 disable_tests=platform == 'android', 77 disable_tests=platform == 'android',
69 gclient_config='perf', 78 gclient_config='perf',
70 platform=platform, 79 platform=platform,
71 target_bits=target_bits) 80 target_bits=target_bits,
81 tests=[steps.DynamicPerfTests(
82 perf_id, platform, target_bits, max_battery_temp, num_device_shards,
83 num_host_shards, shard_index, known_devices_file)],
84 )
72 85
73 spec['parent_buildername'] = parent_builder 86 spec['parent_buildername'] = parent_builder
74 spec['perf-id'] = perf_id 87 spec['perf-id'] = perf_id
75 spec['results-url'] = 'https://chromeperf.appspot.com' 88 spec['results-url'] = 'https://chromeperf.appspot.com'
76 spec['tests'] = [
77 steps.DynamicPerfTests(perf_id, platform, target_bits, max_battery_temp,
78 num_device_shards, num_host_shards, shard_index,
79 known_devices_file),
80 ]
81 89
82 if platform == 'android': 90 if platform == 'android':
83 spec['android_config'] = 'perf' 91 spec['android_config'] = 'perf'
84 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android' 92 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android'
85 spec['gclient_apply_config'] = ['android'] 93 spec['gclient_apply_config'] = ['android']
86 else: 94 else:
87 spec['test_generators'] = [steps.generate_script] 95 spec['test_generators'] = [steps.generate_script]
88 spec['test_spec_file'] = 'chromium.perf.json' 96 spec['test_spec_file'] = 'chromium.perf.json'
89 97
90 return spec 98 return spec
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac', 164 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac',
157 num_host_shards=5) 165 num_host_shards=5)
158 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac', 166 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac',
159 num_host_shards=5) 167 num_host_shards=5)
160 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', 168 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac',
161 num_host_shards=5) 169 num_host_shards=5)
162 170
163 171
164 _AddTestSpec('Linux Perf', 'linux-release', 'linux', 172 _AddTestSpec('Linux Perf', 'linux-release', 'linux',
165 num_host_shards=5) 173 num_host_shards=5)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium_tests/tryserver_chromium_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698