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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 # --device=android | 298 # --device=android |
299 | 299 |
300 step_name = benchmark_name | 300 step_name = benchmark_name |
301 if browser == 'reference': | 301 if browser == 'reference': |
302 test_args.append('--output-trace-tag=_ref') | 302 test_args.append('--output-trace-tag=_ref') |
303 step_name += '.reference' | 303 step_name += '.reference' |
304 swarming = { | 304 swarming = { |
305 # Always say this is true regardless of whether the tester | 305 # Always say this is true regardless of whether the tester |
306 # supports swarming. It doesn't hurt. | 306 # supports swarming. It doesn't hurt. |
307 'can_use_on_swarming_builders': True, | 307 'can_use_on_swarming_builders': True, |
| 308 'expiration': 14400, |
308 'dimension_sets': swarming_dimensions | 309 'dimension_sets': swarming_dimensions |
309 } | 310 } |
310 | 311 |
311 result = { | 312 result = { |
312 'args': test_args, | 313 'args': test_args, |
313 'isolate_name': 'telemetry_perf_tests', | 314 'isolate_name': 'telemetry_perf_tests', |
314 'name': step_name, | 315 'name': step_name, |
315 'override_compile_targets': ['telemetry_perf_tests'], | 316 'override_compile_targets': ['telemetry_perf_tests'], |
316 'swarming': swarming, | 317 'swarming': swarming, |
317 } | 318 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 | 406 |
406 def main(): | 407 def main(): |
407 waterfall = get_waterfall_config() | 408 waterfall = get_waterfall_config() |
408 fyi_waterfall = get_fyi_waterfall_config() | 409 fyi_waterfall = get_fyi_waterfall_config() |
409 generate_all_tests(fyi_waterfall, True) | 410 generate_all_tests(fyi_waterfall, True) |
410 generate_all_tests(waterfall, False) | 411 generate_all_tests(waterfall, False) |
411 return 0 | 412 return 0 |
412 | 413 |
413 if __name__ == "__main__": | 414 if __name__ == "__main__": |
414 sys.exit(main()) | 415 sys.exit(main()) |
OLD | NEW |