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

Side by Side Diff: scripts/slave/recipes/cronet.expected/cronet_try.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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 301 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
302 ], 302 ],
303 "env": { 303 "env": {
304 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 304 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
305 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 305 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
306 }, 306 },
307 "name": "authorize_adb_devices" 307 "name": "authorize_adb_devices"
308 }, 308 },
309 { 309 {
310 "cmd": [ 310 "cmd": [
311 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 311 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_r ecovery.py",
312 "--adb-path",
313 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
314 "--blacklist-file", 312 "--blacklist-file",
315 "[SLAVE_BUILD]/src/out/bad_devices.json", 313 "[SLAVE_BUILD]/src/out/bad_devices.json",
316 "--json-output",
317 "/path/to/tmp/json",
318 "--known-devices-file", 314 "--known-devices-file",
319 "[BUILD]/site_config/.known_devices" 315 "[BUILD]/site_config/.known_devices",
316 "-v"
320 ], 317 ],
321 "env": { 318 "env": {
322 "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",
323 "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"
324 }, 321 },
325 "name": "device_status_check", 322 "name": "device_recovery"
323 },
324 {
325 "cmd": [
326 "python",
327 "-u",
328 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
329 "--adb-path",
330 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
331 "--blacklist-file",
332 "[SLAVE_BUILD]/src/out/bad_devices.json",
333 "--output-device-blacklist",
334 "/path/to/tmp/json",
335 "-t",
336 "Debug"
337 ],
338 "env": {
339 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
340 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
341 },
342 "name": "provision_devices"
343 },
344 {
345 "cmd": [
346 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_s tatus.py",
347 "--json-output",
348 "/path/to/tmp/json",
349 "--blacklist-file",
350 "[SLAVE_BUILD]/src/out/bad_devices.json",
351 "--known-devices-file",
352 "[BUILD]/site_config/.known_devices",
353 "--buildbot-path",
354 "/home/chrome-bot/.adb_device_info",
355 "-v",
356 "--overwrite-known-devices-files"
357 ],
358 "env": {
359 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
360 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
361 },
362 "name": "device_status",
326 "~followup_annotations": [ 363 "~followup_annotations": [
327 "@@@STEP_TEXT@Online devices: 1@@@", 364 "@@@STEP_TEXT@Online devices: 1@@@",
328 "@@@STEP_LOG_LINE@json.output@[@@@", 365 "@@@STEP_LOG_LINE@json.output@[@@@",
329 "@@@STEP_LOG_LINE@json.output@ {@@@", 366 "@@@STEP_LOG_LINE@json.output@ {@@@",
330 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@", 367 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@",
331 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@", 368 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
332 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@", 369 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
333 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@", 370 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
334 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@", 371 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
335 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@", 372 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@", 452 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@",
416 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" , 453 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" ,
417 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@", 454 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@",
418 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@" 455 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@"
419 ] 456 ]
420 }, 457 },
421 { 458 {
422 "cmd": [ 459 "cmd": [
423 "python", 460 "python",
424 "-u", 461 "-u",
425 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
426 "--adb-path",
427 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
428 "--blacklist-file",
429 "[SLAVE_BUILD]/src/out/bad_devices.json",
430 "--output-device-blacklist",
431 "/path/to/tmp/json",
432 "-t",
433 "Debug"
434 ],
435 "env": {
436 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
437 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
438 },
439 "name": "provision_devices"
440 },
441 {
442 "cmd": [
443 "python",
444 "-u",
445 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py", 462 "RECIPE_PACKAGE_REPO[build]/scripts/slave/daemonizer.py",
446 "--action", 463 "--action",
447 "restart", 464 "restart",
448 "--pid-file-path", 465 "--pid-file-path",
449 "/tmp/device_monitor.pid", 466 "/tmp/device_monitor.pid",
450 "--", 467 "--",
451 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" , 468 "RECIPE_MODULE[build::chromium_android]/resources/spawn_device_monitor.py" ,
452 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 469 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
453 "[\"07a00ca4\"]", 470 "[\"07a00ca4\"]",
454 "--blacklist-file", 471 "--blacklist-file",
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@", 636 "@@@STEP_LOG_LINE@python.inline@ os.remove(report)@@@",
620 "@@@STEP_LOG_END@python.inline@@@" 637 "@@@STEP_LOG_END@python.inline@@@"
621 ] 638 ]
622 }, 639 },
623 { 640 {
624 "name": "$result", 641 "name": "$result",
625 "recipe_result": null, 642 "recipe_result": null,
626 "status_code": 0 643 "status_code": 0
627 } 644 }
628 ] 645 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698