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

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

Powered by Google App Engine
This is Rietveld 408576698