OLD | NEW |
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 Loading... |
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 Loading... |
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()) |
OLD | NEW |