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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 443 } |
444 if override_compile_targets: | 444 if override_compile_targets: |
445 result['override_compile_targets'] = override_compile_targets | 445 result['override_compile_targets'] = override_compile_targets |
446 if swarming_dimensions: | 446 if swarming_dimensions: |
447 result['swarming'] = { | 447 result['swarming'] = { |
448 # Always say this is true regardless of whether the tester | 448 # Always say this is true regardless of whether the tester |
449 # supports swarming. It doesn't hurt. | 449 # supports swarming. It doesn't hurt. |
450 'can_use_on_swarming_builders': True, | 450 'can_use_on_swarming_builders': True, |
451 'expiration': 21600, | 451 'expiration': 21600, |
452 'hard_timeout': 7200, | 452 'hard_timeout': 7200, |
| 453 'io_timeout': 3600, |
453 'dimension_sets': swarming_dimensions, | 454 'dimension_sets': swarming_dimensions, |
454 } | 455 } |
455 return result | 456 return result |
456 | 457 |
457 | 458 |
458 def generate_telemetry_test(swarming_dimensions, benchmark_name, browser): | 459 def generate_telemetry_test(swarming_dimensions, benchmark_name, browser): |
459 # The step name must end in 'test' or 'tests' in order for the | 460 # The step name must end in 'test' or 'tests' in order for the |
460 # results to automatically show up on the flakiness dashboard. | 461 # results to automatically show up on the flakiness dashboard. |
461 # (At least, this was true some time ago.) Continue to use this | 462 # (At least, this was true some time ago.) Continue to use this |
462 # naming convention for the time being to minimize changes. | 463 # naming convention for the time being to minimize changes. |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 waterfall['name'] = 'chromium.perf' | 747 waterfall['name'] = 'chromium.perf' |
747 fyi_waterfall = get_fyi_waterfall_config() | 748 fyi_waterfall = get_fyi_waterfall_config() |
748 fyi_waterfall['name'] = 'chromium.perf.fyi' | 749 fyi_waterfall['name'] = 'chromium.perf.fyi' |
749 | 750 |
750 generate_all_tests(fyi_waterfall) | 751 generate_all_tests(fyi_waterfall) |
751 generate_all_tests(waterfall) | 752 generate_all_tests(waterfall) |
752 return 0 | 753 return 0 |
753 | 754 |
754 if __name__ == '__main__': | 755 if __name__ == '__main__': |
755 sys.exit(main()) | 756 sys.exit(main()) |
OLD | NEW |