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

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: Remove unused bots and bot code. 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
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
40 spec = _BaseSpec( 46 spec = _BaseSpec(
41 bot_type='builder', 47 bot_type='builder',
42 chromium_apply_config=['mb', 'chromium_perf', 'goma_hermetic_fallback'], 48 chromium_apply_config=['mb', 'chromium_perf', 'goma_hermetic_fallback'],
43 disable_tests=True, 49 disable_tests=True,
44 gclient_config='chromium', 50 gclient_config='chromium',
45 platform=platform, 51 platform=platform,
46 target_bits=target_bits) 52 target_bits=target_bits,
53 tests=[steps.SizesStep('https://chromeperf.appspot.com', perf_id)])
47 54
48 if platform == 'android': 55 if platform == 'android':
49 spec['chromium_apply_config'].append('android') 56 spec['chromium_apply_config'].append('android')
50 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm' 57 spec['chromium_config_kwargs']['TARGET_ARCH'] = 'arm'
51 spec['gclient_apply_config'] = ['android', 'perf'] 58 spec['gclient_apply_config'] = ['android', 'perf']
52 else: 59 else:
53 spec['compile_targets'] = ['chromium_builder_perf'] 60 spec['compile_targets'] = ['chromium_builder_perf']
54 spec['gclient_apply_config'] = ['chrome_internal'] 61 spec['gclient_apply_config'] = ['chrome_internal']
55 62
56 if platform == 'win':
57 spec['tests'] = { steps.SizesStep(results_url=None, perf_id=None) }
58
59 return spec 63 return spec
60 64
61 65
62 def _TestSpec(parent_builder, perf_id, platform, target_bits, max_battery_temp, 66 def _TestSpec(parent_builder, perf_id, platform, target_bits, max_battery_temp,
63 shard_index, num_host_shards, num_device_shards, 67 shard_index, num_host_shards, num_device_shards,
64 known_devices_file): 68 known_devices_file):
65 spec = _BaseSpec( 69 spec = _BaseSpec(
66 bot_type='tester', 70 bot_type='tester',
67 chromium_apply_config=[], 71 chromium_apply_config=[],
68 disable_tests=platform == 'android', 72 disable_tests=platform == 'android',
69 gclient_config='perf', 73 gclient_config='perf',
70 platform=platform, 74 platform=platform,
71 target_bits=target_bits) 75 target_bits=target_bits,
76 tests=[steps.DynamicPerfTests(
77 perf_id, platform, target_bits, max_battery_temp, num_device_shards,
78 num_host_shards, shard_index, known_devices_file)
79 ])
72 80
73 spec['parent_buildername'] = parent_builder 81 spec['parent_buildername'] = parent_builder
74 spec['perf-id'] = perf_id
75 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 82
82 if platform == 'android': 83 if platform == 'android':
83 spec['android_config'] = 'perf' 84 spec['android_config'] = 'perf'
84 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android' 85 spec['chromium_config_kwargs']['TARGET_PLATFORM'] = 'android'
85 spec['gclient_apply_config'] = ['android'] 86 spec['gclient_apply_config'] = ['android']
86 else: 87 else:
87 spec['test_generators'] = [steps.generate_script] 88 spec['test_generators'] = [steps.generate_script]
88 spec['test_spec_file'] = 'chromium.perf.json' 89 spec['test_spec_file'] = 'chromium.perf.json'
89 90
90 return spec 91 return spec
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac', 157 _AddTestSpec('Mac 10.10 Perf', 'chromium-rel-mac10', 'mac',
157 num_host_shards=5) 158 num_host_shards=5)
158 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac', 159 _AddTestSpec('Mac Retina Perf', 'chromium-rel-mac-retina', 'mac',
159 num_host_shards=5) 160 num_host_shards=5)
160 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac', 161 _AddTestSpec('Mac HDD Perf', 'chromium-rel-mac-hdd', 'mac',
161 num_host_shards=5) 162 num_host_shards=5)
162 163
163 164
164 _AddTestSpec('Linux Perf', 'linux-release', 'linux', 165 _AddTestSpec('Linux Perf', 'linux-release', 'linux',
165 num_host_shards=5) 166 num_host_shards=5)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698