cbuildbot/run_tests broken on TOT |
||
Issue description
On my workstation, run_tests is broken.
My environment is slightly different from our builders, but the most likly candidate is having a current version of depot_tools.
Same errors:
13:48:50: ERROR: ### LOG: scripts/sysmon/prod_metrics_unittest
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2375, in <module>
main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main
symlink=options.symlink)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 992, in create_environment
download=download,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 922, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 817, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /usr/local/google/ho...849330/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/scripts/create_venv.py", line 46, in <module>
main()
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/scripts/create_venv.py", line 35, in main
print(venv.ensure())
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/venvlib.py", line 100, in ensure
self._check_or_create()
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/venvlib.py", line 108, in _check_or_create
self._create()
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/venvlib.py", line 117, in _create
logfile=logfile)
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/venvlib.py", line 213, in _create_venv
_log_check_call(command, logfile=logfile, env=env)
File "/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/venv/cros_venv/venvlib.py", line 258, in wrapped_command
call_func(args, stdout=logfile, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'virtualenv', u'/usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330', u'-p', u'/usr/bin/python2.7', u'--extra-search-dir', u'/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/pip_packages', u'--setuptools', u'--clear']' returned non-zero exit status 1
Traceback (most recent call last):
File "scripts/sysmon/prod_metrics_unittest", line 94, in <module>
main()
File "scripts/sysmon/prod_metrics_unittest", line 32, in main
venvdir = _CreateVenv()
File "scripts/sysmon/prod_metrics_unittest", line 40, in _CreateVenv
_REQUIREMENTS,
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/local/google/home/dgarrett/sand/quick/chromite/../infra_virtualenv/bin/create_venv', '/usr/local/google/home/dgarrett/sand/quick/chromite/venv/requirements.txt']' returned non-zero exit status 1
13:48:50: ERROR: The following 13 tests failed:
lib/logdog_unittest
scripts/export_to_cloud_trace_unittest
scripts/export_to_gcloud_unittest
scripts/extract_gerrit_history_unittest
scripts/sysmon/git_metrics_unittest
scripts/sysmon/loop_unittest
scripts/sysmon/mainlib_unittest
scripts/sysmon/net_metrics_unittest
scripts/sysmon/osinfo_metrics_unittest
scripts/sysmon/proc_metrics_unittest
scripts/sysmon/prod_metrics_unittest
scripts/sysmon/puppet_metrics_unittest
scripts/virtualenv_wrapper_unittest
,
Apr 24 2018
>/usr/lib/python3/dist-packages/virtualenv.py Your virtualenv is for Python 3
,
Apr 24 2018
It was working last week, I can't see that having changed except via a general glinux update. My notes say that I installed "python-virtualenv", which could have been updated.
,
Apr 24 2018
What is the current package name to use?
,
Apr 24 2018
I think the Python 3 virtualenv is a red herring (for reasons, Python 3 virtualenv should work for setting up a Python 2 virtualenv). Can't reproduce it myself Can you try running the command manually? subprocess.CalledProcessError: Command '[u'virtualenv', u'/usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330', u'-p', u'/usr/bin/python2.7', u'--extra-search-dir', u'/usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/pip_packages', u'--setuptools', u'--clear']' returned non-zero exit status 1
,
Apr 24 2018
That worked. clean$virtualenv /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330 -p /usr/bin/python2.7 --extra-search-dir /usr/local/google/home/dgarrett/sand/quick/infra_virtualenv/pip_packages --setuptools --clear Running virtualenv with interpreter /usr/bin/python2.7 Deleting tree /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330/lib/python2.7 Not deleting /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330/bin New python executable in /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330/bin/python2.7 Not overwriting existing python script /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330/bin/python (you must use /usr/local/google/home/dgarrett/.cache/cros_venv/venv-2.7.13-cc967461694cd1b0fd3c11473d849330/bin/python2.7) Installing setuptools, pkg_resources, pip, wheel...done. And now run_tests works. I'm confused.
,
Apr 24 2018
Nothing left to do, I guess. |
||
►
Sign in to add a comment |
||
Comment 1 by ayatane@chromium.org
, Apr 24 2018Status: Assigned (was: Untriaged)