New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 619088 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Provision Devices should not fail if device is unresponsive.

Project Member Reported by mikec...@chromium.org, Jun 10 2016

Issue description

Provision devices currently can fail when a device is unresponsive and times out on an "adb shell getprop" call. In this case, provision devices should fail as expected (log the time out exception and potentially add to blacklist)

My guess is that this error is caused by the code used to get the reboot_timeout which isn't in a try block

def ProvisionDevice(device, blacklist, options):
  if options.reboot_timeout:
    reboot_timeout = options.reboot_timeout
  elif device.build_version_sdk >= version_codes.LOLLIPOP:
    reboot_timeout = _DEFAULT_TIMEOUTS.LOLLIPOP
  else:
    reboot_timeout = _DEFAULT_TIMEOUTS.PRE_LOLLIPOP

The call to device.build_version_sdk calls GetProp. If this times out, provision_devices.py will just fail.
 
Yeah, that's definitely what's going on. Good catch.
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 10 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/39419395ebe93d10dde4107415decb81ae851eb4

commit 39419395ebe93d10dde4107415decb81ae851eb4
Author: mikecase <mikecase@chromium.org>
Date: Fri Jun 10 21:20:02 2016

[Android] Fix provision devices failure getting timeout.

Fixing provision devices script failing if timeout is not manually
set and one of the devices is unresponsive.

BUG= 619088 

Review-Url: https://codereview.chromium.org/2059863002
Cr-Commit-Position: refs/heads/master@{#399270}

[modify] https://crrev.com/39419395ebe93d10dde4107415decb81ae851eb4/build/android/provision_devices.py

Status: Fixed (was: Untriaged)
Should be fixed now.
Project Member

Comment 4 by bugdroid1@chromium.org, Jun 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/39419395ebe93d10dde4107415decb81ae851eb4

commit 39419395ebe93d10dde4107415decb81ae851eb4
Author: mikecase <mikecase@chromium.org>
Date: Fri Jun 10 21:20:02 2016

[Android] Fix provision devices failure getting timeout.

Fixing provision devices script failing if timeout is not manually
set and one of the devices is unresponsive.

BUG= 619088 

Review-Url: https://codereview.chromium.org/2059863002
Cr-Commit-Position: refs/heads/master@{#399270}

[modify] https://crrev.com/39419395ebe93d10dde4107415decb81ae851eb4/build/android/provision_devices.py

Sign in to add a comment