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

Side by Side Diff: scripts/slave/recipe_modules/cronet/example.expected/local_test.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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 316 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
317 ], 317 ],
318 "env": { 318 "env": {
319 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 319 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
320 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 320 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
321 }, 321 },
322 "name": "authorize_adb_devices" 322 "name": "authorize_adb_devices"
323 }, 323 },
324 { 324 {
325 "cmd": [ 325 "cmd": [
326 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 326 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_r ecovery.py",
327 "--adb-path",
328 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
329 "--blacklist-file", 327 "--blacklist-file",
330 "[SLAVE_BUILD]/src/out/bad_devices.json", 328 "[SLAVE_BUILD]/src/out/bad_devices.json",
331 "--json-output",
332 "/path/to/tmp/json",
333 "--known-devices-file", 329 "--known-devices-file",
334 "[BUILD]/site_config/.known_devices" 330 "[BUILD]/site_config/.known_devices",
331 "-v"
335 ], 332 ],
336 "env": { 333 "env": {
337 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 334 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
338 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 335 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
339 }, 336 },
340 "name": "device_status_check", 337 "name": "device_recovery"
338 },
339 {
340 "cmd": [
341 "python",
342 "-u",
343 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
344 "--adb-path",
345 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
346 "--blacklist-file",
347 "[SLAVE_BUILD]/src/out/bad_devices.json",
348 "--output-device-blacklist",
349 "/path/to/tmp/json",
350 "-t",
351 "Debug"
352 ],
353 "env": {
354 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
355 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
356 },
357 "name": "provision_devices"
358 },
359 {
360 "cmd": [
361 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_s tatus.py",
362 "--json-output",
363 "/path/to/tmp/json",
364 "--blacklist-file",
365 "[SLAVE_BUILD]/src/out/bad_devices.json",
366 "--known-devices-file",
367 "[BUILD]/site_config/.known_devices",
368 "--buildbot-path",
369 "/home/chrome-bot/.adb_device_info",
370 "-v",
371 "--overwrite-known-devices-files"
372 ],
373 "env": {
374 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
375 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
376 },
377 "name": "device_status",
341 "~followup_annotations": [ 378 "~followup_annotations": [
342 "@@@STEP_TEXT@Online devices: 1@@@", 379 "@@@STEP_TEXT@Online devices: 1@@@",
343 "@@@STEP_LOG_LINE@json.output@[@@@", 380 "@@@STEP_LOG_LINE@json.output@[@@@",
344 "@@@STEP_LOG_LINE@json.output@ {@@@", 381 "@@@STEP_LOG_LINE@json.output@ {@@@",
345 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@", 382 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@",
346 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@", 383 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
347 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@", 384 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
348 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@", 385 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
349 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@", 386 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
350 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@", 387 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@", 467 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@",
431 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" , 468 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" ,
432 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@", 469 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@",
433 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@" 470 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@"
434 ] 471 ]
435 }, 472 },
436 { 473 {
437 "cmd": [ 474 "cmd": [
438 "python", 475 "python",
439 "-u", 476 "-u",
440 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
441 "--adb-path",
442 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
443 "--blacklist-file",
444 "[SLAVE_BUILD]/src/out/bad_devices.json",
445 "--output-device-blacklist",
446 "/path/to/tmp/json",
447 "-t",
448 "Debug"
449 ],
450 "env": {
451 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
452 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
453 },
454 "name": "provision_devices"
455 },
456 {
457 "cmd": [
458 "python",
459 "-u",
460 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py", 477 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py",
461 "--action", 478 "--action",
462 "restart", 479 "restart",
463 "--pid-file-path", 480 "--pid-file-path",
464 "/tmp/device_monitor.pid", 481 "/tmp/device_monitor.pid",
465 "--", 482 "--",
466 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" , 483 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" ,
467 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 484 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
468 "[\"07a00ca4\"]", 485 "[\"07a00ca4\"]",
469 "--blacklist-file", 486 "--blacklist-file",
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 649 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
633 "@@@STEP_LOG_END@python.inline@@@" 650 "@@@STEP_LOG_END@python.inline@@@"
634 ] 651 ]
635 }, 652 },
636 { 653 {
637 "name": "$result", 654 "name": "$result",
638 "recipe_result": null, 655 "recipe_result": null,
639 "status_code": 0 656 "status_code": 0
640 } 657 }
641 ] 658 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698