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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/coverage_builder_basic.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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 282 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
283 ], 283 ],
284 "env": { 284 "env": {
285 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 285 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
286 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 286 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
287 }, 287 },
288 "name": "authorize_adb_devices" 288 "name": "authorize_adb_devices"
289 }, 289 },
290 { 290 {
291 "cmd": [ 291 "cmd": [
292 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 292 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_r ecovery.py",
293 "--adb-path",
294 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
295 "--blacklist-file", 293 "--blacklist-file",
296 "[SLAVE_BUILD]/src/out/bad_devices.json", 294 "[SLAVE_BUILD]/src/out/bad_devices.json",
297 "--json-output",
298 "/path/to/tmp/json",
299 "--known-devices-file", 295 "--known-devices-file",
300 "[BUILD]/site_config/.known_devices" 296 "[BUILD]/site_config/.known_devices",
297 "-v"
301 ], 298 ],
302 "env": { 299 "env": {
303 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 300 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
304 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 301 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
305 }, 302 },
306 "name": "device_status_check", 303 "name": "device_recovery"
304 },
305 {
306 "cmd": [
307 "python",
308 "-u",
309 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
310 "--adb-path",
311 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
312 "--blacklist-file",
313 "[SLAVE_BUILD]/src/out/bad_devices.json",
314 "--output-device-blacklist",
315 "/path/to/tmp/json",
316 "-t",
317 "Release"
318 ],
319 "env": {
320 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
321 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
322 },
323 "name": "provision_devices"
324 },
325 {
326 "cmd": [
327 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_s tatus.py",
328 "--json-output",
329 "/path/to/tmp/json",
330 "--blacklist-file",
331 "[SLAVE_BUILD]/src/out/bad_devices.json",
332 "--known-devices-file",
333 "[BUILD]/site_config/.known_devices",
334 "--buildbot-path",
335 "/home/chrome-bot/.adb_device_info",
336 "-v",
337 "--overwrite-known-devices-files"
338 ],
339 "env": {
340 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
341 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
342 },
343 "name": "device_status",
307 "~followup_annotations": [ 344 "~followup_annotations": [
308 "@@@STEP_TEXT@Online devices: 1@@@", 345 "@@@STEP_TEXT@Online devices: 1@@@",
309 "@@@STEP_LOG_LINE@json.output@[@@@", 346 "@@@STEP_LOG_LINE@json.output@[@@@",
310 "@@@STEP_LOG_LINE@json.output@ {@@@", 347 "@@@STEP_LOG_LINE@json.output@ {@@@",
311 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@", 348 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@",
312 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@", 349 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
313 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@", 350 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
314 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@", 351 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
315 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@", 352 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
316 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@", 353 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"adb_status\": \"device \", @@@", 431 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"adb_status\": \"device \", @@@",
395 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"blacklisted\": true, @ @@", 432 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"blacklisted\": true, @ @@",
396 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@", 433 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"serial\": \"03e0363a00 3c6ad6\", @@@",
397 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" , 434 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@ \"usb_status\": true@@@" ,
398 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@", 435 "@@@STEP_LOG_LINE@03e0363a003c6ad6: blacklisted@}@@@",
399 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@" 436 "@@@STEP_LOG_END@03e0363a003c6ad6: blacklisted@@@"
400 ] 437 ]
401 }, 438 },
402 { 439 {
403 "cmd": [ 440 "cmd": [
404 "python", 441 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_r ecovery.py",
405 "-u",
406 "[SLAVE_BUILD]/src/build/android/provision_devices.py",
407 "--adb-path",
408 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
409 "--blacklist-file", 442 "--blacklist-file",
410 "[SLAVE_BUILD]/src/out/bad_devices.json", 443 "[SLAVE_BUILD]/src/out/bad_devices.json",
411 "--output-device-blacklist", 444 "--known-devices-file",
412 "/path/to/tmp/json", 445 "[BUILD]/site_config/.known_devices",
413 "-t", 446 "-v"
414 "Release"
415 ], 447 ],
416 "env": { 448 "env": {
417 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 449 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
418 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 450 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
419 }, 451 },
420 "name": "provision_devices" 452 "name": "device_recovery (2)"
421 }, 453 },
422 { 454 {
423 "cmd": [ 455 "cmd": [
424 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 456 "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_s tatus.py",
425 "--adb-path", 457 "--json-output",
426 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 458 "/path/to/tmp/json",
427 "--blacklist-file", 459 "--blacklist-file",
428 "[SLAVE_BUILD]/src/out/bad_devices.json", 460 "[SLAVE_BUILD]/src/out/bad_devices.json",
429 "--json-output",
430 "/path/to/tmp/json",
431 "--known-devices-file", 461 "--known-devices-file",
432 "[BUILD]/site_config/.known_devices" 462 "[BUILD]/site_config/.known_devices",
463 "--buildbot-path",
464 "/home/chrome-bot/.adb_device_info",
465 "-v",
466 "--overwrite-known-devices-files"
433 ], 467 ],
434 "env": { 468 "env": {
435 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 469 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
436 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 470 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
437 }, 471 },
438 "name": "device_status_check (2)", 472 "name": "device_status (2)",
439 "~followup_annotations": [ 473 "~followup_annotations": [
440 "@@@STEP_TEXT@Online devices: 1@@@", 474 "@@@STEP_TEXT@Online devices: 1@@@",
441 "@@@STEP_LOG_LINE@json.output@[@@@", 475 "@@@STEP_LOG_LINE@json.output@[@@@",
442 "@@@STEP_LOG_LINE@json.output@ {@@@", 476 "@@@STEP_LOG_LINE@json.output@ {@@@",
443 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@", 477 "@@@STEP_LOG_LINE@json.output@ \"adb_status\": \"device\", @@@",
444 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@", 478 "@@@STEP_LOG_LINE@json.output@ \"battery\": {@@@",
445 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@", 479 "@@@STEP_LOG_LINE@json.output@ \"AC powered\": \"false\", @@@",
446 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@", 480 "@@@STEP_LOG_LINE@json.output@ \"USB powered\": \"true\", @@@",
447 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@", 481 "@@@STEP_LOG_LINE@json.output@ \"Wireless powered\": \"false\", @@@",
448 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@", 482 "@@@STEP_LOG_LINE@json.output@ \"health\": \"2\", @@@",
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 "~followup_annotations": [ 780 "~followup_annotations": [
747 "@@@STEP_LINK@Coverage report@https://storage.cloud.google.com/chrome-code -coverage/java/coverage_builder/4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00/@@@" 781 "@@@STEP_LINK@Coverage report@https://storage.cloud.google.com/chrome-code -coverage/java/coverage_builder/4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00/@@@"
748 ] 782 ]
749 }, 783 },
750 { 784 {
751 "name": "$result", 785 "name": "$result",
752 "recipe_result": null, 786 "recipe_result": null,
753 "status_code": 0 787 "status_code": 0
754 } 788 }
755 ] 789 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698