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

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

Powered by Google App Engine
This is Rietveld 408576698