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

Issue 38483002: Add sleep after restarting usb ports and before checking for devices. (Closed)

Created:
7 years, 2 months ago by navabi
Modified:
7 years, 1 month 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 sleep after restarting usb ports and before checking for devices. Need to wait a couple seconds after restarting usb before doing 'adb devices', or the devices do not show up. E.g. https://chromegw.corp.google.com/i/clank/builders/s3-sharded-official-perf- noflash-clankium/builds/3572/steps/device_status_check/logs/stdio BUG=299891 TBR=ilevy@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231310

Patch Set 1 #

Total comments: 7

Patch Set 2 : Poll for missing devices. #

Patch Set 3 : Rebase. #

Patch Set 4 : Rebase (KillAdb before RestartUsb). #

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

Messages

Total messages: 23 (0 generated)
navabi
7 years, 2 months ago (2013-10-23 22:54:23 UTC) #1
tonyg
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) I think we want adb wait-for-device instead of ...
7 years, 2 months ago (2013-10-24 01:10:59 UTC) #2
Isaac (use chromium)
lgtm but wait for tonyg https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) On 2013/10/24 01:10:59, ...
7 years, 2 months ago (2013-10-24 01:20:36 UTC) #3
tonyg
On 2013/10/24 01:20:36, Isaac (use chromium) wrote: > lgtm but wait for tonyg > > ...
7 years, 2 months ago (2013-10-24 01:22:52 UTC) #4
frankf
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) wait-for-device works for particular devices (using -s). Probably ...
7 years, 2 months ago (2013-10-24 01:30:12 UTC) #5
navabi
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) I talked to Frank about this, and I ...
7 years, 2 months ago (2013-10-24 02:42:34 UTC) #6
tonyg
On 2013/10/24 02:42:34, navabi wrote: > https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py > File build/android/buildbot/bb_device_status_check.py (right): > > https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 > ...
7 years, 2 months ago (2013-10-24 03:25:15 UTC) #7
navabi
> > What if we poll on expected devices with a timeout? Say 5s. We ...
7 years, 2 months ago (2013-10-24 04:09:05 UTC) #8
tonyg
On 2013/10/24 04:09:05, navabi wrote: > > > > What if we poll on expected ...
7 years, 2 months ago (2013-10-24 04:41:31 UTC) #9
bulach
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) On 2013/10/24 02:42:35, navabi wrote: > I talked ...
7 years, 2 months ago (2013-10-24 13:01:14 UTC) #10
bulach
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) On 2013/10/24 13:01:14, bulach wrote: > On 2013/10/24 ...
7 years, 2 months ago (2013-10-24 13:12:17 UTC) #11
navabi
https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py File build/android/buildbot/bb_device_status_check.py (right): https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 build/android/buildbot/bb_device_status_check.py:264: time.sleep(2) I don't think we want to stop as ...
7 years, 2 months ago (2013-10-24 18:56:23 UTC) #12
navabi
On 2013/10/24 18:56:23, navabi wrote: > https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py > File build/android/buildbot/bb_device_status_check.py (right): > > https://codereview.chromium.org/38483002/diff/1/build/android/buildbot/bb_device_status_check.py#newcode264 > ...
7 years, 1 month ago (2013-10-25 04:04:32 UTC) #13
bulach
lgtm, I'm CQing on your behalf to get the downstream bots going.. thanks!!
7 years, 1 month ago (2013-10-25 08:50:46 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/38483002/100001
7 years, 1 month ago (2013-10-25 08:54:03 UTC) #15
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=32539
7 years, 1 month ago (2013-10-25 09:18:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/38483002/100001
7 years, 1 month ago (2013-10-25 21:14:12 UTC) #17
commit-bot: I haz the power
Failed to apply patch for build/android/buildbot/bb_device_status_check.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-10-25 21:14:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/38483002/250001
7 years, 1 month ago (2013-10-26 00:57:02 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/38483002/250001
7 years, 1 month ago (2013-10-26 04:14:12 UTC) #20
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-10-26 04:23:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/38483002/250001
7 years, 1 month ago (2013-10-28 10:32:16 UTC) #22
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 11:33:08 UTC) #23
Message was sent while issue was closed.
Change committed as 231310

Powered by Google App Engine
This is Rietveld 408576698