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

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

Issue 1511403002: Revert "[Android] Add context manager to record logcat during step(s)." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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_dir" 291 "[SLAVE_BUILD]/src/out/logcat"
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 {
606 "cmd": [ 585 "cmd": [
607 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 586 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
608 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 587 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
609 "-v", 588 "-v",
610 "--blacklist-file", 589 "--blacklist-file",
611 "[SLAVE_BUILD]/src/out/bad_devices.json", 590 "[SLAVE_BUILD]/src/out/bad_devices.json",
612 "--release" 591 "--release"
613 ], 592 ],
614 "cwd": "[SLAVE_BUILD]", 593 "cwd": "[SLAVE_BUILD]",
615 "env": { 594 "env": {
616 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 595 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
617 }, 596 },
618 "name": "AndroidWebViewTest.install AndroidWebView.apk", 597 "name": "install AndroidWebView.apk"
619 "~followup_annotations": [
620 "@@@STEP_NEST_LEVEL@1@@@"
621 ]
622 }, 598 },
623 { 599 {
624 "cmd": [ 600 "cmd": [
625 "python", 601 "python",
626 "-u", 602 "-u",
627 "[SLAVE_BUILD]/src/build/android/test_runner.py", 603 "[SLAVE_BUILD]/src/build/android/test_runner.py",
628 "instrumentation", 604 "instrumentation",
629 "--test-apk", 605 "--test-apk",
630 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 606 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
631 "--blacklist-file", 607 "--blacklist-file",
632 "[SLAVE_BUILD]/src/out/bad_devices.json", 608 "[SLAVE_BUILD]/src/out/bad_devices.json",
633 "--apk-under-test", 609 "--apk-under-test",
634 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 610 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
635 "--isolate-file-path", 611 "--isolate-file-path",
636 "android_webview/android_webview_test_apk.isolate", 612 "android_webview/android_webview_test_apk.isolate",
637 "--flakiness-dashboard-server", 613 "--flakiness-dashboard-server",
638 "test-results.appspot.com", 614 "test-results.appspot.com",
639 "-A", 615 "-A",
640 "SmallTest", 616 "SmallTest",
641 "-E", 617 "-E",
642 "FlakyTest", 618 "FlakyTest",
643 "--screenshot", 619 "--screenshot",
644 "--release", 620 "--release",
645 "--host-driven-root", 621 "--host-driven-root",
646 "[SLAVE_BUILD]/src/chrome/test", 622 "[SLAVE_BUILD]/src/chrome/test",
647 "--official-build" 623 "--official-build"
648 ], 624 ],
649 "cwd": "[SLAVE_BUILD]", 625 "cwd": "[SLAVE_BUILD]",
650 "name": "AndroidWebViewTest.Instrumentation test SmallTest", 626 "name": "Instrumentation test SmallTest"
651 "~followup_annotations": [
652 "@@@STEP_NEST_LEVEL@1@@@"
653 ]
654 }, 627 },
655 { 628 {
656 "cmd": [ 629 "cmd": [
657 "python",
658 "-u",
659 "[BUILD]/scripts/slave/tee.py",
660 "/path/to/tmp/logcat",
661 "--",
662 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
663 "[TMP_BASE]/logcat_tmp_1"
664 ],
665 "cwd": "[SLAVE_BUILD]",
666 "name": "AndroidWebViewTest.logcat_dump",
667 "~followup_annotations": [
668 "@@@STEP_NEST_LEVEL@1@@@"
669 ]
670 },
671 {
672 "cmd": [],
673 "cwd": "[SLAVE_BUILD]",
674 "name": "unittests"
675 },
676 {
677 "cmd": [
678 "[BUILD]/scripts/slave/daemonizer.py",
679 "--",
680 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
681 "[TMP_BASE]/logcat_tmp_2"
682 ],
683 "cwd": "[SLAVE_BUILD]",
684 "env": {
685 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
686 },
687 "name": "unittests.spawn_logcat_monitor",
688 "~followup_annotations": [
689 "@@@STEP_NEST_LEVEL@1@@@"
690 ]
691 },
692 {
693 "cmd": [
694 "python", 630 "python",
695 "-u", 631 "-u",
696 "[SLAVE_BUILD]/src/build/android/test_runner.py", 632 "[SLAVE_BUILD]/src/build/android/test_runner.py",
697 "gtest", 633 "gtest",
698 "-s", 634 "-s",
699 "unittests", 635 "unittests",
700 "--blacklist-file", 636 "--blacklist-file",
701 "[SLAVE_BUILD]/src/out/bad_devices.json", 637 "[SLAVE_BUILD]/src/out/bad_devices.json",
702 "--verbose", 638 "--verbose",
703 "--release", 639 "--release",
704 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate", 640 "--isolate_file_path=[SLAVE_BUILD]/src/some_file.isolate",
705 "--gtest_filter=WebRtc*", 641 "--gtest_filter=WebRtc*",
706 "--tool=asan" 642 "--tool=asan"
707 ], 643 ],
708 "cwd": "[SLAVE_BUILD]", 644 "cwd": "[SLAVE_BUILD]",
709 "env": { 645 "env": {
710 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 646 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
711 }, 647 },
712 "name": "unittests.unittests", 648 "name": "unittests"
713 "~followup_annotations": [
714 "@@@STEP_NEST_LEVEL@1@@@"
715 ]
716 }, 649 },
717 { 650 {
718 "cmd": [ 651 "cmd": [
719 "python",
720 "-u",
721 "[BUILD]/scripts/slave/tee.py",
722 "/path/to/tmp/logcat",
723 "--",
724 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
725 "[TMP_BASE]/logcat_tmp_2"
726 ],
727 "cwd": "[SLAVE_BUILD]",
728 "name": "unittests.logcat_dump",
729 "~followup_annotations": [
730 "@@@STEP_NEST_LEVEL@1@@@"
731 ]
732 },
733 {
734 "cmd": [
735 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py", 652 "[SLAVE_BUILD]/src/tools/prepare-bisect-perf-regression.py",
736 "-w", 653 "-w",
737 "[SLAVE_BUILD]" 654 "[SLAVE_BUILD]"
738 ], 655 ],
739 "cwd": "[SLAVE_BUILD]", 656 "cwd": "[SLAVE_BUILD]",
740 "name": "prepare bisect perf regression" 657 "name": "prepare bisect perf regression"
741 }, 658 },
742 { 659 {
743 "cmd": [ 660 "cmd": [
744 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py", 661 "[SLAVE_BUILD]/src/tools/run-bisect-perf-regression.py",
745 "-w", 662 "-w",
746 "[SLAVE_BUILD]", 663 "[SLAVE_BUILD]",
747 "--extra_src", 664 "--extra_src",
748 "test.py", 665 "test.py",
749 "--path_to_config", 666 "--path_to_config",
750 "test.py" 667 "test.py"
751 ], 668 ],
752 "cwd": "[SLAVE_BUILD]", 669 "cwd": "[SLAVE_BUILD]",
753 "name": "run bisect perf regression" 670 "name": "run bisect perf regression"
754 }, 671 },
755 { 672 {
756 "cmd": [ 673 "cmd": [
757 "python", 674 "python",
758 "-u", 675 "-u",
759 "[BUILD]/scripts/slave/tee.py", 676 "[BUILD]/scripts/slave/tee.py",
760 "[SLAVE_BUILD]/src/out/Release/full_logcat", 677 "[SLAVE_BUILD]/src/out/Release/full_log",
761 "--", 678 "--",
762 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py", 679 "[SLAVE_BUILD]/src/build/android/adb_logcat_printer.py",
763 "[SLAVE_BUILD]/src/out/logcat_dir" 680 "[SLAVE_BUILD]/src/out/logcat"
764 ], 681 ],
765 "cwd": "[SLAVE_BUILD]", 682 "cwd": "[SLAVE_BUILD]",
766 "name": "logcat_dump" 683 "name": "logcat_dump"
767 }, 684 },
768 { 685 {
769 "cmd": [ 686 "cmd": [
770 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" , 687 "[SLAVE_BUILD]/src/third_party/android_platform/development/scripts/stack" ,
771 "--arch", 688 "--arch",
772 "arm", 689 "arm",
773 "--more-info", 690 "--more-info",
774 "[SLAVE_BUILD]/src/out/Release/full_logcat" 691 "[SLAVE_BUILD]/src/out/Release/full_log"
775 ], 692 ],
776 "cwd": "[SLAVE_BUILD]", 693 "cwd": "[SLAVE_BUILD]",
777 "env": { 694 "env": {
778 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 695 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
779 }, 696 },
780 "name": "stack_tool_with_logcat_dump" 697 "name": "stack_tool_with_logcat_dump"
781 }, 698 },
782 { 699 {
783 "cmd": [ 700 "cmd": [
784 "[SLAVE_BUILD]/src/build/android/tombstones.py", 701 "[SLAVE_BUILD]/src/build/android/tombstones.py",
785 "-a", 702 "-a",
786 "-s", 703 "-s",
787 "-w" 704 "-w"
788 ], 705 ],
789 "cwd": "[SLAVE_BUILD]", 706 "cwd": "[SLAVE_BUILD]",
790 "env": { 707 "env": {
791 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 708 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
792 }, 709 },
793 "name": "stack_tool_for_tombstones" 710 "name": "stack_tool_for_tombstones"
794 }, 711 },
795 { 712 {
796 "cmd": [ 713 "cmd": [
797 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py", 714 "[SLAVE_BUILD]/src/build/android/asan_symbolize.py",
798 "-l", 715 "-l",
799 "[SLAVE_BUILD]/src/out/Release/full_logcat" 716 "[SLAVE_BUILD]/src/out/Release/full_log"
800 ], 717 ],
801 "cwd": "[SLAVE_BUILD]", 718 "cwd": "[SLAVE_BUILD]",
802 "env": { 719 "env": {
803 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 720 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
804 }, 721 },
805 "name": "stack_tool_for_asan" 722 "name": "stack_tool_for_asan"
806 }, 723 },
807 { 724 {
808 "name": "$result", 725 "name": "$result",
809 "recipe_result": null, 726 "recipe_result": null,
810 "status_code": 0 727 "status_code": 0
811 } 728 }
812 ] 729 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698