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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/gerrit_refs.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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@", 283 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@",
284 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@", 284 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@",
285 "@@@STEP_LOG_END@python.inline@@@" 285 "@@@STEP_LOG_END@python.inline@@@"
286 ] 286 ]
287 }, 287 },
288 { 288 {
289 "cmd": [ 289 "cmd": [
290 "[BUILD]/scripts/slave/daemonizer.py", 290 "[BUILD]/scripts/slave/daemonizer.py",
291 "--", 291 "--",
292 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py", 292 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
293 "[SLAVE_BUILD]/src/out/logcat" 293 "[SLAVE_BUILD]/src/out/logcat_dir"
294 ], 294 ],
295 "cwd": "[SLAVE_BUILD]", 295 "cwd": "[SLAVE_BUILD]",
296 "env": { 296 "env": {
297 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 297 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
298 }, 298 },
299 "name": "spawn_logcat_monitor" 299 "name": "spawn_logcat_monitor"
300 }, 300 },
301 { 301 {
302 "cmd": [ 302 "cmd": [
303 "python", 303 "python",
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 "--blacklist-file", 578 "--blacklist-file",
579 "[SLAVE_BUILD]/src/out/bad_devices.json" 579 "[SLAVE_BUILD]/src/out/bad_devices.json"
580 ], 580 ],
581 "cwd": "[SLAVE_BUILD]", 581 "cwd": "[SLAVE_BUILD]",
582 "env": { 582 "env": {
583 "BUILDTYPE": "Release" 583 "BUILDTYPE": "Release"
584 }, 584 },
585 "name": "Monkey Test" 585 "name": "Monkey Test"
586 }, 586 },
587 { 587 {
588 "cmd": [],
589 "cwd": "[SLAVE_BUILD]",
590 "name": "AndroidWebViewTest"
591 },
592 {
593 "cmd": [
594 "[BUILD]/scripts/slave/daemonizer.py",
595 "--",
596 "[SLAVE_BUILD]/src/build/android/adb_logcat_monitor.py",
597 "[TMP_BASE]/logcat_tmp_1"
598 ],
599 "cwd": "[SLAVE_BUILD]",
600 "env": {
601 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
602 },
603 "name": "AndroidWebViewTest.spawn_logcat_monitor",
604 "~followup_annotations": [
605 "@@@STEP_NEST_LEVEL@1@@@"
606 ]
607 },
608 {
588 "cmd": [ 609 "cmd": [
589 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py", 610 "[SLAVE_BUILD]/src/build/android/adb_install_apk.py",
590 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 611 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
591 "-v", 612 "-v",
592 "--blacklist-file", 613 "--blacklist-file",
593 "[SLAVE_BUILD]/src/out/bad_devices.json", 614 "[SLAVE_BUILD]/src/out/bad_devices.json",
594 "--release" 615 "--release"
595 ], 616 ],
596 "cwd": "[SLAVE_BUILD]", 617 "cwd": "[SLAVE_BUILD]",
597 "env": { 618 "env": {
598 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 619 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
599 }, 620 },
600 "name": "install AndroidWebView.apk" 621 "name": "AndroidWebViewTest.install AndroidWebView.apk",
622 "~followup_annotations": [
623 "@@@STEP_NEST_LEVEL@1@@@"
624 ]
601 }, 625 },
602 { 626 {
603 "cmd": [ 627 "cmd": [
604 "python", 628 "python",
605 "-u", 629 "-u",
606 "[SLAVE_BUILD]/src/build/android/test_runner.py", 630 "[SLAVE_BUILD]/src/build/android/test_runner.py",
607 "instrumentation", 631 "instrumentation",
608 "--test-apk", 632 "--test-apk",
609 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk", 633 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebViewTest.apk",
610 "--blacklist-file", 634 "--blacklist-file",
611 "[SLAVE_BUILD]/src/out/bad_devices.json", 635 "[SLAVE_BUILD]/src/out/bad_devices.json",
612 "--apk-under-test", 636 "--apk-under-test",
613 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk", 637 "[SLAVE_BUILD]/src/out/Release/apks/AndroidWebView.apk",
614 "--isolate-file-path", 638 "--isolate-file-path",
615 "android_webview/android_webview_test_apk.isolate", 639 "android_webview/android_webview_test_apk.isolate",
616 "--flakiness-dashboard-server", 640 "--flakiness-dashboard-server",
617 "test-results.appspot.com", 641 "test-results.appspot.com",
618 "-A", 642 "-A",
619 "SmallTest", 643 "SmallTest",
620 "-E", 644 "-E",
621 "FlakyTest", 645 "FlakyTest",
622 "--screenshot", 646 "--screenshot",
623 "--release", 647 "--release",
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 "name": "$result", 811 "name": "$result",
729 "recipe_result": null, 812 "recipe_result": null,
730 "status_code": 0 813 "status_code": 0
731 } 814 }
732 ] 815 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698