Project: datamanagement
Issue DM-2752: db 10.1+4 tests randomly fail with python egg installation error
The unit tests for DB seem to fail at random and always pass on a second build attempt. My hunch is that multiple tests are running in parallel all attempting to install the mysql module but I haven't investigated. {code} db: 10.1+4 ERROR (0 sec). *** error building product db. *** exit code = 2 *** log is in /home/build0/lsstsw/build/db/_build.log *** last few lines: ::::: [2015-05-15T19:12:35.557258Z] scons: done reading SConscript files. ::::: [2015-05-15T19:12:35.558276Z] scons: Building targets ... ::::: [2015-05-15T19:12:35.558409Z] scons: Nothing to be done for `python'. ::::: [2015-05-15T19:12:35.570007Z] makeVersionModule(["python/lsst/db/version.py"], []) ::::: [2015-05-15T19:12:35.686733Z] running tests/testDbLocal.py... running tests/testDbRemote.py... running tests/testDbPool.py... failed ::::: [2015-05-15T19:12:35.695011Z] passed ::::: [2015-05-15T19:12:35.698811Z] passed ::::: [2015-05-15T19:12:35.706360Z] 1 tests failed ::::: [2015-05-15T19:12:35.706703Z] scons: *** [checkTestStatus] Error 1 ::::: [2015-05-15T19:12:35.708443Z] scons: building terminated because of errors. {code} {code} [root@ip-192-168-123-151 .tests]# cat * tests/testDbLocal.py Traceback (most recent call last): File "tests/testDbLocal.py", line 53, in from lsst.db.db import Db, DbException File "/home/build0/lsstsw/build/db/python/lsst/db/db.py", line 49, in import MySQLdb File "build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in File "build/bdist.linux-x86_64/egg/_mysql.py", line 7, in File "build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__ File "/home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 937, in resource_filename File "/home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 1632, in get_resource_filename File "/home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 1662, in _extract_resource File "/home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 1003, in get_cache_path File "/home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py", line 983, in extraction_error pkg_resources.ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 17] File exists: '/home/build0/.python-eggs' The Python egg cache directory is currently set to: /home/build0/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. tests/testDbPool.py /home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py:1032: UserWarning: /home/build0/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). 05/15/2015 07:12:35 root WARNING: Required file with credentials '/home/build0/.lsst/dbAuth-test.txt' not found. tests/testDbRemote.py /home/build0/lsstsw/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg/pkg_resources.py:1032: UserWarning: /home/build0/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). 05/15/2015 07:12:35 root WARNING: Required file with credentials '/home/build0/.lsst/dbAuth-testRemote.txt' not found. {code}
Story points: 1