| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 | 6 |
| 7 from recipe_engine.types import freeze | 7 from recipe_engine.types import freeze |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'amp', | 10 'amp', |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 }, | 826 }, |
| 827 }) | 827 }) |
| 828 ) + | 828 ) + |
| 829 api.override_step_data( | 829 api.override_step_data( |
| 830 'analyze', | 830 'analyze', |
| 831 api.json.output({'invalid_targets': ['invalid target', 'another one']})) | 831 api.json.output({'invalid_targets': ['invalid target', 'another one']})) |
| 832 ) | 832 ) |
| 833 | 833 |
| 834 gpu_targets = ['angle_unittests_run', 'chrome', 'chromium_builder_tests', | 834 gpu_targets = ['angle_unittests_run', 'chrome', 'chromium_builder_tests', |
| 835 'content_gl_tests_run', 'gl_tests_run', | 835 'content_gl_tests_run', 'gl_tests_run', |
| 836 'tab_capture_end2end_tests_run', 'telemetry_gpu_test_run'] | 836 'tab_capture_end2end_tests_run', 'telemetry_gpu_new_test_run'] |
| 837 yield ( | 837 yield ( |
| 838 api.test('gpu_tests') + | 838 api.test('gpu_tests') + |
| 839 props( | 839 props( |
| 840 mastername='tryserver.chromium.mac', | 840 mastername='tryserver.chromium.mac', |
| 841 buildername='mac_chromium_rel_ng', | 841 buildername='mac_chromium_rel_ng', |
| 842 ) + | 842 ) + |
| 843 api.platform.name('mac') + | 843 api.platform.name('mac') + |
| 844 api.override_step_data( | 844 api.override_step_data( |
| 845 'pixel_test on Intel GPU on Mac (with patch)', | 845 'pixel_test on Intel GPU on Mac (with patch)', |
| 846 api.test_utils.canned_telemetry_gpu_output( | 846 api.test_utils.canned_isolated_script_output( |
| 847 passing=False, is_win=False, swarming=True)) + | 847 passing=False, is_win=False, swarming=True, |
| 848 isolated_script_passing=False)) + |
| 848 api.override_step_data( | 849 api.override_step_data( |
| 849 'pixel_test on Intel GPU on Mac (without patch)', | 850 'pixel_test on Intel GPU on Mac (without patch)', |
| 850 api.test_utils.canned_telemetry_gpu_output( | 851 api.test_utils.canned_isolated_script_output( |
| 851 passing=False, is_win=False, swarming=True)) + | 852 passing=False, is_win=False, swarming=True, |
| 853 isolated_script_passing=False)) + |
| 852 api.override_step_data('analyze', | 854 api.override_step_data('analyze', |
| 853 api.json.output({'status': 'Found dependency', | 855 api.json.output({'status': 'Found dependency', |
| 854 'compile_targets': gpu_targets, | 856 'compile_targets': gpu_targets, |
| 855 'test_targets': gpu_targets})) | 857 'test_targets': gpu_targets})) |
| 856 ) | 858 ) |
| 857 | 859 |
| 858 yield ( | 860 yield ( |
| 859 api.test('telemetry_gpu_no_summary') + | |
| 860 props( | |
| 861 mastername='tryserver.chromium.mac', | |
| 862 buildername='mac_chromium_rel_ng', | |
| 863 ) + | |
| 864 api.platform.name('mac') + | |
| 865 api.override_step_data('pixel_test on Intel GPU on Mac (with patch)', | |
| 866 api.raw_io.output_dir({'0/results.json': ''})) + | |
| 867 api.override_step_data('analyze', | |
| 868 api.json.output({'status': 'Found dependency', | |
| 869 'test_targets': gpu_targets, | |
| 870 'compile_targets': gpu_targets})) | |
| 871 ) | |
| 872 | |
| 873 yield ( | |
| 874 api.test('telemetry_gpu_harness_failure') + | 861 api.test('telemetry_gpu_harness_failure') + |
| 875 props( | 862 props( |
| 876 mastername='tryserver.chromium.linux', | 863 mastername='tryserver.chromium.linux', |
| 877 buildername='linux_chromium_rel_ng', | 864 buildername='linux_chromium_rel_ng', |
| 878 ) + | 865 ) + |
| 879 api.platform.name('linux') + | 866 api.platform.name('linux') + |
| 880 api.override_step_data( | 867 api.override_step_data( |
| 881 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', | 868 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', |
| 882 api.test_utils.canned_telemetry_gpu_output( | 869 api.test_utils.canned_isolated_script_output( |
| 883 passing=False, is_win=False, swarming=True, | 870 passing=False, is_win=False, swarming=True), |
| 884 empty_per_page_values=True), | |
| 885 retcode=255) + | 871 retcode=255) + |
| 886 api.override_step_data('analyze', | 872 api.override_step_data('analyze', |
| 887 api.json.output({'status': 'Found dependency', | 873 api.json.output({'status': 'Found dependency', |
| 888 'test_targets': gpu_targets, | 874 'test_targets': gpu_targets, |
| 889 'compile_targets': gpu_targets})) | 875 'compile_targets': gpu_targets})) |
| 890 ) | 876 ) |
| 891 | 877 |
| 892 yield ( | 878 yield ( |
| 893 api.test('telemetry_gpu_swarming_error') + | 879 api.test('telemetry_gpu_swarming_error') + |
| 894 props( | 880 props( |
| 895 mastername='tryserver.chromium.mac', | 881 mastername='tryserver.chromium.mac', |
| 896 buildername='mac_chromium_rel_ng', | 882 buildername='mac_chromium_rel_ng', |
| 897 ) + | 883 ) + |
| 898 api.platform.name('mac') + | 884 api.platform.name('mac') + |
| 899 api.override_step_data( | 885 api.override_step_data( |
| 900 'pixel_test on Intel GPU on Mac (with patch)', | 886 'pixel_test on Intel GPU on Mac (with patch)', |
| 901 api.raw_io.output_dir({ | 887 api.test_utils.canned_isolated_script_output( |
| 902 '0/results.json': '', | 888 passing=False, is_win=False, swarming=True, |
| 903 'summary.json': '{"shards": [{"internal_failure": true}]}' | 889 swarming_internal_failure=True)) + |
| 904 })) + | |
| 905 api.override_step_data('analyze', | 890 api.override_step_data('analyze', |
| 906 api.json.output({'status': 'Found dependency', | 891 api.json.output({'status': 'Found dependency', |
| 907 'test_targets': gpu_targets, | 892 'test_targets': gpu_targets, |
| 908 'compile_targets': gpu_targets})) | |
| 909 ) | |
| 910 | |
| 911 yield ( | |
| 912 api.test('telemetry_gpu_no_results') + | |
| 913 props( | |
| 914 mastername='tryserver.chromium.mac', | |
| 915 buildername='mac_chromium_rel_ng', | |
| 916 ) + | |
| 917 api.platform.name('mac') + | |
| 918 api.override_step_data( | |
| 919 'pixel_test on Intel GPU on Mac (with patch)', | |
| 920 api.raw_io.output_dir({ | |
| 921 '0/results.json': '', | |
| 922 'summary.json': '{"shards": [{"internal_failure": false}]}' | |
| 923 })) + | |
| 924 api.override_step_data('analyze', | |
| 925 api.json.output({'status': 'Found dependency', | |
| 926 'test_targets': gpu_targets, | |
| 927 'compile_targets': gpu_targets})) | 893 'compile_targets': gpu_targets})) |
| 928 ) | 894 ) |
| 929 | 895 |
| 930 yield ( | 896 yield ( |
| 931 api.test('telemetry_gpu_with_results_but_bad_exit_code') + | 897 api.test('telemetry_gpu_with_results_but_bad_exit_code') + |
| 932 props( | 898 props( |
| 933 mastername='tryserver.chromium.mac', | 899 mastername='tryserver.chromium.mac', |
| 934 buildername='mac_chromium_rel_ng', | 900 buildername='mac_chromium_rel_ng', |
| 935 ) + | 901 ) + |
| 936 api.platform.name('mac') + | 902 api.platform.name('mac') + |
| 937 # passing=True, but exit code != 0. | 903 # passing=True, but exit code != 0. |
| 938 api.override_step_data( | 904 api.override_step_data( |
| 939 'pixel_test on Intel GPU on Mac (with patch)', | 905 'pixel_test on Intel GPU on Mac (with patch)', |
| 940 api.test_utils.canned_telemetry_gpu_output( | 906 api.test_utils.canned_isolated_script_output( |
| 941 passing=True, is_win=False, swarming=True), | 907 passing=True, is_win=False, swarming=True), |
| 942 retcode=255 | 908 retcode=255 |
| 943 ) + | 909 ) + |
| 944 api.override_step_data('analyze', | 910 api.override_step_data('analyze', |
| 945 api.json.output({'status': 'Found dependency', | 911 api.json.output({'status': 'Found dependency', |
| 946 'test_targets': gpu_targets, | 912 'test_targets': gpu_targets, |
| 947 'compile_targets': gpu_targets})) | 913 'compile_targets': gpu_targets})) |
| 948 ) | 914 ) |
| 949 | 915 |
| 950 | 916 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 api.test_utils.canned_test_output(passing=True)) | 1087 api.test_utils.canned_test_output(passing=True)) |
| 1122 ) | 1088 ) |
| 1123 | 1089 |
| 1124 yield ( | 1090 yield ( |
| 1125 api.test('use_v8_patch_on_blink_trybot') + | 1091 api.test('use_v8_patch_on_blink_trybot') + |
| 1126 props(mastername='tryserver.blink', | 1092 props(mastername='tryserver.blink', |
| 1127 buildername='mac_blink_rel', | 1093 buildername='mac_blink_rel', |
| 1128 patch_project='v8') + | 1094 patch_project='v8') + |
| 1129 api.platform.name('mac') | 1095 api.platform.name('mac') |
| 1130 ) | 1096 ) |
| OLD | NEW |