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

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

Issue 2059993002: [Android] Move to new device status and recovery scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 6 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 323 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
324 ], 324 ],
325 "env": { 325 "env": {
326 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 326 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
327 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 327 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
328 }, 328 },
329 "name": "authorize_adb_devices" 329 "name": "authorize_adb_devices"
330 }, 330 },
331 { 331 {
332 "cmd": [ 332 "cmd": [
333 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 333 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_r ecovery.py",
334 "--adb-path",
335 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
336 "--blacklist-file", 334 "--blacklist-file",
337 "[SLAVE_BUILD]/src/out/bad_devices.json", 335 "[SLAVE_BUILD]/src/out/bad_devices.json",
338 "--json-output",
339 "/path/to/tmp/json",
340 "--known-devices-file", 336 "--known-devices-file",
341 "[BUILD]/site_config/.known_devices" 337 "[BUILD]/site_config/.known_devices",
338 "-v"
342 ], 339 ],
343 "env": { 340 "env": {
344 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 341 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
345 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 342 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
346 }, 343 },
347 "name": "device_status_check", 344 "name": "device_recovery"
345 },
346 {
347 "cmd": [
348 "python",
349 "-u",
350 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
351 "--adb-path",
352 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
353 "--blacklist-file",
354 "[SLAVE_BUILD]/src/out/bad_devices.json",
355 "--output-device-blacklist",
356 "/path/to/tmp/json",
357 "-t",
358 "Debug"
359 ],
360 "env": {
361 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
362 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
363 },
364 "name": "provision_devices"
365 },
366 {
367 "cmd": [
368 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_s tatus.py",
369 "--json-output",
370 "/path/to/tmp/json",
371 "--blacklist-file",
372 "[SLAVE_BUILD]/src/out/bad_devices.json",
373 "--known-devices-file",
374 "[BUILD]/site_config/.known_devices",
375 "--buildbot-path",
376 "/home/chrome-bot/.adb_device_info",
377 "-v",
378 "--overwrite-known-devices-files"
379 ],
380 "env": {
381 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
382 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
383 },
384 "name": "device_status",
348 "~followup_annotations": [ 385 "~followup_annotations": [
349 "@@@STEP_TEXT@Online devices: 1@@@", 386 "@@@STEP_TEXT@Online devices: 1@@@",
350 "@@@STEP_LOG_LINE@json.output@[@@@", 387 "@@@STEP_LOG_LINE@json.output@[@@@",
351 "@@@STEP_LOG_LINE@json.output@ {@@@", 388 "@@@STEP_LOG_LINE@json.output@ {@@@",
352 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@", 389 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@",
353 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@", 390 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
354 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@", 391 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
355 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@", 392 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
356 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@", 393 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
357 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@", 394 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@", 474 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@",
438 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" , 475 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" ,
439 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@", 476 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@",
440 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@" 477 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@"
441 ] 478 ]
442 }, 479 },
443 { 480 {
444 "cmd": [ 481 "cmd": [
445 "python", 482 "python",
446 "-u", 483 "-u",
447 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
448 "--adb-path",
449 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
450 "--blacklist-file",
451 "[SLAVE_BUILD]/src/out/bad_devices.json",
452 "--output-device-blacklist",
453 "/path/to/tmp/json",
454 "-t",
455 "Debug"
456 ],
457 "env": {
458 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
459 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
460 },
461 "name": "provision_devices"
462 },
463 {
464 "cmd": [
465 "python",
466 "-u",
467 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py", 484 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py",
468 "--action", 485 "--action",
469 "restart", 486 "restart",
470 "--pid-file-path", 487 "--pid-file-path",
471 "/tmp/device_monitor.pid", 488 "/tmp/device_monitor.pid",
472 "--", 489 "--",
473 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" , 490 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" ,
474 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 491 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
475 "[\"07a00ca4\"]", 492 "[\"07a00ca4\"]",
476 "--blacklist-file", 493 "--blacklist-file",
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 656 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
640 "@@@STEP_LOG_END@python.inline@@@" 657 "@@@STEP_LOG_END@python.inline@@@"
641 ] 658 ]
642 }, 659 },
643 { 660 {
644 "name": "$result", 661 "name": "$result",
645 "recipe_result": null, 662 "recipe_result": null,
646 "status_code": 0 663 "status_code": 0
647 } 664 }
648 ] 665 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698