New issue
Advanced search Search tips

Issue 808231 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Autotest presubmit broken?

Project Member Reported by dgarr...@chromium.org, Feb 1 2018

Issue description

I made a one line no-effect change, and tried to upload it.

chromeos$repo upload .
Errors in PROJECT *chromiumos/third_party/autotest*!                                                     
    COMMIT b2127d30:
        Description:
            >Bogus test CL.
            >
            >BUG=None
            >TEST=None
            >
            >Change-Id: Ib72d6f04299122ee27b432be6ad56d1524c195b3
            >
            >
        Errors:
            * Hook script "./utils/run_pylint.py" failed with code 1:
              Traceback (most recent call last):
                File "./utils/run_pylint.py", line 38, in <module>
                  import logilab.common.modutils
              ImportError: No module named logilab.common.modutils
              
            * Hook script "./bin/test_lucifer" failed with code 1:
              ============================= test session starts ==============================
              platform linux2 -- Python 2.7.13, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
              rootdir: /usr/local/google/home/dgarrett/sand/chromeos/src/third_party/autotest/files/venv, inifile: pytest.ini
              plugins: cov-2.5.1, catchlog-1.2.2
              collected 26 items
              
              lucifer/autotest_unittest.py F........
              lucifer/eventlib_unittest.py .....
              lucifer/leasing_unittest.py ..........
              lucifer/loglib_unittest.py ..
              
              ---------- coverage: platform linux2, python 2.7.13-final-0 ----------
              Name                           Stmts   Miss Branch BrPart  Cover   Missing
              --------------------------------------------------------------------------
              lucifer/autotest.py               73     12      6      0    85%   66, 92-108, 149-154
              lucifer/autotest_unittest.py      32      1      0      0    97%   26
              lucifer/cmd/job_aborter.py        76     49     18      0    29%   54-68, 72-80, 96-105, 113-115, 123-125, 132, 141-143, 151-152, 165-166, 179-183, 187, 191, 195
              lucifer/cmd/job_reporter.py       63     39      2      0    37%   50-66, 74-84, 89-94, 103-105, 121-125, 130-133, 141-142, 146, 150
              lucifer/handlers.py              148    118     42      0    16%   40-44, 47-54, 58, 62, 65-76, 79-82, 85-95, 98-107, 110-116, 124-131, 140-143, 149-159, 163-176, 180, 187-190, 195-207, 212-217, 226-230, 241-245, 256-258
              lucifer/handoffs.py               42     28      8      0    28%   31-36, 46-56, 60-65, 70-79, 87-91
              lucifer/leasing.py                69      4      6      0    95%   139-142
              --------------------------------------------------------------------------
              TOTAL                            779    251     94      0    63%
              
              12 files skipped due to complete coverage.
              
              
              =========================== slowest 5 test durations ===========================
              0.16s call     lucifer/autotest_unittest.py::test_monkeypatch
              0.14s call     lucifer/leasing_unittest.py::test_obtain_lease_with_error_removes_files
              0.13s call     lucifer/leasing_unittest.py::test_Lease__expired
              0.12s call     lucifer/leasing_unittest.py::test_obtain_lease_succesfully_removes_file
              0.12s call     lucifer/leasing_unittest.py::test_Job_abort
              =================================== FAILURES ===================================
              _______________________________ test_monkeypatch _______________________________
              
                  @pytest.mark.slow
                  def test_monkeypatch():
                      """Test monkeypatch()."""
                      common_file = subprocess32.check_output(
                              [sys.executable, '-m',
              >                'lucifer.cmd.test.autotest_monkeypatcher'])
              
              lucifer/autotest_unittest.py:25: 
              _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
              
              popenargs = (['/usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-5e245727ed23dd962b0bb6d1c7a40f7d/bin/python', '-m', 'lucifer.cmd.test.autotest_monkeypatcher'],)
              kwargs = {}, timeout = None
              process = <subprocess32.Popen object at 0x7f9b2104be50>, output = ''
              unused_err = None, retcode = 1
              
                  def check_output(*popenargs, **kwargs):
                      r"""Run command with arguments and return its output as a byte string.
                  
                      If the exit code was non-zero it raises a CalledProcessError.  The
                      CalledProcessError object will have the return code in the returncode
                      attribute and output in the output attribute.
                  
                      The arguments are the same as for the Popen constructor.  Example:
                  
                      >>> check_output(["ls", "-l", "/dev/null"])
                      'crw-rw-rw- 1 root root 1, 3 Oct 18  2007 /dev/null\n'
                  
                      The stdout argument is not allowed as it is used internally.
                      To capture standard error in the result, use stderr=STDOUT.
                  
                      >>> check_output(["/bin/sh", "-c",
                      ...               "ls -l non_existent_file ; exit 0"],
                      ...              stderr=STDOUT)
                      'ls: non_existent_file: No such file or directory\n'
                      """
                      timeout = kwargs.pop('timeout', None)
                      if 'stdout' in kwargs:
                          raise ValueError('stdout argument not allowed, it will be overridden.')
                      process = Popen(stdout=PIPE, *popenargs, **kwargs)
                      try:
                          output, unused_err = process.communicate(timeout=timeout)
                      except TimeoutExpired:
                          process.kill()
                          output, unused_err = process.communicate()
                          raise TimeoutExpired(process.args, timeout, output=output)
                      retcode = process.poll()
                      if retcode:
              >           raise CalledProcessError(retcode, process.args, output=output)
              E           CalledProcessError: Command '['/usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-5e245727ed23dd962b0bb6d1c7a40f7d/bin/python', '-m', 'lucifer.cmd.test.autotest_monkeypatcher']' returned non-zero exit status 1
              
              ../../../../../../../.cache/cros_venv/venv-2.7.13-5e245727ed23dd962b0bb6d1c7a40f7d/local/lib/python2.7/site-packages/subprocess32.py:638: CalledProcessError
              ----------------------------- Captured stderr call -----------------------------
              autotest_monkeypatcher: 2018-02-01 15:44:56,019:INFO:autotest:_monkeypatch_body:86:Could not find chromite; adding system packages and retrying (This should only happen on Moblab)
              autotest_monkeypatcher: 2018-02-01 15:44:56,047:ERROR:autotest:_global_setup:63:Uncaught exception escaped Autotest setup
              Traceback (most recent call last):
                File "lucifer/autotest.py", line 59, in _global_setup
                  yield
                File "lucifer/autotest.py", line 50, in monkeypatch
                  _monkeypatch_body()
                File "lucifer/autotest.py", line 89, 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.28 seconds ======================
              

Preupload failed due to errors in project(s). HINTS:
- To disable some source style checks, and for other hints, see <checkout_dir>/src/repohooks/README
- To upload only current project, run 'repo upload .'

 
This is a Rodete installation, and I have successfully run setup_lab_tools.
Status: WontFix (was: Untriaged)
build_externals was required in the sandbox I was uploading from.

Sign in to add a comment