| 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_new_test_run'] | 836 'tab_capture_end2end_tests_run', 'telemetry_gpu_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_isolated_script_output( | 846 api.test_utils.canned_telemetry_gpu_output( |
| 847 passing=False, is_win=False, swarming=True, | 847 passing=False, is_win=False, swarming=True)) + |
| 848 isolated_script_passing=False)) + | |
| 849 api.override_step_data( | 848 api.override_step_data( |
| 850 'pixel_test on Intel GPU on Mac (without patch)', | 849 'pixel_test on Intel GPU on Mac (without patch)', |
| 851 api.test_utils.canned_isolated_script_output( | 850 api.test_utils.canned_telemetry_gpu_output( |
| 852 passing=False, is_win=False, swarming=True, | 851 passing=False, is_win=False, swarming=True)) + |
| 853 isolated_script_passing=False)) + | |
| 854 api.override_step_data('analyze', | 852 api.override_step_data('analyze', |
| 855 api.json.output({'status': 'Found dependency', | 853 api.json.output({'status': 'Found dependency', |
| 856 'compile_targets': gpu_targets, | 854 'compile_targets': gpu_targets, |
| 857 'test_targets': gpu_targets})) | 855 'test_targets': gpu_targets})) |
| 858 ) | 856 ) |
| 859 | 857 |
| 860 yield ( | 858 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 ( |
| 861 api.test('telemetry_gpu_harness_failure') + | 874 api.test('telemetry_gpu_harness_failure') + |
| 862 props( | 875 props( |
| 863 mastername='tryserver.chromium.linux', | 876 mastername='tryserver.chromium.linux', |
| 864 buildername='linux_chromium_rel_ng', | 877 buildername='linux_chromium_rel_ng', |
| 865 ) + | 878 ) + |
| 866 api.platform.name('linux') + | 879 api.platform.name('linux') + |
| 867 api.override_step_data( | 880 api.override_step_data( |
| 868 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', | 881 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', |
| 869 api.test_utils.canned_isolated_script_output( | 882 api.test_utils.canned_telemetry_gpu_output( |
| 870 passing=False, is_win=False, swarming=True), | 883 passing=False, is_win=False, swarming=True, |
| 884 empty_per_page_values=True), |
| 871 retcode=255) + | 885 retcode=255) + |
| 872 api.override_step_data('analyze', | 886 api.override_step_data('analyze', |
| 873 api.json.output({'status': 'Found dependency', | 887 api.json.output({'status': 'Found dependency', |
| 874 'test_targets': gpu_targets, | 888 'test_targets': gpu_targets, |
| 875 'compile_targets': gpu_targets})) | 889 'compile_targets': gpu_targets})) |
| 876 ) | 890 ) |
| 877 | 891 |
| 878 yield ( | 892 yield ( |
| 879 api.test('telemetry_gpu_swarming_error') + | 893 api.test('telemetry_gpu_swarming_error') + |
| 880 props( | 894 props( |
| 881 mastername='tryserver.chromium.mac', | 895 mastername='tryserver.chromium.mac', |
| 882 buildername='mac_chromium_rel_ng', | 896 buildername='mac_chromium_rel_ng', |
| 883 ) + | 897 ) + |
| 884 api.platform.name('mac') + | 898 api.platform.name('mac') + |
| 885 api.override_step_data( | 899 api.override_step_data( |
| 886 'pixel_test on Intel GPU on Mac (with patch)', | 900 'pixel_test on Intel GPU on Mac (with patch)', |
| 887 api.test_utils.canned_isolated_script_output( | 901 api.raw_io.output_dir({ |
| 888 passing=False, is_win=False, swarming=True, | 902 '0/results.json': '', |
| 889 swarming_internal_failure=True)) + | 903 'summary.json': '{"shards": [{"internal_failure": true}]}' |
| 904 })) + |
| 890 api.override_step_data('analyze', | 905 api.override_step_data('analyze', |
| 891 api.json.output({'status': 'Found dependency', | 906 api.json.output({'status': 'Found dependency', |
| 892 'test_targets': gpu_targets, | 907 '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, |
| 893 'compile_targets': gpu_targets})) | 927 'compile_targets': gpu_targets})) |
| 894 ) | 928 ) |
| 895 | 929 |
| 896 yield ( | 930 yield ( |
| 897 api.test('telemetry_gpu_with_results_but_bad_exit_code') + | 931 api.test('telemetry_gpu_with_results_but_bad_exit_code') + |
| 898 props( | 932 props( |
| 899 mastername='tryserver.chromium.mac', | 933 mastername='tryserver.chromium.mac', |
| 900 buildername='mac_chromium_rel_ng', | 934 buildername='mac_chromium_rel_ng', |
| 901 ) + | 935 ) + |
| 902 api.platform.name('mac') + | 936 api.platform.name('mac') + |
| 903 # passing=True, but exit code != 0. | 937 # passing=True, but exit code != 0. |
| 904 api.override_step_data( | 938 api.override_step_data( |
| 905 'pixel_test on Intel GPU on Mac (with patch)', | 939 'pixel_test on Intel GPU on Mac (with patch)', |
| 906 api.test_utils.canned_isolated_script_output( | 940 api.test_utils.canned_telemetry_gpu_output( |
| 907 passing=True, is_win=False, swarming=True), | 941 passing=True, is_win=False, swarming=True), |
| 908 retcode=255 | 942 retcode=255 |
| 909 ) + | 943 ) + |
| 910 api.override_step_data('analyze', | 944 api.override_step_data('analyze', |
| 911 api.json.output({'status': 'Found dependency', | 945 api.json.output({'status': 'Found dependency', |
| 912 'test_targets': gpu_targets, | 946 'test_targets': gpu_targets, |
| 913 'compile_targets': gpu_targets})) | 947 'compile_targets': gpu_targets})) |
| 914 ) | 948 ) |
| 915 | 949 |
| 916 | 950 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 api.test_utils.canned_test_output(passing=True)) | 1121 api.test_utils.canned_test_output(passing=True)) |
| 1088 ) | 1122 ) |
| 1089 | 1123 |
| 1090 yield ( | 1124 yield ( |
| 1091 api.test('use_v8_patch_on_blink_trybot') + | 1125 api.test('use_v8_patch_on_blink_trybot') + |
| 1092 props(mastername='tryserver.blink', | 1126 props(mastername='tryserver.blink', |
| 1093 buildername='mac_blink_rel', | 1127 buildername='mac_blink_rel', |
| 1094 patch_project='v8') + | 1128 patch_project='v8') + |
| 1095 api.platform.name('mac') | 1129 api.platform.name('mac') |
| 1096 ) | 1130 ) |
| OLD | NEW |