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

Issue 672533 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Tests are failing with No module named crash_test

Project Member Reported by son...@google.com, Dec 8 2016

Issue description

Wmatrix link: https://wmatrix.googleplex.com/failures/unfiltered?suites=usb_detect&builds=R57-9059.0.0&releases=57&platforms=chell

All tests are failing with "No module named crash_test" Error messages.

job page:
https://ubercautotest.corp.google.com/afe/#tab_id=view_job&object_id=89513948

From debug logs:

====================================
12/07 17:39:29.717 INFO |        server_job:0153| START	platform_ExternalUsbPeripherals.detect.unplug_plug	platform_ExternalUsbPeripherals.detect.unplug_plug	timestamp=1481161169	localtime=Dec 07 17:39:29	
12/07 17:39:29.846 INFO |        server_job:0153| 	FAIL	platform_ExternalUsbPeripherals.detect.unplug_plug	platform_ExternalUsbPeripherals.detect.unplug_plug	timestamp=1481161169	localtime=Dec 07 17:39:29	No module named crash_test
  Traceback (most recent call last):
    File "/usr/local/autotest/server/server_job.py", line 843, in group_func
      test.runtest(self, url, tag, args, dargs)
    File "/usr/local/autotest/server/test.py", line 289, in runtest
      *logging_args)
    File "/usr/local/autotest/client/common_lib/test.py", line 867, in runtest
      exec ('import %s' % modulename, local_namespace, global_namespace)
    File "<string>", line 1, in <module>
    File "/usr/local/autotest/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py", line 7, in <module>
      from autotest_lib.client.cros.crash_test import CrashTest
  ImportError: No module named crash_test
12/07 17:39:29.847 INFO |        server_job:0153| END ABORT	platform_ExternalUsbPeripherals.detect.unplug_plug	platform_ExternalUsbPeripherals.detect.unplug_plug	timestamp=1481161169	localtime=Dec 07 17:39:29	No module named crash_test
  Traceback (most recent call last):
    File "/usr/local/autotest/server/server_job.py", line 870, in _run_group
      result = function(*args, **dargs)
    File "/usr/local/autotest/server/server_job.py", line 843, in group_func
      test.runtest(self, url, tag, args, dargs)
    File "/usr/local/autotest/server/test.py", line 289, in runtest
      *logging_args)
    File "/usr/local/autotest/client/common_lib/test.py", line 867, in runtest
      exec ('import %s' % modulename, local_namespace, global_namespace)
    File "<string>", line 1, in <module>
    File "/usr/local/autotest/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py", line 7, in <module>
      from autotest_lib.client.cros.crash_test import CrashTest
  ImportError: No module named crash_test
12/07 17:39:29.847 ERROR|        server_job:0788| Exception escaped control file, job aborting:
Traceback (most recent call last):
  File "/usr/local/autotest/server/server_job.py", line 780, in run
    self._execute_code(server_control_file, namespace)
  File "/usr/local/autotest/server/server_job.py", line 1280, in _execute_code
    execfile(code_file, namespace, namespace)
  File "/usr/local/autotest/results/89513948-chromeos-test/control.srv", line 80, in <module>
    parallel_simple(run, machines)
  File "/usr/local/autotest/server/subcommand.py", line 93, in parallel_simple
    function(arg)
  File "/usr/local/autotest/results/89513948-chromeos-test/control.srv", line 78, in run
    usb_list=usb_list, usb_checks=usb_checks, tag="detect.unplug_plug")
  File "/usr/local/autotest/server/server_job.py", line 854, in run_test
    result, exc_info = self._run_group(testname, subdir, group_func)
  File "/usr/local/autotest/server/server_job.py", line 878, in _run_group
    raise error.JobError(name + ' failed\n' + traceback.format_exc())
JobError: platform_ExternalUsbPeripherals.detect.unplug_plug failed
Traceback (most recent call last):
  File "/usr/local/autotest/server/server_job.py", line 870, in _run_group
    result = function(*args, **dargs)
  File "/usr/local/autotest/server/server_job.py", line 843, in group_func
    test.runtest(self, url, tag, args, dargs)
  File "/usr/local/autotest/server/test.py", line 289, in runtest
    *logging_args)
  File "/usr/local/autotest/client/common_lib/test.py", line 867, in runtest
    exec ('import %s' % modulename, local_namespace, global_namespace)
  File "<string>", line 1, in <module>
  File "/usr/local/autotest/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py", line 7, in <module>
    from autotest_lib.client.cros.crash_test import CrashTest
ImportError: No module named crash_test

12/07 17:39:29.848 INFO |        server_job:0153| INFO	----	----	timestamp=1481161169	job_abort_reason=platform_ExternalUsbPeripherals.detect.unplug_plug failed Traceback (most recent call last):   File "/usr/local/autotest/server/server_job.py", line 870, in _run_group     result = function(*args, **dargs)   File "/usr/local/autotest/server/server_job.py", line 843, in group_func     test.runtest(self, url, tag, args, dargs)   File "/usr/local/autotest/server/test.py", line 289, in runtest     *logging_args)   File "/usr/local/autotest/client/common_lib/test.py", line 867, in runtest     exec ('import %s' % modulename, local_namespace, global_namespace)   File "<string>", line 1, in <module>   File "/usr/local/autotest/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py", line 7, in <module>     from autotest_lib.client.cros.crash_test import CrashTest ImportError: No module named crash_test 	localtime=Dec 07 17:39:29	platform_ExternalUsbPeripherals.detect.unplug_plug failed
  Traceback (most recent call last):
    File "/usr/local/autotest/server/server_job.py", line 870, in _run_group
      result = function(*args, **dargs)
    File "/usr/local/autotest/server/server_job.py", line 843, in group_func
      test.runtest(self, url, tag, args, dargs)
    File "/usr/local/autotest/server/test.py", line 289, in runtest
      *logging_args)
    File "/usr/local/autotest/client/common_lib/test.py", line 867, in runtest
      exec ('import %s' % modulename, local_namespace, global_namespace)
    File "<string>", line 1, in <module>
    File "/usr/local/autotest/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py", line 7, in <module>
      from autotest_lib.client.cros.crash_test import CrashTest
  ImportError: No module named crash_test
12/07 17:39:29.922 ERROR|   logging_manager:0626| {'builds': "{'cros-version': 'chell-release/R57-9059.0.0'}", 'job_started': 1481161075, 'hostname': 'chromeos1-row2-rack4-host5', 'status_version': 1, 'label': 'chell-release/R57-9059.0.0/usb_detect/platform_ExternalUsbPeripherals.detect.unplug_plug', 'parent_job_id': 89513750, 'build': 'chell-release/R57-9059.0.0', 'drone': 'chromeos-server70.hot.corp.google.com', 'user': 'chromeos-test', 'suite': 'usb_detect', 'experimental': 'False', 'job_queued': 1481157620}
12/07 17:39:29.923 ERROR|   logging_manager:0626| MACHINE NAME: chromeos1-row2-rack4-host5
========================================
 

Comment 1 by ka...@chromium.org, Dec 9 2016

I see no reason for this to happen. Some BVT level tests that import the same package are passing - https://wmatrix.googleplex.com/unfiltered?tests=logging_UserCrash,logging_CrashSender&days_back=7&releases=57


What we can do is to hard code the code paths, and do not import crash_test.
Project Member

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

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/c6b917e1e5301293479b8783d2830252522b0db3

commit c6b917e1e5301293479b8783d2830252522b0db3
Author: Kalin Stoyanov <kalin@chromium.org>
Date: Fri Dec 09 17:12:48 2016

Remove crash_test import

BUG= chromium:672533 
TEST=None

Change-Id: I4bd21c4160b35fb7e5a8d6adc0abf4e30a66225d
Reviewed-on: https://chromium-review.googlesource.com/418323
Commit-Ready: Kalin Stoyanov <kalin@chromium.org>
Tested-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Sridhar Sonti <sontis@google.com>
Reviewed-by: Ruchi Jahagirdar <rjahagir@chromium.org>

[modify] https://crrev.com/c6b917e1e5301293479b8783d2830252522b0db3/server/site_tests/platform_ExternalUsbPeripherals/platform_ExternalUsbPeripherals.py

Comment 3 by ka...@chromium.org, Dec 12 2016

Cc: ejcaruso@chromium.org snanda@chromium.org
Summary: Tests are failing with No module named crash_test (was: [kernel_usb] Tests are failing with No module named crash_test)
Actually I see the tests platform_KernelErrorPaths.* are failing same way.

Thsi seems applying to the server side tests that import crash_test.py
In this case:
from autotest_lib.client.cros.crash_test import CrashTest
Adding 'crash' to teh package name seems to resolve this i.e. autotest_lib.client.cros.crash.crash_test

(I'll revert the #2 change)



Comment 6 by ka...@chromium.org, Dec 13 2016

Owner: ka...@chromium.org
Status: Fixed (was: Untriaged)
Status: Verified (was: Fixed)

Sign in to add a comment