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

Issue 686268 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

incompatibility between crosperf and autotest

Project Member Reported by laszio@chromium.org, Jan 27 2017

Issue description

crosperf failed while afe_lock_machine.py tries to import something from autotest:

from dynamic_suite import frontend_wrappers

Traceback (most recent call last):
  File "/usr/local/google2/crostc/test_laszio/afe_lock_machine.py", line 122, in __init__
    from dynamic_suite import frontend_wrappers
  File "/usr/local/google2/crostc/chromeos/src/third_party/autotest/files/server/cros/dynamic_suite/frontend_wrappers.py", line 13, in <module>
    from autotest_lib.server import frontend
  File "/usr/local/google2/crostc/chromeos/src/third_party/autotest/files/server/frontend.py", line 128, in <module>
    class TKO(RpcClient):
  File "/usr/local/google2/crostc/chromeos/src/third_party/autotest/files/server/frontend.py", line 140, in TKO
    @metrics.SecondsTimerDecorator(
AttributeError: 'module' object has no attribute 'SecondsTimerDecorator'


The corresponding change in autotest:

commit 327e6fda10703a291d9ed569bdccea633013c0d8
Author: Allen Li <ayatane@chromium.org>
Date:   Tue Nov 22 13:45:41 2016 -0800

As a temporary workaround, I removed the the decorator in the local checkout.
 

Comment 1 by laszio@chromium.org, Jan 28 2017

Status: Fixed (was: Untriaged)
It turns out autotest on chrotomation2 incorrectly imports chromite in site-packages/, which is from 2015. Removing the outdated directory fixes the problem.

Comment 2 by laszio@chromium.org, Jan 31 2017

Owner: laszio@chromium.org

Comment 3 by nya@chromium.org, Feb 1 2017

I also hit this problem and
$ rm -rf third_party/autotest/files/site-packages
resolved the issue.

Sign in to add a comment