Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/perf_tests_failure.json

Issue 1465343002: [Android] Add context manager to record logcat during step(s). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Removed unused config. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n", 6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n",
7 "[SLAVE_BUILD]" 7 "[SLAVE_BUILD]"
8 ], 8 ],
9 "cwd": "[SLAVE_BUILD]", 9 "cwd": "[SLAVE_BUILD]",
10 "name": "cleanup index.lock", 10 "name": "cleanup index.lock",
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@", 271 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@",
272 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@", 272 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@",
273 "@@@STEP_LOG_END@python.inline@@@" 273 "@@@STEP_LOG_END@python.inline@@@"
274 ] 274 ]
275 }, 275 },
276 { 276 {
277 "cmd": [ 277 "cmd": [
278 "[BUILD]/scripts/slave/daemonizer.py", 278 "[BUILD]/scripts/slave/daemonizer.py",
279 "--", 279 "--",
280 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 280 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
281 "[SLAVE_BUILD]/src/out/logcat" 281 "[SLAVE_BUILD]/src/out/logcat_dir"
282 ], 282 ],
283 "cwd": "[SLAVE_BUILD]", 283 "cwd": "[SLAVE_BUILD]",
284 "env": { 284 "env": {
285 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 285 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
286 }, 286 },
287 "name": "spawn_logcat_monitor" 287 "name": "spawn_logcat_monitor"
288 }, 288 },
289 { 289 {
290 "cmd": [ 290 "cmd": [
291 "python", 291 "python",
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 "[TMP_BASE]/perf_archives_tmp_1/output_dir.zip", 718 "[TMP_BASE]/perf_archives_tmp_1/output_dir.zip",
719 "gs://archives-bucket/perf_runner/perf_test.foo/20150928T110712_build_571. zip" 719 "gs://archives-bucket/perf_runner/perf_test.foo/20150928T110712_build_571. zip"
720 ], 720 ],
721 "cwd": "[SLAVE_BUILD]", 721 "cwd": "[SLAVE_BUILD]",
722 "name": "gsutil upload perf_test.foo output dir archive", 722 "name": "gsutil upload perf_test.foo output dir archive",
723 "~followup_annotations": [ 723 "~followup_annotations": [
724 "@@@STEP_LINK@output_dir.zip@https://storage.cloud.google.com/archives-buc ket/perf_runner/perf_test.foo/20150928T110712_build_571.zip@@@" 724 "@@@STEP_LINK@output_dir.zip@https://storage.cloud.google.com/archives-buc ket/perf_runner/perf_test.foo/20150928T110712_build_571.zip@@@"
725 ] 725 ]
726 }, 726 },
727 { 727 {
728 "cmd": [],
729 "cwd": "[SLAVE_BUILD]",
730 "name": "AndroidWebViewTest"
731 },
732 {
733 "cmd": [
734 "[BUILD]/scripts/slave/daemonizer.py",
735 "--",
736 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
737 "[TMP_BASE]/logcat_tmp_2"
738 ],
739 "cwd": "[SLAVE_BUILD]",
740 "env": {
741 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
742 },
743 "name": "AndroidWebViewTest.spawn_logcat_monitor",
744 "~followup_annotations": [
745 "@@@STEP_NEST_LEVEL@1@@@"
746 ]
747 },
748 {
728 "cmd": [ 749 "cmd": [
729 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 750 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
730 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 751 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
731 "-v", 752 "-v",
732 "--blacklist-file", 753 "--blacklist-file",
733 "[SLAVE_BUILD]/src/out/bad_devices.json", 754 "[SLAVE_BUILD]/src/out/bad_devices.json",
734 "--release" 755 "--release"
735 ], 756 ],
736 "cwd": "[SLAVE_BUILD]", 757 "cwd": "[SLAVE_BUILD]",
737 "env": { 758 "env": {
738 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 759 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
739 }, 760 },
740 "name": "install AndroidWebView.apk" 761 "name": "AndroidWebViewTest.install AndroidWebView.apk",
762 "~followup_annotations": [
763 "@@@STEP_NEST_LEVEL@1@@@"
764 ]
741 }, 765 },
742 { 766 {
743 "cmd": [ 767 "cmd": [
744 "python", 768 "python",
745 "-u", 769 "-u",
746 "[SLAVE_BUILD]/src/build/android/test_runner.py", 770 "[SLAVE_BUILD]/src/build/android/test_runner.py",
747 "instrumentation", 771 "instrumentation",
748 "--test-apk", 772 "--test-apk",
749 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 773 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
750 "--blacklist-file", 774 "--blacklist-file",
751 "[SLAVE_BUILD]/src/out/bad_devices.json", 775 "[SLAVE_BUILD]/src/out/bad_devices.json",
752 "--apk-under-test", 776 "--apk-under-test",
753 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 777 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
754 "--isolate-file-path", 778 "--isolate-file-path",
755 "android_webview/android_webview_test_apk.isolate", 779 "android_webview/android_webview_test_apk.isolate",
756 "--flakiness-dashboard-server", 780 "--flakiness-dashboard-server",
757 "test-results.appspot.com", 781 "test-results.appspot.com",
758 "-A", 782 "-A",
759 "SmallTest", 783 "SmallTest",
760 "-E", 784 "-E",
761 "FlakyTest", 785 "FlakyTest",
762 "--screenshot", 786 "--screenshot",
763 "--release", 787 "--release",
764 "--host-driven-root", 788 "--host-driven-root",
765 "[SLAVE_BUILD]/src/chrome/test", 789 "[SLAVE_BUILD]/src/chrome/test",
766 "--official-build" 790 "--official-build"
767 ], 791 ],
768 "cwd": "[SLAVE_BUILD]", 792 "cwd": "[SLAVE_BUILD]",
769 "name": "Instrumentation test SmallTest" 793 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
794 "~followup_annotations": [
795 "@@@STEP_NEST_LEVEL@1@@@"
796 ]
770 }, 797 },
771 { 798 {
772 "cmd": [ 799 "cmd": [
800 "python",
801 "-u",
802 "[BUILD]/scripts/slave/tee.py",
803 "/path/to/tmp/logcat",
804 "--",
805 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
806 "[TMP_BASE]/logcat_tmp_2"
807 ],
808 "cwd": "[SLAVE_BUILD]",
809 "name": "AndroidWebViewTest.logcat_dump",
810 "~followup_annotations": [
811 "@@@STEP_NEST_LEVEL@1@@@"
812 ]
813 },
814 {
815 "cmd": [],
816 "cwd": "[SLAVE_BUILD]",
817 "name": "unittests"
818 },
819 {
820 "cmd": [
821 "[BUILD]/scripts/slave/daemonizer.py",
822 "--",
823 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
824 "[TMP_BASE]/logcat_tmp_3"
825 ],
826 "cwd": "[SLAVE_BUILD]",
827 "env": {
828 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
829 },
830 "name": "unittests.spawn_logcat_monitor",
831 "~followup_annotations": [
832 "@@@STEP_NEST_LEVEL@1@@@"
833 ]
834 },
835 {
836 "cmd": [
773 "python", 837 "python",
774 "-u", 838 "-u",
775 "[SLAVE_BUILD]/src/build/android/test_runner.py", 839 "[SLAVE_BUILD]/src/build/android/test_runner.py",
776 "gtest", 840 "gtest",
777 "-s", 841 "-s",
778 "unittests", 842 "unittests",
779 "--blacklist-file", 843 "--blacklist-file",
780 "[SLAVE_BUILD]/src/out/bad_devices.json", 844 "[SLAVE_BUILD]/src/out/bad_devices.json",
781 "--verbose", 845 "--verbose",
782 "--release", 846 "--release",
783 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 847 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
784 "--gtest_filter=WebRtc*", 848 "--gtest_filter=WebRtc*",
785 "--tool=asan" 849 "--tool=asan"
786 ], 850 ],
787 "cwd": "[SLAVE_BUILD]", 851 "cwd": "[SLAVE_BUILD]",
788 "env": { 852 "env": {
789 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 853 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
790 }, 854 },
791 "name": "unittests" 855 "name": "unittests.unittests",
856 "~followup_annotations": [
857 "@@@STEP_NEST_LEVEL@1@@@"
858 ]
792 }, 859 },
793 { 860 {
794 "cmd": [ 861 "cmd": [
795 "python", 862 "python",
796 "-u", 863 "-u",
797 "[BUILD]/scripts/slave/tee.py", 864 "[BUILD]/scripts/slave/tee.py",
798 "[SLAVE_BUILD]/src/out/Release/full_log", 865 "/path/to/tmp/logcat",
799 "--", 866 "--",
800 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 867 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
801 "[SLAVE_BUILD]/src/out/logcat" 868 "[TMP_BASE]/logcat_tmp_3"
869 ],
870 "cwd": "[SLAVE_BUILD]",
871 "name": "unittests.logcat_dump",
872 "~followup_annotations": [
873 "@@@STEP_NEST_LEVEL@1@@@"
874 ]
875 },
876 {
877 "cmd": [
878 "python",
879 "-u",
880 "[BUILD]/scripts/slave/tee.py",
881 "[SLAVE_BUILD]/src/out/Release/full_logcat",
882 "--",
883 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
884 "[SLAVE_BUILD]/src/out/logcat_dir"
802 ], 885 ],
803 "cwd": "[SLAVE_BUILD]", 886 "cwd": "[SLAVE_BUILD]",
804 "name": "logcat_dump" 887 "name": "logcat_dump"
805 }, 888 },
806 { 889 {
807 "cmd": [ 890 "cmd": [
808 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 891 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
809 "--arch", 892 "--arch",
810 "arm", 893 "arm",
811 "--more-info", 894 "--more-info",
812 "[SLAVE_BUILD]/src/out/Release/full_log" 895 "[SLAVE_BUILD]/src/out/Release/full_logcat"
813 ], 896 ],
814 "cwd": "[SLAVE_BUILD]", 897 "cwd": "[SLAVE_BUILD]",
815 "env": { 898 "env": {
816 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 899 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
817 }, 900 },
818 "name": "stack_tool_with_logcat_dump" 901 "name": "stack_tool_with_logcat_dump"
819 }, 902 },
820 { 903 {
821 "cmd": [ 904 "cmd": [
822 "[SLAVE_BUILD]/src/build/android/tombstones.py", 905 "[SLAVE_BUILD]/src/build/android/tombstones.py",
823 "-a", 906 "-a",
824 "-s", 907 "-s",
825 "-w" 908 "-w"
826 ], 909 ],
827 "cwd": "[SLAVE_BUILD]", 910 "cwd": "[SLAVE_BUILD]",
828 "env": { 911 "env": {
829 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 912 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
830 }, 913 },
831 "name": "stack_tool_for_tombstones" 914 "name": "stack_tool_for_tombstones"
832 }, 915 },
833 { 916 {
834 "cmd": [ 917 "cmd": [
835 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 918 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
836 "-l", 919 "-l",
837 "[SLAVE_BUILD]/src/out/Release/full_log" 920 "[SLAVE_BUILD]/src/out/Release/full_logcat"
838 ], 921 ],
839 "cwd": "[SLAVE_BUILD]", 922 "cwd": "[SLAVE_BUILD]",
840 "env": { 923 "env": {
841 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 924 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
842 }, 925 },
843 "name": "stack_tool_for_asan" 926 "name": "stack_tool_for_asan"
844 }, 927 },
845 { 928 {
846 "name": "$result", 929 "name": "$result",
847 "reason": "sharded perf tests failed [StepFailure(\"Step('perf_test.foo') fa iled with return_code 1\",)]", 930 "reason": "sharded perf tests failed [StepFailure(\"Step('perf_test.foo') fa iled with return_code 1\",)]",
848 "status_code": 1 931 "status_code": 1
849 } 932 }
850 ] 933 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698