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

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

Issue 2344163002: Updating swarming dimensions to add the Chrome-perf pool. (Closed)
Patch Set: Adding trailing comm Created 4 years, 3 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 'platform': platform, 191 'platform': platform,
192 'num_device_shards': num_device_shards, 192 'num_device_shards': num_device_shards,
193 'num_host_shards': num_host_shards, 193 'num_host_shards': num_host_shards,
194 'target_bits': target_bits 194 'target_bits': target_bits
195 } 195 }
196 if swarming: 196 if swarming:
197 waterfall['testers'][name]['swarming_dimensions'] = [] 197 waterfall['testers'][name]['swarming_dimensions'] = []
198 for dimension in swarming: 198 for dimension in swarming:
199 waterfall['testers'][name]['swarming_dimensions'].append({ 199 waterfall['testers'][name]['swarming_dimensions'].append({
200 'gpu': dimension['gpu'], 200 'gpu': dimension['gpu'],
201 'os': dimension['os'] 201 'os': dimension['os'],
202 'pool': 'Chrome-perf',
202 }) 203 })
203 waterfall['testers'][name]['swarming'] = True 204 waterfall['testers'][name]['swarming'] = True
204 205
205 return waterfall 206 return waterfall
206 207
207 def get_fyi_waterfall_config(): 208 def get_fyi_waterfall_config():
208 waterfall = {'builders':[], 'testers': {}} 209 waterfall = {'builders':[], 'testers': {}}
209 waterfall = add_tester( 210 waterfall = add_tester(
210 waterfall, 'Win 10 Low-End Perf Tests', 211 waterfall, 'Win 10 Low-End Perf Tests',
211 'win-low-end-2-core', 'win', 212 'win-low-end-2-core', 'win',
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 405
405 def main(): 406 def main():
406 waterfall = get_waterfall_config() 407 waterfall = get_waterfall_config()
407 fyi_waterfall = get_fyi_waterfall_config() 408 fyi_waterfall = get_fyi_waterfall_config()
408 generate_all_tests(fyi_waterfall, True) 409 generate_all_tests(fyi_waterfall, True)
409 generate_all_tests(waterfall, False) 410 generate_all_tests(waterfall, False)
410 return 0 411 return 0
411 412
412 if __name__ == "__main__": 413 if __name__ == "__main__":
413 sys.exit(main()) 414 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