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

Side by Side Diff: tools/perf/generate_perf_json.py

Issue 2620753002: Triggering android perf jobs across 21 devices instead of 7. (Closed)
Patch Set: Adding the generated json Created 3 years, 11 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 | « testing/buildbot/chromium.perf.fyi.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in 6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in
7 the src/testing/buildbot directory. Maintaining these files by hand is 7 the src/testing/buildbot directory. Maintaining these files by hand is
8 too unwieldy. 8 too unwieldy.
9 """ 9 """
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 waterfall, 'Android Swarming N5X Tester', 172 waterfall, 'Android Swarming N5X Tester',
173 'fyi-android-swarming-n5x', 'android', 173 'fyi-android-swarming-n5x', 'android',
174 swarming=[ 174 swarming=[
175 { 175 {
176 'os': 'Android', 176 'os': 'Android',
177 'android_devices': '1', 177 'android_devices': '1',
178 'device_ids': [ 178 'device_ids': [
179 'build245-m4--device1', 'build245-m4--device2', 179 'build245-m4--device1', 'build245-m4--device2',
180 'build245-m4--device3', 'build245-m4--device4', 180 'build245-m4--device3', 'build245-m4--device4',
181 'build245-m4--device5', 'build245-m4--device6', 181 'build245-m4--device5', 'build245-m4--device6',
182 'build245-m4--device7' 182 'build245-m4--device7', 'build248-m4--device1',
183 'build248-m4--device2', 'build248-m4--device3',
184 'build248-m4--device4', 'build248-m4--device5',
185 'build248-m4--device6', 'build248-m4--device7',
186 'build249-m4--device1', 'build249-m4--device2',
187 'build249-m4--device3', 'build249-m4--device4',
188 'build249-m4--device5', 'build249-m4--device6',
189 'build249-m4--device7'
183 ] 190 ]
184 } 191 }
185 ]) 192 ])
186 return waterfall 193 return waterfall
187 194
188 195
189 def get_waterfall_config(): 196 def get_waterfall_config():
190 waterfall = {'builders':[], 'testers': {}} 197 waterfall = {'builders':[], 'testers': {}}
191 198
192 # These configurations are taken from chromium_perf.py in 199 # These configurations are taken from chromium_perf.py in
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 for builder in waterfall['builders']: 683 for builder in waterfall['builders']:
677 tests[builder] = {} 684 tests[builder] = {}
678 all_benchmarks = current_benchmarks(False) 685 all_benchmarks = current_benchmarks(False)
679 whitelist_benchmarks = current_benchmarks(True) 686 whitelist_benchmarks = current_benchmarks(True)
680 # Get benchmark sharding according to common sharding configurations 687 # Get benchmark sharding according to common sharding configurations
681 # Currently we only have bots sharded 5 directions and 1 direction 688 # Currently we only have bots sharded 5 directions and 1 direction
682 benchmark_sharding_map = {} 689 benchmark_sharding_map = {}
683 benchmark_sharding_map['22'] = shard_benchmarks(22, all_benchmarks) 690 benchmark_sharding_map['22'] = shard_benchmarks(22, all_benchmarks)
684 benchmark_sharding_map['5'] = shard_benchmarks(5, all_benchmarks) 691 benchmark_sharding_map['5'] = shard_benchmarks(5, all_benchmarks)
685 benchmark_sharding_map['1'] = shard_benchmarks(1, all_benchmarks) 692 benchmark_sharding_map['1'] = shard_benchmarks(1, all_benchmarks)
686 benchmark_sharding_map['7'] = shard_benchmarks(7, all_benchmarks) 693 benchmark_sharding_map['21'] = shard_benchmarks(21, all_benchmarks)
687 694
688 for name, config in waterfall['testers'].iteritems(): 695 for name, config in waterfall['testers'].iteritems():
689 use_whitelist = config['use_whitelist'] 696 use_whitelist = config['use_whitelist']
690 benchmark_list = all_benchmarks 697 benchmark_list = all_benchmarks
691 if use_whitelist: 698 if use_whitelist:
692 benchmark_list = whitelist_benchmarks 699 benchmark_list = whitelist_benchmarks
693 if config.get('swarming', False): 700 if config.get('swarming', False):
694 # Our current configuration only ever has one set of swarming dimensions 701 # Our current configuration only ever has one set of swarming dimensions
695 # Make sure this still holds true 702 # Make sure this still holds true
696 if len(config['swarming_dimensions']) > 1: 703 if len(config['swarming_dimensions']) > 1:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 waterfall['name'] = 'chromium.perf' 746 waterfall['name'] = 'chromium.perf'
740 fyi_waterfall = get_fyi_waterfall_config() 747 fyi_waterfall = get_fyi_waterfall_config()
741 fyi_waterfall['name'] = 'chromium.perf.fyi' 748 fyi_waterfall['name'] = 'chromium.perf.fyi'
742 749
743 generate_all_tests(fyi_waterfall) 750 generate_all_tests(fyi_waterfall)
744 generate_all_tests(waterfall) 751 generate_all_tests(waterfall)
745 return 0 752 return 0
746 753
747 if __name__ == '__main__': 754 if __name__ == '__main__':
748 sys.exit(main()) 755 sys.exit(main())
OLDNEW
« no previous file with comments | « testing/buildbot/chromium.perf.fyi.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698