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.gpu.json and chromium.gpu.fyi.json in | 6 """Script to generate chromium.gpu.json and chromium.gpu.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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 'os': 'Windows-2008ServerR2-SP1' | 702 'os': 'Windows-2008ServerR2-SP1' |
703 } | 703 } |
704 ], | 704 ], |
705 }, | 705 }, |
706 ], | 706 ], |
707 }, | 707 }, |
708 | 708 |
709 'angle_deqp_gles2_tests': { | 709 'angle_deqp_gles2_tests': { |
710 'tester_configs': [ | 710 'tester_configs': [ |
711 { | 711 { |
| 712 'allow_on_android': True, |
712 'fyi_only': True, | 713 'fyi_only': True, |
713 # Run this on the optional tryservers. | 714 # Run this on the optional tryservers. |
714 'run_on_optional': True, | 715 'run_on_optional': True, |
715 # Run only on the Win7 and Linux Release NVIDIA 32- and 64-bit bots | 716 # Run only on the Win7 and Linux Release NVIDIA 32- and 64-bit bots |
716 # (and trybots) for the time being, at least until more capacity is | 717 # (and trybots) for the time being, at least until more capacity is |
717 # added. Also run on the AMD R7 240 bots. | 718 # added. Also run on the AMD R7 240 bots. |
718 'build_configs': ['Release', 'Release_x64'], | 719 # Also run on Nexus 5X swarmed bots. |
| 720 'build_configs': ['Release', 'Release_x64', 'android-chromium'], |
719 'swarming_dimension_sets': [ | 721 'swarming_dimension_sets': [ |
720 { | 722 { |
721 'gpu': '10de:104a', | 723 'gpu': '10de:104a', |
722 'os': 'Windows-2008ServerR2-SP1' | 724 'os': 'Windows-2008ServerR2-SP1' |
723 }, | 725 }, |
724 { | 726 { |
725 'gpu': '1002:6613', | 727 'gpu': '1002:6613', |
726 'os': 'Windows-2008ServerR2-SP1' | 728 'os': 'Windows-2008ServerR2-SP1' |
727 }, | 729 }, |
728 { | 730 { |
729 'gpu': '10de:104a', | 731 'gpu': '10de:104a', |
730 'os': 'Linux' | 732 'os': 'Linux' |
731 } | 733 }, |
| 734 { |
| 735 'device_type': 'bullhead', |
| 736 'device_os': 'M', |
| 737 'os': 'Android' |
| 738 }, |
732 ], | 739 ], |
733 }, | 740 }, |
734 ], | 741 ], |
735 'swarming': { | 742 'desktop_swarming': { |
736 'shards': 4, | 743 'shards': 4, |
737 } | 744 } |
738 }, | 745 }, |
739 | 746 |
740 'angle_deqp_gles3_tests': { | 747 'angle_deqp_gles3_tests': { |
741 'tester_configs': [ | 748 'tester_configs': [ |
742 { | 749 { |
743 'fyi_only': True, | 750 'fyi_only': True, |
744 # TODO(jmadill): Run this on the optional tryservers. | 751 # TODO(jmadill): Run this on the optional tryservers. |
745 'run_on_optional': False, | 752 'run_on_optional': False, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 }, | 904 }, |
898 } | 905 } |
899 | 906 |
900 # This requires a hack because the isolate's name is different than | 907 # This requires a hack because the isolate's name is different than |
901 # the executable's name. On the few non-swarmed testers, this causes | 908 # the executable's name. On the few non-swarmed testers, this causes |
902 # the executable to not be found. It would be better if the Chromium | 909 # the executable to not be found. It would be better if the Chromium |
903 # recipe supported running isolates locally. crbug.com/581953 | 910 # recipe supported running isolates locally. crbug.com/581953 |
904 | 911 |
905 NON_SWARMED_GTESTS = { | 912 NON_SWARMED_GTESTS = { |
906 'tab_capture_end2end_tests': { | 913 'tab_capture_end2end_tests': { |
| 914 'swarming': { |
| 915 'can_use_on_swarming_builders': False |
| 916 }, |
907 'test': 'browser_tests', | 917 'test': 'browser_tests', |
908 'args': [ | 918 'args': [ |
909 '--enable-gpu', | 919 '--enable-gpu', |
910 '--test-launcher-jobs=1', | 920 '--test-launcher-jobs=1', |
911 '--gtest_filter=CastStreamingApiTestWithPixelOutput.EndToEnd*:' + \ | 921 '--gtest_filter=CastStreamingApiTestWithPixelOutput.EndToEnd*:' + \ |
912 'TabCaptureApiPixelTest.EndToEnd*' | 922 'TabCaptureApiPixelTest.EndToEnd*' |
913 ], | 923 ], |
914 'swarming': { | 924 'swarming': { |
915 'can_use_on_swarming_builders': False, | 925 'can_use_on_swarming_builders': False, |
916 }, | 926 }, |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 } | 1281 } |
1272 ] | 1282 ] |
1273 }) | 1283 }) |
1274 if 'desktop_args' in result: | 1284 if 'desktop_args' in result: |
1275 if not is_android(tester_config): | 1285 if not is_android(tester_config): |
1276 if not 'args' in result: | 1286 if not 'args' in result: |
1277 result['args'] = [] | 1287 result['args'] = [] |
1278 result['args'] += result['desktop_args'] | 1288 result['args'] += result['desktop_args'] |
1279 # Don't put the desktop args in the JSON. | 1289 # Don't put the desktop args in the JSON. |
1280 result.pop('desktop_args') | 1290 result.pop('desktop_args') |
| 1291 if 'desktop_swarming' in result: |
| 1292 if not is_android(tester_config): |
| 1293 result['swarming'].update(result['desktop_swarming']) |
| 1294 # Don't put the desktop_swarming in the JSON. |
| 1295 result.pop('desktop_swarming') |
1281 | 1296 |
1282 # This flag only has an effect on the Linux bots that run tests | 1297 # This flag only has an effect on the Linux bots that run tests |
1283 # locally (as opposed to via Swarming), which are only those couple | 1298 # locally (as opposed to via Swarming), which are only those couple |
1284 # on the chromium.gpu.fyi waterfall. Still, there is no harm in | 1299 # on the chromium.gpu.fyi waterfall. Still, there is no harm in |
1285 # specifying it everywhere. | 1300 # specifying it everywhere. |
1286 result['use_xvfb'] = False | 1301 result['use_xvfb'] = False |
1287 return result | 1302 return result |
1288 | 1303 |
1289 def generate_telemetry_test(tester_name, tester_config, | 1304 def generate_telemetry_test(tester_name, tester_config, |
1290 test, test_config, is_fyi, | 1305 test, test_config, is_fyi, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) | 1408 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) |
1394 fp.write('\n') | 1409 fp.write('\n') |
1395 | 1410 |
1396 def main(): | 1411 def main(): |
1397 generate_all_tests(FYI_WATERFALL, True) | 1412 generate_all_tests(FYI_WATERFALL, True) |
1398 generate_all_tests(WATERFALL, False) | 1413 generate_all_tests(WATERFALL, False) |
1399 return 0 | 1414 return 0 |
1400 | 1415 |
1401 if __name__ == "__main__": | 1416 if __name__ == "__main__": |
1402 sys.exit(main()) | 1417 sys.exit(main()) |
OLD | NEW |