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

Issue 638051 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Email to this user bounced
Closed: Aug 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Swarming tasks fail on exception when device is dead.

Project Member Reported by nicholaslin@google.com, Aug 16 2016

Issue description

Swarming tasks error on exception when the swarming bot is unable to find the device logcats in the TearDown step.

ex.
E  107.166s Main  Failed to locate logcat for device 06be45b2003b9b9f
Traceback (most recent call last):
  File "/b/swarm_slave/w/irPmdMY1/build/android/pylib/local/device/local_device_environment.py", line 192, in TearDown
    with open(m.output_file, 'r') as infile:
IOError: [Errno 2] No such file or directory: '/b/swarm_slave/w/it94Qg9Y/tmp9Z6kFp/06be45b2003b9b9f_20160812T210836'
E  108.084s Main  Unrecognized error occurred.
Traceback (most recent call last):
  File "/b/swarm_slave/w/irPmdMY1/build/android/test_runner.py", line 1004, in main
    return RunTestsCommand(args)
  File "/b/swarm_slave/w/irPmdMY1/build/android/test_runner.py", line 822, in RunTestsCommand
    return RunTestsInPlatformMode(args)
  File "/b/swarm_slave/w/irPmdMY1/build/android/test_runner.py", line 943, in RunTestsInPlatformMode
    all_raw_results, args.json_results_file)
  File "/b/swarm_slave/w/irPmdMY1/build/android/pylib/base/environment.py", line 33, in __exit__
    self.TearDown()
  File "/b/swarm_slave/w/irPmdMY1/build/android/pylib/local/device/local_device_environment.py", line 207, in TearDown
    [m.output_file for m in self._logcat_monitors])
  File "/b/swarm_slave/w/irPmdMY1/third_party/catapult/devil/devil/utils/file_utils.py", line 29, in MergeFiles
    raise e
IOError: [Errno 2] No such file or directory: '/b/swarm_slave/w/it94Qg9Y/tmp9Z6kFp/06be45b2003b9b9f_20160812T21083


 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 16 2016

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

commit ab7b497976d171ee4d7ceac09e994002de38407b
Author: nicholaslin <nicholaslin@google.com>
Date: Tue Aug 16 03:07:12 2016

Fix exceptions on logcats that can't be found.

Currently when the swarming bot cannot connect to a device to get logcats, it errors out with an exception.
Swarming tasks should continue to exectue with the remaining devices. Adding an if statement to check for the existence of device logcats to prevent
exceptions.

BUG= 638051 

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

[modify] https://crrev.com/ab7b497976d171ee4d7ceac09e994002de38407b/build/android/pylib/local/device/local_device_environment.py

Project Member

Comment 2 by sheriffbot@chromium.org, Aug 16 2016

Labels: Hotlist-Google
Status: Fixed (was: Started)

Sign in to add a comment