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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/example.expected/device_file_match.json

Issue 2103803002: adb: move known devices file under cache so it works with remote_run (attempt #2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
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 | Annotate | Revision Log
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "--adb-path", 262 "--adb-path",
263 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb" 263 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb"
264 ], 264 ],
265 "env": { 265 "env": {
266 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 266 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
267 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 267 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
268 }, 268 },
269 "name": "authorize_adb_devices" 269 "name": "authorize_adb_devices"
270 }, 270 },
271 { 271 {
272 "cmd": [],
273 "name": "fix_device_file_format"
274 },
275 {
276 "cmd": [
277 "python",
278 "-u",
279 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
280 "[BUILD]/site_config/.known_devices",
281 "/path/to/tmp/"
282 ],
283 "name": "fix_device_file_format.read_device_file",
284 "~followup_annotations": [
285 "@@@STEP_NEST_LEVEL@1@@@",
286 "@@@STEP_TEXT@file format is compatible@@@"
287 ]
288 },
289 {
290 "cmd": [ 272 "cmd": [
291 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 273 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
292 "--adb-path", 274 "--adb-path",
293 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 275 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
294 "--blacklist-file", 276 "--blacklist-file",
295 "[SLAVE_BUILD]/src/out/bad_devices.json", 277 "[SLAVE_BUILD]/src/out/bad_devices.json",
296 "--json-output", 278 "--json-output",
297 "/path/to/tmp/json", 279 "/path/to/tmp/json",
298 "--known-devices-file", 280 "--known-devices-file",
299 "[BUILD]/site_config/.known_devices" 281 "[CACHE]/known_android_devices"
300 ], 282 ],
301 "env": { 283 "env": {
302 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 284 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
303 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 285 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
304 }, 286 },
305 "name": "device_status_check", 287 "name": "device_status_check",
306 "~followup_annotations": [ 288 "~followup_annotations": [
307 "@@@STEP_TEXT@Online devices: 1@@@", 289 "@@@STEP_TEXT@Online devices: 1@@@",
308 "@@@STEP_LOG_LINE@json.output@[@@@", 290 "@@@STEP_LOG_LINE@json.output@[@@@",
309 "@@@STEP_LOG_LINE@json.output@ {@@@", 291 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 "-t", 394 "-t",
413 "Release" 395 "Release"
414 ], 396 ],
415 "env": { 397 "env": {
416 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 398 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
417 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 399 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
418 }, 400 },
419 "name": "provision_devices" 401 "name": "provision_devices"
420 }, 402 },
421 { 403 {
422 "cmd": [],
423 "name": "fix_device_file_format (2)"
424 },
425 {
426 "cmd": [
427 "python",
428 "-u",
429 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
430 "[BUILD]/site_config/.known_devices",
431 "/path/to/tmp/"
432 ],
433 "name": "fix_device_file_format.read_device_file (2)",
434 "~followup_annotations": [
435 "@@@STEP_NEST_LEVEL@1@@@",
436 "@@@STEP_TEXT@file format is compatible@@@"
437 ]
438 },
439 {
440 "cmd": [ 404 "cmd": [
441 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py", 405 "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
442 "--adb-path", 406 "--adb-path",
443 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", 407 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
444 "--blacklist-file", 408 "--blacklist-file",
445 "[SLAVE_BUILD]/src/out/bad_devices.json", 409 "[SLAVE_BUILD]/src/out/bad_devices.json",
446 "--json-output", 410 "--json-output",
447 "/path/to/tmp/json", 411 "/path/to/tmp/json",
448 "--known-devices-file", 412 "--known-devices-file",
449 "[BUILD]/site_config/.known_devices" 413 "[CACHE]/known_android_devices"
450 ], 414 ],
451 "env": { 415 "env": {
452 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 416 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
453 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 417 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
454 }, 418 },
455 "name": "device_status_check (2)", 419 "name": "device_status_check (2)",
456 "~followup_annotations": [ 420 "~followup_annotations": [
457 "@@@STEP_TEXT@Online devices: 1@@@", 421 "@@@STEP_TEXT@Online devices: 1@@@",
458 "@@@STEP_LOG_LINE@json.output@[@@@", 422 "@@@STEP_LOG_LINE@json.output@[@@@",
459 "@@@STEP_LOG_LINE@json.output@ {@@@", 423 "@@@STEP_LOG_LINE@json.output@ {@@@",
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 690 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
727 }, 691 },
728 "name": "stack_tool_for_asan" 692 "name": "stack_tool_for_asan"
729 }, 693 },
730 { 694 {
731 "name": "$result", 695 "name": "$result",
732 "recipe_result": null, 696 "recipe_result": null,
733 "status_code": 0 697 "status_code": 0
734 } 698 }
735 ] 699 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698