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

Issue 26747004: Add option to restart usb on device status check before performing check. (Closed)

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

Description

Add option to restart usb on device status check before performing check. Restart USB has been known to bring back offline devices. Add option to device status check to restart usb ports before performing the check. This requires restart_usb to be installed (see https://code.google.com/p/chromium/issues/detail?id=305769). Prints warning if the utility has not been installed on the host. We will add this first to perf bots. Restarting usb has fixed device issues on these bots. If we find it works and does not have unseen consequences, we will deploy on all bots (i.e. make default of --restart-usb to True). BUG=299891 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229553

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix style nits. #

Patch Set 3 : Add restart-usb option for bots to pass to device status check. #

Total comments: 15

Patch Set 4 : Make lsusb fail step. #

Patch Set 5 : Make failed restart_usb.py fail on error. #

Total comments: 1

Patch Set 6 : Remove default flunk_on_failure=True. #

Patch Set 7 : Sleep after restarting usb before getting attached devices. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -4 lines) Patch
build/android/buildbot/bb_device_status_check.py View 1 2 3 4 5 6 3 chunks +49 lines, -1 line 0 comments Download
build/android/buildbot/bb_device_steps.py View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
build/android/buildbot/bb_utils.py View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
navabi
7 years, 2 months ago (2013-10-09 22:58:55 UTC) #1
tonyg
lgtm % style nits. Somebody who knows the clank bb setup should approve https://codereview.chromium.org/26747004/diff/1/build/android/buildbot/bb_device_status_check.py File ...
7 years, 2 months ago (2013-10-10 01:56:11 UTC) #2
navabi
https://codereview.chromium.org/26747004/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/26747004/diff/1/build/android/buildbot/bb_device_status_check.py#newcode17 build/android/buildbot/bb_device_status_check.py:17: import bb_utils On 2013/10/10 01:56:11, tonyg wrote: > nit: ...
7 years, 2 months ago (2013-10-10 02:10:20 UTC) #3
navabi
On 2013/10/10 02:10:20, navabi wrote: > https://codereview.chromium.org/26747004/diff/1/build/android/buildbot/bb_device_status_check.py > File build/android/buildbot/bb_device_status_check.py (right): > > https://codereview.chromium.org/26747004/diff/1/build/android/buildbot/bb_device_status_check.py#newcode17 > ...
7 years, 2 months ago (2013-10-11 17:35:10 UTC) #4
Isaac (away)
Hi Armand, some comments below. On first glance, I wasn't sure if you were sending ...
7 years, 2 months ago (2013-10-11 18:10:08 UTC) #5
navabi
https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py#newcode208 build/android/buildbot/bb_device_status_check.py:208: def RestartUsb(): On 2013/10/11 18:10:08, Isaac wrote: > I'd ...
7 years, 2 months ago (2013-10-11 18:39:01 UTC) #6
Isaac (away)
https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py#newcode208 build/android/buildbot/bb_device_status_check.py:208: def RestartUsb(): If you're not failing here, what's your ...
7 years, 2 months ago (2013-10-11 19:04:10 UTC) #7
Isaac (away)
Had an offline chat with Armand. I would prefer we not add more knobs that ...
7 years, 2 months ago (2013-10-11 19:39:07 UTC) #8
navabi
On 2013/10/11 19:39:07, Isaac wrote: > Had an offline chat with Armand. I would prefer ...
7 years, 2 months ago (2013-10-11 19:42:06 UTC) #9
navabi
7 years, 2 months ago (2013-10-11 19:48:04 UTC) #10
cmp
It sounds like the lsusb part of the discussion is addressed and will flunk on ...
7 years, 2 months ago (2013-10-11 20:13:20 UTC) #11
navabi
> What's our plan if it turns out we see it would not be possible ...
7 years, 2 months ago (2013-10-11 20:29:02 UTC) #12
navabi
https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/26747004/diff/9001/build/android/buildbot/bb_device_status_check.py#newcode208 build/android/buildbot/bb_device_status_check.py:208: def RestartUsb(): On 2013/10/11 19:04:10, Isaac wrote: > If ...
7 years, 2 months ago (2013-10-11 22:03:28 UTC) #13
navabi
PTAL. While I would rather not error on restart_usb.py failure, in the interest of not ...
7 years, 2 months ago (2013-10-15 01:40:10 UTC) #14
bulach
lgtm, looking forward to see the results, thanks!!
7 years, 2 months ago (2013-10-15 14:27:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/26747004/22001
7 years, 2 months ago (2013-10-17 04:07:57 UTC) #16
navabi
On 2013/10/17 04:07:57, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 2 months ago (2013-10-17 04:19:54 UTC) #17
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=30932
7 years, 2 months ago (2013-10-17 04:26:40 UTC) #18
Isaac (away)
I think you're getting presubmit failures too. but lgtm https://codereview.chromium.org/26747004/diff/22001/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/26747004/diff/22001/build/android/buildbot/bb_device_status_check.py#newcode232 build/android/buildbot/bb_device_status_check.py:232: ...
7 years, 2 months ago (2013-10-17 07:27:54 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/26747004/33001
7 years, 2 months ago (2013-10-17 22:08:20 UTC) #20
navabi
On 2013/10/17 22:08:20, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 2 months ago (2013-10-17 22:21:07 UTC) #21
Isaac (away)
On 2013/10/17 22:21:07, navabi wrote: > On 2013/10/17 22:08:20, I haz the power (commit-bot) wrote: ...
7 years, 2 months ago (2013-10-17 22:59:54 UTC) #22
navabi
On 2013/10/17 22:59:54, Isaac wrote: > > > > I have no presubmit errors locally. ...
7 years, 2 months ago (2013-10-17 23:13:04 UTC) #23
Isaac (away)
On 2013/10/17 23:13:04, navabi wrote: > On 2013/10/17 22:59:54, Isaac wrote: > > > > ...
7 years, 2 months ago (2013-10-17 23:40:04 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/26747004/33001
7 years, 2 months ago (2013-10-18 01:29:23 UTC) #25
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=31290
7 years, 2 months ago (2013-10-18 19:42:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/26747004/33001
7 years, 2 months ago (2013-10-19 01:42:54 UTC) #27
commit-bot: I haz the power
7 years, 2 months ago (2013-10-19 13:44:12 UTC) #28
Message was sent while issue was closed.
Change committed as 229553

Powered by Google App Engine
This is Rietveld 408576698