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

Unified Diff: build/android/buildbot/bb_device_status_check.py

Issue 651843007: Intelligently handle a device with critically low battery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/bb_device_status_check.py
diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py
index 6d736a146baa7a26e398b7f81ec526785a4deff5..817e5d9add79fd07370a8280c699f84be6dbd008 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -377,10 +377,15 @@ def main():
'unique_builds': unique_builds,
}))
- if False in fail_step_lst:
- # TODO(navabi): Build fails on device status check step if there exists any
- # devices with critically low battery. Remove those devices from testing,
- # allowing build to continue with good devices.
+ index = 0
+ num_failed_devs = 0
+ for fail_status in fail_step_lst:
+ if not fail_status:
+ device_blacklist.ExtendBlacklist([str(devices[index])])
jbudorick 2014/10/23 01:19:32 We may want to do something like what provision_de
navabi 2014/10/23 01:27:27 I'm actually not sure I like what provision_device
jbudorick 2014/10/23 14:05:27 I don't like it, but I can understand why the perf
+ num_failed_devs = num_failed_devs + 1
jbudorick 2014/10/23 01:19:31 nit: num_failed_devs += 1
navabi 2014/10/23 01:27:27 Done.
+ index = index + 1
jbudorick 2014/10/23 01:19:32 nit: index += 1
navabi 2014/10/23 01:27:27 Done.
+
+ if num_failed_devs == len(devices):
return 2
if not devices:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698