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

Unified Diff: scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure_during_status.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: rebase and retrain 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure_during_status.json
diff --git a/scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure.json b/scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure_during_status.json
similarity index 91%
rename from scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure.json
rename to scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure_during_status.json
index 78d78bcb83b0576312574fa8f21bc1e3dfbb1561..282087dd7bde8dda7249e7154dabce8cabc97a50 100644
--- a/scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure.json
+++ b/scripts/slave/recipe_modules/chromium_android/example.expected/tester_other_device_failure_during_status.json
@@ -270,21 +270,62 @@
},
{
"cmd": [
- "[SLAVE_BUILD]/src/build/android/buildbot/bb_device_status_check.py",
+ "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_recovery.py",
+ "--blacklist-file",
+ "[SLAVE_BUILD]/src/out/bad_devices.json",
+ "--known-devices-file",
+ "[CACHE]/known_android_devices",
+ "--adb-path",
+ "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
+ "-v"
+ ],
+ "env": {
+ "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account-goma-client.json",
+ "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s"
+ },
+ "name": "device_recovery"
+ },
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "[SLAVE_BUILD]/src/build/android/provision_devices.py",
"--adb-path",
"[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
"--blacklist-file",
"[SLAVE_BUILD]/src/out/bad_devices.json",
+ "--output-device-blacklist",
+ "/path/to/tmp/json",
+ "-t",
+ "Release"
+ ],
+ "env": {
+ "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account-goma-client.json",
+ "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s"
+ },
+ "name": "provision_devices"
+ },
+ {
+ "cmd": [
+ "[SLAVE_BUILD]/src/third_party/catapult/devil/devil/android/tools/device_status.py",
"--json-output",
"/path/to/tmp/json",
+ "--blacklist-file",
+ "[SLAVE_BUILD]/src/out/bad_devices.json",
"--known-devices-file",
- "[CACHE]/known_android_devices"
+ "[CACHE]/known_android_devices",
+ "--buildbot-path",
+ "/home/chrome-bot/.adb_device_info",
+ "--adb-path",
+ "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb",
+ "-v",
+ "--overwrite-known-devices-files"
],
"env": {
"GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account-goma-client.json",
"PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s"
},
- "name": "device_status_check",
+ "name": "device_status",
"~followup_annotations": [
"step returned non-zero exit code: 2",
"@@@STEP_LOG_LINE@json.output@[@@@",
@@ -475,7 +516,7 @@
},
{
"name": "$result",
- "reason": "Infra Failure: Step('device_status_check') returned 2",
+ "reason": "Infra Failure: Step('device_status') returned 2",
"status_code": 2
}
]

Powered by Google App Engine
This is Rietveld 408576698