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

Side by Side Diff: scripts/slave/recipes/cronet.expected/android_cronet_builder_asan.json

Issue 2174883002: [Android] Root devices before asan_device_setup.sh. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 5 months 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
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 "name": "cleanup index.lock", 9 "name": "cleanup index.lock",
10 "~followup_annotations": [ 10 "~followup_annotations": [
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@{@@@", 522 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@{@@@",
523 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"adb_status\": \"device \", @@@", 523 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"adb_status\": \"device \", @@@",
524 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"blacklisted\": true, @ @@", 524 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"blacklisted\": true, @ @@",
525 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@", 525 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@",
526 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" , 526 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" ,
527 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@", 527 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@",
528 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@" 528 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@"
529 ] 529 ]
530 }, 530 },
531 { 531 {
532 "cmd": [],
533 "name": "Set up ASAN on devices"
534 },
535 {
536 "cmd": [
537 "python",
538 "-u",
539 "RECIPE_MODULE[build::adb]/resources/list_devices.py",
540 "['[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb', 'd evices']",
541 "/path/to/tmp/json"
542 ],
543 "name": "Set up ASAN on devices.List adb devices",
544 "~followup_annotations": [
545 "@@@STEP_NEST_LEVEL@1@@@",
546 "@@@STEP_LOG_LINE@json.output@[@@@",
547 "@@@STEP_LOG_LINE@json.output@ \"014E1F310401C009\"@@@",
548 "@@@STEP_LOG_LINE@json.output@]@@@",
549 "@@@STEP_LOG_END@json.output@@@"
550 ]
551 },
552 {
553 "cmd": [
554 "python",
555 "-u",
556 "\nimport subprocess\nimport sys\nadb_path = sys.argv[1]\nfor device in sy s.argv[2:]:\n print 'Attempting to root device %s ...' % (device)\n subprocess .check_call([adb_path, '-s', device, 'root'])\n subprocess.check_call([adb_path , '-s', device, 'wait-for-device'])\n print 'Finished rooting device %s' % (dev ice)\n",
557 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
558 "014E1F310401C009"
559 ],
560 "name": "Set up ASAN on devices.Root devices",
561 "~followup_annotations": [
562 "@@@STEP_NEST_LEVEL@1@@@",
563 "@@@STEP_LOG_LINE@python.inline@@@@",
564 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@",
565 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
566 "@@@STEP_LOG_LINE@python.inline@adb_path = sys.argv[1]@@@",
567 "@@@STEP_LOG_LINE@python.inline@for device in sys.argv[2:]:@@@",
568 "@@@STEP_LOG_LINE@python.inline@ print 'Attempting to root device %s ...' % (device)@@@",
569 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'root'])@@@",
570 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d evice, 'wait-for-device'])@@@",
571 "@@@STEP_LOG_LINE@python.inline@ print 'Finished rooting device %s' % (de vice)@@@",
572 "@@@STEP_LOG_END@python.inline@@@"
573 ]
574 },
575 {
532 "cmd": [ 576 "cmd": [
533 "[SLAVE_BUILD]/src/tools/android/asan/third_party/asan_device_setup.sh", 577 "[SLAVE_BUILD]/src/tools/android/asan/third_party/asan_device_setup.sh",
534 "--lib", 578 "--lib",
535 "[SLAVE_BUILD]/src/third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/ lib/linux/libclang_rt.asan-arm-android.so", 579 "[SLAVE_BUILD]/src/third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/ lib/linux/libclang_rt.asan-arm-android.so",
536 "--device", 580 "--device",
537 "07a00ca4" 581 "07a00ca4"
538 ], 582 ],
539 "env": { 583 "env": {
540 "ADB": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb ", 584 "ADB": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb ",
541 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 585 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
542 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 586 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
543 }, 587 },
544 "name": "Set up ASAN on device 07a00ca4" 588 "name": "Set up ASAN on devices.07a00ca4",
589 "~followup_annotations": [
590 "@@@STEP_NEST_LEVEL@1@@@"
591 ]
545 }, 592 },
546 { 593 {
547 "cmd": [ 594 "cmd": [
548 "python", 595 "python",
549 "-u", 596 "-u",
550 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py", 597 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py",
551 "--action", 598 "--action",
552 "restart", 599 "restart",
553 "--pid-file-path", 600 "--pid-file-path",
554 "/tmp/device_monitor.pid", 601 "/tmp/device_monitor.pid",
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 "[SLAVE_BUILD]/src/out/Release/full_log" 766 "[SLAVE_BUILD]/src/out/Release/full_log"
720 ], 767 ],
721 "env": { 768 "env": {
722 "CHROMIUM_OUTPUT_DIR": "[SLAVE_BUILD]/src/out/Release", 769 "CHROMIUM_OUTPUT_DIR": "[SLAVE_BUILD]/src/out/Release",
723 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 770 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
724 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 771 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
725 }, 772 },
726 "name": "stack_tool_for_asan" 773 "name": "stack_tool_for_asan"
727 }, 774 },
728 { 775 {
776 "cmd": [],
777 "name": "Tear down ASAN on devices"
778 },
779 {
729 "cmd": [ 780 "cmd": [
730 "[SLAVE_BUILD]/src/tools/android/asan/third_party/asan_device_setup.sh", 781 "[SLAVE_BUILD]/src/tools/android/asan/third_party/asan_device_setup.sh",
731 "--revert", 782 "--revert",
732 "--device", 783 "--device",
733 "07a00ca4" 784 "07a00ca4"
734 ], 785 ],
735 "env": { 786 "env": {
736 "ADB": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb ", 787 "ADB": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb ",
737 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 788 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
738 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 789 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
739 }, 790 },
740 "name": "Tear down ASAN on device 07a00ca4" 791 "name": "Tear down ASAN on devices.07a00ca4",
792 "~followup_annotations": [
793 "@@@STEP_NEST_LEVEL@1@@@"
794 ]
741 }, 795 },
742 { 796 {
743 "cmd": [ 797 "cmd": [
744 "python", 798 "python",
745 "-u", 799 "-u",
746 "\nimport glob, os, sys\nfor report in glob.glob(sys.argv[1]):\n with ope n(report, 'r') as f:\n for l in f.readlines():\n print l\n os.remove(re port)\n", 800 "\nimport glob, os, sys\nfor report in glob.glob(sys.argv[1]):\n with ope n(report, 'r') as f:\n for l in f.readlines():\n print l\n os.remove(re port)\n",
747 "[SLAVE_BUILD]/src/out/Release/test_logs/*.log" 801 "[SLAVE_BUILD]/src/out/Release/test_logs/*.log"
748 ], 802 ],
749 "name": "test_report", 803 "name": "test_report",
750 "~followup_annotations": [ 804 "~followup_annotations": [
751 "@@@STEP_LOG_LINE@python.inline@@@@", 805 "@@@STEP_LOG_LINE@python.inline@@@@",
752 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@", 806 "@@@STEP_LOG_LINE@python.inline@import glob, os, sys@@@",
753 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@", 807 "@@@STEP_LOG_LINE@python.inline@for report in glob.glob(sys.argv[1]):@@@",
754 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@", 808 "@@@STEP_LOG_LINE@python.inline@ with open(report, 'r') as f:@@@",
755 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@", 809 "@@@STEP_LOG_LINE@python.inline@ for l in f.readlines():@@@",
756 "@@@STEP_LOG_LINE@python.inline@ print l@@@", 810 "@@@STEP_LOG_LINE@python.inline@ print l@@@",
757 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 811 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
758 "@@@STEP_LOG_END@python.inline@@@" 812 "@@@STEP_LOG_END@python.inline@@@"
759 ] 813 ]
760 }, 814 },
761 { 815 {
762 "name": "$result", 816 "name": "$result",
763 "recipe_result": null, 817 "recipe_result": null,
764 "status_code": 0 818 "status_code": 0
765 } 819 }
766 ] 820 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698