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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/coverage_builder_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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@", 281 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@",
282 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@", 282 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@",
283 "@@@STEP_LOG_END@python.inline@@@" 283 "@@@STEP_LOG_END@python.inline@@@"
284 ] 284 ]
285 }, 285 },
286 { 286 {
287 "cmd": [ 287 "cmd": [
288 "[BUILD]/scripts/slave/daemonizer.py", 288 "[BUILD]/scripts/slave/daemonizer.py",
289 "--", 289 "--",
290 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 290 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
291 "[SLAVE_BUILD]/src/out/logcat" 291 "[SLAVE_BUILD]/src/out/logcat_dir"
292 ], 292 ],
293 "cwd": "[SLAVE_BUILD]", 293 "cwd": "[SLAVE_BUILD]",
294 "env": { 294 "env": {
295 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 295 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
296 }, 296 },
297 "name": "spawn_logcat_monitor" 297 "name": "spawn_logcat_monitor"
298 }, 298 },
299 { 299 {
300 "cmd": [ 300 "cmd": [
301 "python", 301 "python",
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 "--blacklist-file", 575 "--blacklist-file",
576 "[SLAVE_BUILD]/src/out/bad_devices.json" 576 "[SLAVE_BUILD]/src/out/bad_devices.json"
577 ], 577 ],
578 "cwd": "[SLAVE_BUILD]", 578 "cwd": "[SLAVE_BUILD]",
579 "env": { 579 "env": {
580 "BUILDTYPE": "Release" 580 "BUILDTYPE": "Release"
581 }, 581 },
582 "name": "Monkey Test" 582 "name": "Monkey Test"
583 }, 583 },
584 { 584 {
585 "cmd": [],
586 "cwd": "[SLAVE_BUILD]",
587 "name": "AndroidWebViewTest"
588 },
589 {
590 "cmd": [
591 "[BUILD]/scripts/slave/daemonizer.py",
592 "--",
593 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
594 "[TMP_BASE]/logcat_tmp_1"
595 ],
596 "cwd": "[SLAVE_BUILD]",
597 "env": {
598 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
599 },
600 "name": "AndroidWebViewTest.spawn_logcat_monitor",
601 "~followup_annotations": [
602 "@@@STEP_NEST_LEVEL@1@@@"
603 ]
604 },
605 {
585 "cmd": [ 606 "cmd": [
586 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 607 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
587 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 608 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
588 "-v", 609 "-v",
589 "--blacklist-file", 610 "--blacklist-file",
590 "[SLAVE_BUILD]/src/out/bad_devices.json", 611 "[SLAVE_BUILD]/src/out/bad_devices.json",
591 "--release" 612 "--release"
592 ], 613 ],
593 "cwd": "[SLAVE_BUILD]", 614 "cwd": "[SLAVE_BUILD]",
594 "env": { 615 "env": {
595 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 616 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
596 }, 617 },
597 "name": "install AndroidWebView.apk" 618 "name": "AndroidWebViewTest.install AndroidWebView.apk",
619 "~followup_annotations": [
620 "@@@STEP_NEST_LEVEL@1@@@"
621 ]
598 }, 622 },
599 { 623 {
600 "cmd": [ 624 "cmd": [
601 "python", 625 "python",
602 "-u", 626 "-u",
603 "[SLAVE_BUILD]/src/build/android/test_runner.py", 627 "[SLAVE_BUILD]/src/build/android/test_runner.py",
604 "instrumentation", 628 "instrumentation",
605 "--test-apk", 629 "--test-apk",
606 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 630 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
607 "--blacklist-file", 631 "--blacklist-file",
(...skipping 11 matching lines...) Expand all
619 "--screenshot", 643 "--screenshot",
620 "--release", 644 "--release",
621 "--coverage-dir", 645 "--coverage-dir",
622 "[SLAVE_BUILD]/src/out/Release/coverage", 646 "[SLAVE_BUILD]/src/out/Release/coverage",
623 "--python-only", 647 "--python-only",
624 "--host-driven-root", 648 "--host-driven-root",
625 "[SLAVE_BUILD]/src/chrome/test", 649 "[SLAVE_BUILD]/src/chrome/test",
626 "--official-build" 650 "--official-build"
627 ], 651 ],
628 "cwd": "[SLAVE_BUILD]", 652 "cwd": "[SLAVE_BUILD]",
629 "name": "Instrumentation test SmallTest" 653 "name": "AndroidWebViewTest.Instrumentation test SmallTest",
654 "~followup_annotations": [
655 "@@@STEP_NEST_LEVEL@1@@@"
656 ]
630 }, 657 },
631 { 658 {
632 "cmd": [ 659 "cmd": [
660 "python",
661 "-u",
662 "[BUILD]/scripts/slave/tee.py",
663 "/path/to/tmp/logcat",
664 "--",
665 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
666 "[TMP_BASE]/logcat_tmp_1"
667 ],
668 "cwd": "[SLAVE_BUILD]",
669 "name": "AndroidWebViewTest.logcat_dump",
670 "~followup_annotations": [
671 "@@@STEP_NEST_LEVEL@1@@@"
672 ]
673 },
674 {
675 "cmd": [],
676 "cwd": "[SLAVE_BUILD]",
677 "name": "unittests"
678 },
679 {
680 "cmd": [
681 "[BUILD]/scripts/slave/daemonizer.py",
682 "--",
683 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
684 "[TMP_BASE]/logcat_tmp_2"
685 ],
686 "cwd": "[SLAVE_BUILD]",
687 "env": {
688 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
689 },
690 "name": "unittests.spawn_logcat_monitor",
691 "~followup_annotations": [
692 "@@@STEP_NEST_LEVEL@1@@@"
693 ]
694 },
695 {
696 "cmd": [
633 "python", 697 "python",
634 "-u", 698 "-u",
635 "[SLAVE_BUILD]/src/build/android/test_runner.py", 699 "[SLAVE_BUILD]/src/build/android/test_runner.py",
636 "gtest", 700 "gtest",
637 "-s", 701 "-s",
638 "unittests", 702 "unittests",
639 "--blacklist-file", 703 "--blacklist-file",
640 "[SLAVE_BUILD]/src/out/bad_devices.json", 704 "[SLAVE_BUILD]/src/out/bad_devices.json",
641 "--verbose", 705 "--verbose",
642 "--release", 706 "--release",
643 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 707 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
644 "--gtest_filter=WebRtc*", 708 "--gtest_filter=WebRtc*",
645 "--tool=asan" 709 "--tool=asan"
646 ], 710 ],
647 "cwd": "[SLAVE_BUILD]", 711 "cwd": "[SLAVE_BUILD]",
648 "env": { 712 "env": {
649 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 713 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
650 }, 714 },
651 "name": "unittests" 715 "name": "unittests.unittests",
716 "~followup_annotations": [
717 "@@@STEP_NEST_LEVEL@1@@@"
718 ]
652 }, 719 },
653 { 720 {
654 "cmd": [ 721 "cmd": [
722 "python",
723 "-u",
724 "[BUILD]/scripts/slave/tee.py",
725 "/path/to/tmp/logcat",
726 "--",
727 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
728 "[TMP_BASE]/logcat_tmp_2"
729 ],
730 "cwd": "[SLAVE_BUILD]",
731 "name": "unittests.logcat_dump",
732 "~followup_annotations": [
733 "@@@STEP_NEST_LEVEL@1@@@"
734 ]
735 },
736 {
737 "cmd": [
655 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py", 738 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py",
656 "-w", 739 "-w",
657 "[SLAVE_BUILD]" 740 "[SLAVE_BUILD]"
658 ], 741 ],
659 "cwd": "[SLAVE_BUILD]", 742 "cwd": "[SLAVE_BUILD]",
660 "name": "prepare bisect perf regression" 743 "name": "prepare bisect perf regression"
661 }, 744 },
662 { 745 {
663 "cmd": [ 746 "cmd": [
664 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py", 747 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py",
665 "-w", 748 "-w",
666 "[SLAVE_BUILD]", 749 "[SLAVE_BUILD]",
667 "--extra_src", 750 "--extra_src",
668 "test.py", 751 "test.py",
669 "--path_to_config", 752 "--path_to_config",
670 "test.py" 753 "test.py"
671 ], 754 ],
672 "cwd": "[SLAVE_BUILD]", 755 "cwd": "[SLAVE_BUILD]",
673 "name": "run bisect perf regression" 756 "name": "run bisect perf regression"
674 }, 757 },
675 { 758 {
676 "cmd": [ 759 "cmd": [
677 "python", 760 "python",
678 "-u", 761 "-u",
679 "[BUILD]/scripts/slave/tee.py", 762 "[BUILD]/scripts/slave/tee.py",
680 "[SLAVE_BUILD]/src/out/Release/full_log", 763 "[SLAVE_BUILD]/src/out/Release/full_logcat",
681 "--", 764 "--",
682 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 765 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
683 "[SLAVE_BUILD]/src/out/logcat" 766 "[SLAVE_BUILD]/src/out/logcat_dir"
684 ], 767 ],
685 "cwd": "[SLAVE_BUILD]", 768 "cwd": "[SLAVE_BUILD]",
686 "name": "logcat_dump" 769 "name": "logcat_dump"
687 }, 770 },
688 { 771 {
689 "cmd": [ 772 "cmd": [
690 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 773 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
691 "--arch", 774 "--arch",
692 "arm", 775 "arm",
693 "--more-info", 776 "--more-info",
694 "[SLAVE_BUILD]/src/out/Release/full_log" 777 "[SLAVE_BUILD]/src/out/Release/full_logcat"
695 ], 778 ],
696 "cwd": "[SLAVE_BUILD]", 779 "cwd": "[SLAVE_BUILD]",
697 "env": { 780 "env": {
698 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 781 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
699 }, 782 },
700 "name": "stack_tool_with_logcat_dump" 783 "name": "stack_tool_with_logcat_dump"
701 }, 784 },
702 { 785 {
703 "cmd": [ 786 "cmd": [
704 "[SLAVE_BUILD]/src/build/android/tombstones.py", 787 "[SLAVE_BUILD]/src/build/android/tombstones.py",
705 "-a", 788 "-a",
706 "-s", 789 "-s",
707 "-w" 790 "-w"
708 ], 791 ],
709 "cwd": "[SLAVE_BUILD]", 792 "cwd": "[SLAVE_BUILD]",
710 "env": { 793 "env": {
711 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 794 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
712 }, 795 },
713 "name": "stack_tool_for_tombstones" 796 "name": "stack_tool_for_tombstones"
714 }, 797 },
715 { 798 {
716 "cmd": [ 799 "cmd": [
717 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 800 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
718 "-l", 801 "-l",
719 "[SLAVE_BUILD]/src/out/Release/full_log" 802 "[SLAVE_BUILD]/src/out/Release/full_logcat"
720 ], 803 ],
721 "cwd": "[SLAVE_BUILD]", 804 "cwd": "[SLAVE_BUILD]",
722 "env": { 805 "env": {
723 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 806 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
724 }, 807 },
725 "name": "stack_tool_for_asan" 808 "name": "stack_tool_for_asan"
726 }, 809 },
727 { 810 {
728 "cmd": [ 811 "cmd": [
729 "python", 812 "python",
(...skipping 30 matching lines...) Expand all
760 "~followup_annotations": [ 843 "~followup_annotations": [
761 "@@@STEP_LINK@Coverage report@https://storage.cloud.google.com/chrome-code -coverage/java/coverage_builder/4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00@@@" 844 "@@@STEP_LINK@Coverage report@https://storage.cloud.google.com/chrome-code -coverage/java/coverage_builder/4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00@@@"
762 ] 845 ]
763 }, 846 },
764 { 847 {
765 "name": "$result", 848 "name": "$result",
766 "recipe_result": null, 849 "recipe_result": null,
767 "status_code": 0 850 "status_code": 0
768 } 851 }
769 ] 852 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698