Chromium Code Reviews| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 824 }, | 824 }, |
| 825 }) | 825 }) |
| 826 ) + | 826 ) + |
| 827 api.override_step_data( | 827 api.override_step_data( |
| 828 'analyze', | 828 'analyze', |
| 829 api.json.output({'invalid_targets': ['invalid target', 'another one']})) | 829 api.json.output({'invalid_targets': ['invalid target', 'another one']})) |
| 830 ) | 830 ) |
| 831 | 831 |
| 832 gpu_targets = ['angle_unittests_run', 'chrome', 'chromium_builder_tests', | 832 gpu_targets = ['angle_unittests_run', 'chrome', 'chromium_builder_tests', |
| 833 'content_gl_tests_run', 'gl_tests_run', | 833 'content_gl_tests_run', 'gl_tests_run', |
| 834 'tab_capture_end2end_tests_run', 'telemetry_gpu_test_run'] | 834 'tab_capture_end2end_tests_run', 'telemetry_gpu_new_test_run'] |
| 835 yield ( | 835 yield ( |
| 836 api.test('gpu_tests') + | 836 api.test('gpu_tests') + |
| 837 props( | 837 props( |
| 838 mastername='tryserver.chromium.mac', | 838 mastername='tryserver.chromium.mac', |
| 839 buildername='mac_chromium_rel_ng', | 839 buildername='mac_chromium_rel_ng', |
| 840 ) + | 840 ) + |
| 841 api.platform.name('mac') + | 841 api.platform.name('mac') + |
| 842 api.override_step_data( | 842 api.override_step_data( |
| 843 'pixel_test on Intel GPU on Mac (with patch)', | 843 'pixel_test on Intel GPU on Mac (with patch)', |
| 844 api.test_utils.canned_telemetry_gpu_output( | 844 api.test_utils.canned_isolated_script_output( |
| 845 passing=False, is_win=False, swarming=True)) + | 845 passing=False, is_win=False, swarming=True, |
| 846 isolated_script_passing=False)) + | |
|
Ken Russell (switch to Gerrit)
2015/12/08 06:41:50
The "isolated_script_passing=False" change was sig
Sergiy Byelozyorov
2015/12/08 10:09:42
Acknowledged.
| |
| 846 api.override_step_data( | 847 api.override_step_data( |
| 847 'pixel_test on Intel GPU on Mac (without patch)', | 848 'pixel_test on Intel GPU on Mac (without patch)', |
| 848 api.test_utils.canned_telemetry_gpu_output( | 849 api.test_utils.canned_isolated_script_output( |
| 849 passing=False, is_win=False, swarming=True)) + | 850 passing=False, is_win=False, swarming=True, |
| 851 isolated_script_passing=False)) + | |
| 850 api.override_step_data('analyze', | 852 api.override_step_data('analyze', |
| 851 api.json.output({'status': 'Found dependency', | 853 api.json.output({'status': 'Found dependency', |
| 852 'compile_targets': gpu_targets, | 854 'compile_targets': gpu_targets, |
| 853 'test_targets': gpu_targets})) | 855 'test_targets': gpu_targets})) |
| 854 ) | 856 ) |
| 855 | 857 |
| 856 yield ( | 858 yield ( |
| 857 api.test('telemetry_gpu_no_summary') + | |
|
Ken Russell (switch to Gerrit)
2015/12/08 06:41:50
This test isn't needed any more since it tests del
| |
| 858 props( | |
| 859 mastername='tryserver.chromium.mac', | |
| 860 buildername='mac_chromium_rel_ng', | |
| 861 ) + | |
| 862 api.platform.name('mac') + | |
| 863 api.override_step_data('pixel_test on Intel GPU on Mac (with patch)', | |
| 864 api.raw_io.output_dir({'0/results.json': ''})) + | |
| 865 api.override_step_data('analyze', | |
| 866 api.json.output({'status': 'Found dependency', | |
| 867 'test_targets': gpu_targets, | |
| 868 'compile_targets': gpu_targets})) | |
| 869 ) | |
| 870 | |
| 871 yield ( | |
| 872 api.test('telemetry_gpu_harness_failure') + | 859 api.test('telemetry_gpu_harness_failure') + |
| 873 props( | 860 props( |
| 874 mastername='tryserver.chromium.linux', | 861 mastername='tryserver.chromium.linux', |
| 875 buildername='linux_chromium_rel_ng', | 862 buildername='linux_chromium_rel_ng', |
| 876 ) + | 863 ) + |
| 877 api.platform.name('linux') + | 864 api.platform.name('linux') + |
| 878 api.override_step_data( | 865 api.override_step_data( |
| 879 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', | 866 'maps_pixel_test on NVIDIA GPU on Linux (with patch) on Linux', |
| 880 api.test_utils.canned_telemetry_gpu_output( | 867 api.test_utils.canned_isolated_script_output( |
| 881 passing=False, is_win=False, swarming=True, | 868 passing=False, is_win=False, swarming=True), |
| 882 empty_per_page_values=True), | |
| 883 retcode=255) + | 869 retcode=255) + |
| 884 api.override_step_data('analyze', | 870 api.override_step_data('analyze', |
| 885 api.json.output({'status': 'Found dependency', | 871 api.json.output({'status': 'Found dependency', |
| 886 'test_targets': gpu_targets, | 872 'test_targets': gpu_targets, |
| 887 'compile_targets': gpu_targets})) | 873 'compile_targets': gpu_targets})) |
| 888 ) | 874 ) |
| 889 | 875 |
| 890 yield ( | 876 yield ( |
| 891 api.test('telemetry_gpu_swarming_error') + | 877 api.test('telemetry_gpu_swarming_error') + |
| 892 props( | 878 props( |
| 893 mastername='tryserver.chromium.mac', | 879 mastername='tryserver.chromium.mac', |
| 894 buildername='mac_chromium_rel_ng', | 880 buildername='mac_chromium_rel_ng', |
| 895 ) + | 881 ) + |
| 896 api.platform.name('mac') + | 882 api.platform.name('mac') + |
| 897 api.override_step_data( | 883 api.override_step_data( |
| 898 'pixel_test on Intel GPU on Mac (with patch)', | 884 'pixel_test on Intel GPU on Mac (with patch)', |
| 899 api.raw_io.output_dir({ | 885 api.test_utils.canned_isolated_script_output( |
| 900 '0/results.json': '', | 886 passing=False, is_win=False, swarming=True, |
| 901 'summary.json': '{"shards": [{"internal_failure": true}]}' | 887 swarming_internal_failure=True),) + |
|
Sergiy Byelozyorov
2015/12/08 10:09:42
nit: remove , before )
Ken Russell (switch to Gerrit)
2015/12/08 19:35:51
Done.
| |
| 902 })) + | |
| 903 api.override_step_data('analyze', | 888 api.override_step_data('analyze', |
| 904 api.json.output({'status': 'Found dependency', | 889 api.json.output({'status': 'Found dependency', |
| 905 'test_targets': gpu_targets, | 890 'test_targets': gpu_targets, |
| 906 'compile_targets': gpu_targets})) | |
| 907 ) | |
| 908 | |
| 909 yield ( | |
| 910 api.test('telemetry_gpu_no_results') + | |
|
Ken Russell (switch to Gerrit)
2015/12/08 06:41:50
Same here.
| |
| 911 props( | |
| 912 mastername='tryserver.chromium.mac', | |
| 913 buildername='mac_chromium_rel_ng', | |
| 914 ) + | |
| 915 api.platform.name('mac') + | |
| 916 api.override_step_data( | |
| 917 'pixel_test on Intel GPU on Mac (with patch)', | |
| 918 api.raw_io.output_dir({ | |
| 919 '0/results.json': '', | |
| 920 'summary.json': '{"shards": [{"internal_failure": false}]}' | |
| 921 })) + | |
| 922 api.override_step_data('analyze', | |
| 923 api.json.output({'status': 'Found dependency', | |
| 924 'test_targets': gpu_targets, | |
| 925 'compile_targets': gpu_targets})) | 891 'compile_targets': gpu_targets})) |
| 926 ) | 892 ) |
| 927 | 893 |
| 928 yield ( | 894 yield ( |
| 929 api.test('telemetry_gpu_with_results_but_bad_exit_code') + | 895 api.test('telemetry_gpu_with_results_but_bad_exit_code') + |
| 930 props( | 896 props( |
| 931 mastername='tryserver.chromium.mac', | 897 mastername='tryserver.chromium.mac', |
| 932 buildername='mac_chromium_rel_ng', | 898 buildername='mac_chromium_rel_ng', |
| 933 ) + | 899 ) + |
| 934 api.platform.name('mac') + | 900 api.platform.name('mac') + |
| 935 # passing=True, but exit code != 0. | 901 # passing=True, but exit code != 0. |
| 936 api.override_step_data( | 902 api.override_step_data( |
| 937 'pixel_test on Intel GPU on Mac (with patch)', | 903 'pixel_test on Intel GPU on Mac (with patch)', |
| 938 api.test_utils.canned_telemetry_gpu_output( | 904 api.test_utils.canned_isolated_script_output( |
| 939 passing=True, is_win=False, swarming=True), | 905 passing=True, is_win=False, swarming=True), |
| 940 retcode=255 | 906 retcode=255 |
| 941 ) + | 907 ) + |
| 942 api.override_step_data('analyze', | 908 api.override_step_data('analyze', |
| 943 api.json.output({'status': 'Found dependency', | 909 api.json.output({'status': 'Found dependency', |
| 944 'test_targets': gpu_targets, | 910 'test_targets': gpu_targets, |
| 945 'compile_targets': gpu_targets})) | 911 'compile_targets': gpu_targets})) |
| 946 ) | 912 ) |
| 947 | 913 |
| 948 | 914 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1119 api.test_utils.canned_test_output(passing=True)) | 1085 api.test_utils.canned_test_output(passing=True)) |
| 1120 ) | 1086 ) |
| 1121 | 1087 |
| 1122 yield ( | 1088 yield ( |
| 1123 api.test('use_v8_patch_on_blink_trybot') + | 1089 api.test('use_v8_patch_on_blink_trybot') + |
| 1124 props(mastername='tryserver.blink', | 1090 props(mastername='tryserver.blink', |
| 1125 buildername='mac_blink_rel', | 1091 buildername='mac_blink_rel', |
| 1126 patch_project='v8') + | 1092 patch_project='v8') + |
| 1127 api.platform.name('mac') | 1093 api.platform.name('mac') |
| 1128 ) | 1094 ) |
| OLD | NEW |