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

Issue 284953002: If no battery information, do not try to split. (Closed)

Created:
6 years, 7 months ago by navabi
Modified:
6 years, 7 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

If no battery information, do not try to split. The x86 device can not dump battery information with 'adb dumbsys battery'. This is causing the x86 instrumentation bot to fail on device status check. This is a temporary fix until we determine how to check battery info on x86 devices. BUG=371719 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270516

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move inline logic for None battery output. #

Total comments: 2

Patch Set 3 : Add space for indentation. #

Total comments: 1

Patch Set 4 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M build/android/buildbot/bb_device_status_check.py View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
navabi
6 years, 7 months ago (2014-05-13 22:14:46 UTC) #1
luqui
https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode74 build/android/buildbot/bb_device_status_check.py:74: ' %s' % '\n '.join(battery.split('\n')) if battery else '', ...
6 years, 7 months ago (2014-05-13 22:25:43 UTC) #2
luqui
https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode74 build/android/buildbot/bb_device_status_check.py:74: ' %s' % '\n '.join(battery.split('\n')) if battery else '', ...
6 years, 7 months ago (2014-05-13 22:26:37 UTC) #3
navabi
https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode74 build/android/buildbot/bb_device_status_check.py:74: ' %s' % '\n '.join(battery.split('\n')) if battery else '', ...
6 years, 7 months ago (2014-05-13 22:40:30 UTC) #4
navabi
6 years, 7 months ago (2014-05-13 22:40:43 UTC) #5
luqui
lgtm % comment https://codereview.chromium.org/284953002/diff/20001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/20001/build/android/buildbot/bb_device_status_check.py#newcode69 build/android/buildbot/bb_device_status_check.py:69: return battery_info[0] + '\n '.join(battery_info[1:]) Missed ...
6 years, 7 months ago (2014-05-13 22:47:32 UTC) #6
navabi
Thanks Luke. https://codereview.chromium.org/284953002/diff/20001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/20001/build/android/buildbot/bb_device_status_check.py#newcode69 build/android/buildbot/bb_device_status_check.py:69: return battery_info[0] + '\n '.join(battery_info[1:]) On 2014/05/13 ...
6 years, 7 months ago (2014-05-13 22:50:43 UTC) #7
bulach
lgtm % nit, thanks! https://codereview.chromium.org/284953002/diff/40001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/284953002/diff/40001/build/android/buildbot/bb_device_status_check.py#newcode67 build/android/buildbot/bb_device_status_check.py:67: if battery: nit: perhaps like ...
6 years, 7 months ago (2014-05-14 10:10:48 UTC) #8
navabi
The CQ bit was checked by navabi@google.com
6 years, 7 months ago (2014-05-14 18:07:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/284953002/60001
6 years, 7 months ago (2014-05-14 18:08:20 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 21:02:00 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 21:16:49 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31499)
6 years, 7 months ago (2014-05-14 21:16:50 UTC) #13
navabi
The CQ bit was checked by navabi@google.com
6 years, 7 months ago (2014-05-14 21:46:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/284953002/60001
6 years, 7 months ago (2014-05-14 21:48:28 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 22:07:51 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 22:25:03 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31572)
6 years, 7 months ago (2014-05-14 22:25:03 UTC) #18
navabi
The CQ bit was checked by navabi@google.com
6 years, 7 months ago (2014-05-14 22:48:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/284953002/60001
6 years, 7 months ago (2014-05-14 22:49:33 UTC) #20
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 23:53:34 UTC) #21
Message was sent while issue was closed.
Change committed as 270516

Powered by Google App Engine
This is Rietveld 408576698