New issue
Advanced search Search tips

Issue 805053 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 787081
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

repo hooks: Cannot upload Autotest CL from outside the chroot

Project Member Reported by jorgelo@chromium.org, Jan 23 2018

Issue description

Looks like the chromite import fails outside of the chroot? Are we expected to not upload Autotest CLs outside of the chroot? That's a little strange.

$ repo upload --cbr .
...
              ----------------------------- Captured stderr call -----------------------------
              autotest_monkeypatcher: 2018-01-23 15:59:30,913:ERROR:autotest:_global_setup:60:Uncaught exception escaped Autotest setup
              Traceback (most recent call last):
                File "lucifer/autotest.py", line 56, in _global_setup
                  yield
                File "lucifer/autotest.py", line 47, in monkeypatch
                  _monkeypatch_body()
                File "lucifer/autotest.py", line 76, in _monkeypatch_body
                  importlib.import_module('chromite')
                File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
                  __import__(name)
              ImportError: No module named chromite
              ===================== 1 failed, 25 passed in 1.25 seconds ======================

 

Comment 1 by vapier@chromium.org, Jan 23 2018

Mergedinto: 787081
Status: Duplicate (was: Untriaged)
i'm going to dupe over to  issue 787081  because that is in general talking about autotest presubmits not being great, and specifically includes this failure in the initial comment

personally i've given up on autotest presubmits ever working and tend to use --no-verify in this one repo :/
utils/build_externals
I'm not sure I know what to do with utils/build_externals in this context.
Running utils/build_externals (.py?) in the autotest repo, outside the chroot, should solve this.
Thanks!

Sign in to add a comment