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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/perf_runner_basic.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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 "[TMP_BASE]/perf_archives_tmp_1/output_dir.zip", 716 "[TMP_BASE]/perf_archives_tmp_1/output_dir.zip",
717 "gs://archives-bucket/perf_runner/perf_test.foo/20150928T110712_build_571. zip" 717 "gs://archives-bucket/perf_runner/perf_test.foo/20150928T110712_build_571. zip"
718 ], 718 ],
719 "cwd": "[SLAVE_BUILD]", 719 "cwd": "[SLAVE_BUILD]",
720 "name": "gsutil upload perf_test.foo output dir archive", 720 "name": "gsutil upload perf_test.foo output dir archive",
721 "~followup_annotations": [ 721 "~followup_annotations": [
722 "@@@STEP_LINK@output_dir.zip@https://storage.cloud.google.com/archives-buc ket/perf_runner/perf_test.foo/20150928T110712_build_571.zip@@@" 722 "@@@STEP_LINK@output_dir.zip@https://storage.cloud.google.com/archives-buc ket/perf_runner/perf_test.foo/20150928T110712_build_571.zip@@@"
723 ] 723 ]
724 }, 724 },
725 { 725 {
726 "cmd": [],
727 "cwd": "[SLAVE_BUILD]",
728 "name": "AndroidWebViewTest"
729 },
730 {
731 "cmd": [
732 "[BUILD]/scripts/slave/daemonizer.py",
733 "--",
734 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
735 "[TMP_BASE]/logcat_tmp_2"
736 ],
737 "cwd": "[SLAVE_BUILD]",
738 "env": {
739 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
740 },
741 "name": "AndroidWebViewTest.spawn_logcat_monitor",
742 "~followup_annotations": [
743 "@@@STEP_NEST_LEVEL@1@@@"
744 ]
745 },
746 {
726 "cmd": [ 747 "cmd": [
727 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 748 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
728 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 749 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
729 "-v", 750 "-v",
730 "--blacklist-file", 751 "--blacklist-file",
731 "[SLAVE_BUILD]/src/out/bad_devices.json", 752 "[SLAVE_BUILD]/src/out/bad_devices.json",
732 "--release" 753 "--release"
733 ], 754 ],
734 "cwd": "[SLAVE_BUILD]", 755 "cwd": "[SLAVE_BUILD]",
735 "env": { 756 "env": {
736 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 757 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
737 }, 758 },
738 "name": "install AndroidWebView.apk" 759 "name": "AndroidWebViewTest.install AndroidWebView.apk",
760 "~followup_annotations": [
761 "@@@STEP_NEST_LEVEL@1@@@"
762 ]
739 }, 763 },
740 { 764 {
741 "cmd": [ 765 "cmd": [
742 "python", 766 "python",
743 "-u", 767 "-u",
744 "[SLAVE_BUILD]/src/build/android/test_runner.py", 768 "[SLAVE_BUILD]/src/build/android/test_runner.py",
745 "instrumentation", 769 "instrumentation",
746 "--test-apk", 770 "--test-apk",
747 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 771 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
748 "--blacklist-file", 772 "--blacklist-file",
749 "[SLAVE_BUILD]/src/out/bad_devices.json", 773 "[SLAVE_BUILD]/src/out/bad_devices.json",
750 "--apk-under-test", 774 "--apk-under-test",
751 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 775 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
752 "--isolate-file-path", 776 "--isolate-file-path",
753 "android_webview/android_webview_test_apk.isolate", 777 "android_webview/android_webview_test_apk.isolate",
754 "--flakiness-dashboard-server", 778 "--flakiness-dashboard-server",
755 "test-results.appspot.com", 779 "test-results.appspot.com",
756 "-A", 780 "-A",
757 "SmallTest", 781 "SmallTest",
758 "-E", 782 "-E",
759 "FlakyTest", 783 "FlakyTest",
760 "--screenshot", 784 "--screenshot",
761 "--release", 785 "--release",
762 "--host-driven-root", 786 "--host-driven-root",
763 "[SLAVE_BUILD]/src/chrome/test", 787 "[SLAVE_BUILD]/src/chrome/test",
764 "--official-build" 788 "--official-build"
765 ], 789 ],
766 "cwd": "[SLAVE_BUILD]", 790 "cwd": "[SLAVE_BUILD]",
767 "name": "Instrumentation test SmallTest" 791 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
792 "~followup_annotations": [
793 "@@@STEP_NEST_LEVEL@1@@@"
794 ]
768 }, 795 },
769 { 796 {
770 "cmd": [ 797 "cmd": [
798 "python",
799 "-u",
800 "[BUILD]/scripts/slave/tee.py",
801 "/path/to/tmp/logcat",
802 "--",
803 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
804 "[TMP_BASE]/logcat_tmp_2"
805 ],
806 "cwd": "[SLAVE_BUILD]",
807 "name": "AndroidWebViewTest.logcat_dump",
808 "~followup_annotations": [
809 "@@@STEP_NEST_LEVEL@1@@@"
810 ]
811 },
812 {
813 "cmd": [],
814 "cwd": "[SLAVE_BUILD]",
815 "name": "unittests"
816 },
817 {
818 "cmd": [
819 "[BUILD]/scripts/slave/daemonizer.py",
820 "--",
821 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
822 "[TMP_BASE]/logcat_tmp_3"
823 ],
824 "cwd": "[SLAVE_BUILD]",
825 "env": {
826 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
827 },
828 "name": "unittests.spawn_logcat_monitor",
829 "~followup_annotations": [
830 "@@@STEP_NEST_LEVEL@1@@@"
831 ]
832 },
833 {
834 "cmd": [
771 "python", 835 "python",
772 "-u", 836 "-u",
773 "[SLAVE_BUILD]/src/build/android/test_runner.py", 837 "[SLAVE_BUILD]/src/build/android/test_runner.py",
774 "gtest", 838 "gtest",
775 "-s", 839 "-s",
776 "unittests", 840 "unittests",
777 "--blacklist-file", 841 "--blacklist-file",
778 "[SLAVE_BUILD]/src/out/bad_devices.json", 842 "[SLAVE_BUILD]/src/out/bad_devices.json",
779 "--verbose", 843 "--verbose",
780 "--release", 844 "--release",
781 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 845 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
782 "--gtest_filter=WebRtc*", 846 "--gtest_filter=WebRtc*",
783 "--tool=asan" 847 "--tool=asan"
784 ], 848 ],
785 "cwd": "[SLAVE_BUILD]", 849 "cwd": "[SLAVE_BUILD]",
786 "env": { 850 "env": {
787 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 851 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
788 }, 852 },
789 "name": "unittests" 853 "name": "unittests.unittests",
854 "~followup_annotations": [
855 "@@@STEP_NEST_LEVEL@1@@@"
856 ]
790 }, 857 },
791 { 858 {
792 "cmd": [ 859 "cmd": [
860 "python",
861 "-u",
862 "[BUILD]/scripts/slave/tee.py",
863 "/path/to/tmp/logcat",
864 "--",
865 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
866 "[TMP_BASE]/logcat_tmp_3"
867 ],
868 "cwd": "[SLAVE_BUILD]",
869 "name": "unittests.logcat_dump",
870 "~followup_annotations": [
871 "@@@STEP_NEST_LEVEL@1@@@"
872 ]
873 },
874 {
875 "cmd": [
793 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py", 876 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py",
794 "-w", 877 "-w",
795 "[SLAVE_BUILD]" 878 "[SLAVE_BUILD]"
796 ], 879 ],
797 "cwd": "[SLAVE_BUILD]", 880 "cwd": "[SLAVE_BUILD]",
798 "name": "prepare bisect perf regression" 881 "name": "prepare bisect perf regression"
799 }, 882 },
800 { 883 {
801 "cmd": [ 884 "cmd": [
802 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py", 885 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py",
803 "-w", 886 "-w",
804 "[SLAVE_BUILD]", 887 "[SLAVE_BUILD]",
805 "--extra_src", 888 "--extra_src",
806 "test.py", 889 "test.py",
807 "--path_to_config", 890 "--path_to_config",
808 "test.py" 891 "test.py"
809 ], 892 ],
810 "cwd": "[SLAVE_BUILD]", 893 "cwd": "[SLAVE_BUILD]",
811 "name": "run bisect perf regression" 894 "name": "run bisect perf regression"
812 }, 895 },
813 { 896 {
814 "cmd": [ 897 "cmd": [
815 "python", 898 "python",
816 "-u", 899 "-u",
817 "[BUILD]/scripts/slave/tee.py", 900 "[BUILD]/scripts/slave/tee.py",
818 "[SLAVE_BUILD]/src/out/Release/full_log", 901 "[SLAVE_BUILD]/src/out/Release/full_logcat",
819 "--", 902 "--",
820 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 903 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
821 "[SLAVE_BUILD]/src/out/logcat" 904 "[SLAVE_BUILD]/src/out/logcat_dir"
822 ], 905 ],
823 "cwd": "[SLAVE_BUILD]", 906 "cwd": "[SLAVE_BUILD]",
824 "name": "logcat_dump" 907 "name": "logcat_dump"
825 }, 908 },
826 { 909 {
827 "cmd": [ 910 "cmd": [
828 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 911 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
829 "--arch", 912 "--arch",
830 "arm", 913 "arm",
831 "--more-info", 914 "--more-info",
832 "[SLAVE_BUILD]/src/out/Release/full_log" 915 "[SLAVE_BUILD]/src/out/Release/full_logcat"
833 ], 916 ],
834 "cwd": "[SLAVE_BUILD]", 917 "cwd": "[SLAVE_BUILD]",
835 "env": { 918 "env": {
836 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 919 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
837 }, 920 },
838 "name": "stack_tool_with_logcat_dump" 921 "name": "stack_tool_with_logcat_dump"
839 }, 922 },
840 { 923 {
841 "cmd": [ 924 "cmd": [
842 "[SLAVE_BUILD]/src/build/android/tombstones.py", 925 "[SLAVE_BUILD]/src/build/android/tombstones.py",
843 "-a", 926 "-a",
844 "-s", 927 "-s",
845 "-w" 928 "-w"
846 ], 929 ],
847 "cwd": "[SLAVE_BUILD]", 930 "cwd": "[SLAVE_BUILD]",
848 "env": { 931 "env": {
849 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 932 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
850 }, 933 },
851 "name": "stack_tool_for_tombstones" 934 "name": "stack_tool_for_tombstones"
852 }, 935 },
853 { 936 {
854 "cmd": [ 937 "cmd": [
855 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 938 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
856 "-l", 939 "-l",
857 "[SLAVE_BUILD]/src/out/Release/full_log" 940 "[SLAVE_BUILD]/src/out/Release/full_logcat"
858 ], 941 ],
859 "cwd": "[SLAVE_BUILD]", 942 "cwd": "[SLAVE_BUILD]",
860 "env": { 943 "env": {
861 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 944 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
862 }, 945 },
863 "name": "stack_tool_for_asan" 946 "name": "stack_tool_for_asan"
864 }, 947 },
865 { 948 {
866 "name": "$result", 949 "name": "$result",
867 "recipe_result": null, 950 "recipe_result": null,
868 "status_code": 0 951 "status_code": 0
869 } 952 }
870 ] 953 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698