pre-requisite: ``` arc patch D582 ``` Then error: ``` $ tox GLOB sdist-make: /home/tony/work/inria/repo/swh/swh-environment/swh-vault/setup.py flake8 installed: flake8==3.6.0,mccabe==0.6.1,pkg-resources==0.0.0,pycodestyle==2.4.0,pyflakes==2.0.0,swh.archiver==0.0.4.post13,swh.core==0.0.44,swh.deposit==0.0.63.post12,swh.docs==0.0.0.post80,swh.indexer==0.0.52.post27,swh.journal==0.0.4.post8,swh.lister==0.0.18.post1,swh.loader.core==0.0.35,swh.loader.debian==0.0.11.post12,swh.loader.dir==0.0.32.post16,swh.loader.git==0.0.43.post5,swh.loader.mercurial==0.0.14.post4,swh.loader.pypi==0.0.4.post4,swh.loader.svn==0.0.42.post5,swh.loader.tar==0.0.35.post18,swh.mirror.forge==0.0.5.post14,swh.model==0.0.28,swh.objstorage==0.0.27.post5,swh.scheduler==0.0.32.post4,swh.storage==0.0.108.post1,swh.vault==0.0.20.post19,swh.web==0.0.161 flake8 runtests: PYTHONHASHSEED='213586717' flake8 runtests: commands[0] | /home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/flake8/bin/python -m flake8 ./swh/vault/cookers/base.py:93:9: F901 'raise NotImplemented' should be 'raise NotImplementedError' ./swh/vault/cookers/base.py:101:9: F901 'raise NotImplemented' should be 'raise NotImplementedError' ./swh/vault/cookers/base.py:121:9: F841 local variable 'e' is assigned to but never used ERROR: InvocationError: '/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/flake8/bin/python -m flake8' py3 inst-nodeps: /home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/dist/swh.vault-0.0.20.post19.zip py3 installed: aiohttp==3.4.4,amqp==2.3.2,arrow==0.12.1,async-timeout==3.0.1,atomicwrites==1.2.1,attrs==18.2.0,billiard==3.5.0.4,celery==4.2.1,certifi==2018.10.15,cffi==1.11.5,chardet==3.0.4,Click==7.0,coverage==4.5.1,daiquiri==1.5.0,dulwich==0.19.6,elasticsearch==6.3.1,extras==1.0.0,fastimport==0.9.8,fixtures==3.0.0,Flask==1.0.2,idna==2.7,idna-ssl==1.1.0,ItsDangerous==1.0.0,Jinja2==2.10,kombu==4.2.1,linecache2==1.0.0,MarkupSafe==1.0,more-itertools==4.3.0,msgpack-python==0.5.6,multidict==4.4.2,pbr==5.1.0,pifpaf==2.1.2,pkg-resources==0.0.0,pluggy==0.8.0,psutil==5.4.7,psycopg2==2.7.5,py==1.7.0,pycparser==2.19,pytest==3.9.2,pytest-cov==2.6.0,python-dateutil==2.7.3,python-mimeparse==1.6.0,pytz==2018.5,PyYAML==3.13,requests==2.20.0,retrying==1.3.3,six==1.11.0,swh.core==0.0.44,swh.loader.core==0.0.35,swh.loader.git==0.0.43,swh.model==0.0.27,swh.objstorage==0.0.27,swh.scheduler==0.0.32,swh.storage==0.0.108,swh.vault==0.0.20.post19,systemd-python==234,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.24,vcversioner==2.16.0.0,vine==1.1.4,Werkzeug==0.14.1,xattr==0.9.6,yarl==1.2.6 py3 runtests: PYTHONHASHSEED='213586717' py3 runtests: commands[0] | pifpaf run postgresql -- pytest --cov=swh --cov-branch ============================= test session starts ============================== platform linux -- Python 3.6.6, pytest-3.9.2, py-1.7.0, pluggy-0.8.0 rootdir: /home/tony/work/inria/repo/swh/swh-environment/swh-vault, inifile: pytest.ini plugins: cov-2.6.0, celery-4.2.1 collected 36 items swh/vault/tests/test_backend.py .FF.........F... [ 44%] swh/vault/tests/test_cache.py ..... [ 58%] swh/vault/tests/test_cookers.py FFFFEEEEEEEEE [ 91%] swh/vault/tests/test_cookers_base.py ... [100%] ==================================== ERRORS ==================================== ________ ERROR at teardown of TestDirectoryCooker.test_directory_simple ________ tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: raise value.with_traceback(tb) > raise value .tox/py3/lib/python3.6/site-packages/six.py:693: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/six.py:693: in reraise raise value .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:195: in tearDownClass context.__exit__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:124: in __exit__ db_destroy(self.dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:72: in db_destroy pg_dropdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError --------------------------- Captured stderr teardown --------------------------- dropdb: database removal failed: ERROR: database "softwareheritage-test-vault" is being accessed by other users DETAIL: There are 3 other sessions using the database. ____ ERROR at setup of TestRevisionGitfastCooker.test_revision_bogus_perms _____ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: cls = @classmethod def setUpClass(cls): cls.dbname = cls.TEST_DB_NAME # XXX to kill? dump_files = cls.TEST_DB_DUMP if isinstance(dump_files, str): dump_files = [dump_files] all_dump_files = [] for files in dump_files: all_dump_files.extend( sorted(glob.glob(files), key=sortkey)) all_dump_files = [(x, DB_DUMP_TYPES[os.path.splitext(x)[1]]) for x in all_dump_files] cls.add_db(name=cls.TEST_DB_NAME, dumps=all_dump_files) > super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError ---------------------------- Captured stderr setup ----------------------------- createdb: database creation failed: ERROR: database "softwareheritage-test-vault" already exists dropdb: database removal failed: ERROR: database "softwareheritage-test-vault" is being accessed by other users DETAIL: There are 3 other sessions using the database. __ ERROR at setup of TestRevisionGitfastCooker.test_revision_filtered_objects __ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError ____ ERROR at setup of TestRevisionGitfastCooker.test_revision_null_fields _____ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError ___ ERROR at setup of TestRevisionGitfastCooker.test_revision_revision_data ____ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError _______ ERROR at setup of TestRevisionGitfastCooker.test_revision_simple _______ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError ____ ERROR at setup of TestRevisionGitfastCooker.test_revision_triple_merge ____ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError ERROR at setup of TestRevisionGitfastCooker.test_revision_two_double_fork_merge dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError _____ ERROR at setup of TestRevisionGitfastCooker.test_revision_two_roots ______ dbname = 'softwareheritage-test-vault' dumps = [('/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/10-sw.../swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/70-swh-triggers.sql', 'psql'), ...] def db_create(dbname, dumps=None): """create the test DB and load the test data dumps into it dumps is an iterable of couples (dump_file, dump_type). context: setUpClass """ try: > pg_createdb(dbname) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dbname = 'softwareheritage-test-vault' def pg_createdb(dbname): > subprocess.check_call(['createdb', dbname]) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['createdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['createdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['createdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError During handling of the above exception, another exception occurred: tp = , value = None, tb = None def reraise(tp, value, tb=None): try: if value is None: value = tp() if value.__traceback__ is not tb: > raise value.with_traceback(tb) .tox/py3/lib/python3.6/site-packages/six.py:692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:274: in setUpClass super().setUpClass() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:188: in setUpClass cls._DB_LIST[name].__enter__() .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:120: in __enter__ dumps=self.dumps) .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:59: in db_create pg_dropdb(dbname) # the db already existed .tox/py3/lib/python3.6/site-packages/swh/core/tests/db_testing.py:41: in pg_dropdb subprocess.check_call(['dropdb', dbname]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['dropdb', 'softwareheritage-test-vault'],), kwargs = {} retcode = 1, cmd = ['dropdb', 'softwareheritage-test-vault'] def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the call function. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['dropdb', 'softwareheritage-test-vault']' returned non-zero exit status 1. /usr/lib/python3.6/subprocess.py:291: CalledProcessError =================================== FAILURES =================================== _____________________ TestBackend.test_cache_expire_oldest _____________________ self = def test_cache_expire_oldest(self): r = range(1, 10) inserted = {} for i in r: sticky = (i == 5) content = b'content%s' % str(i).encode() > obj_id, content = self.fake_cook(TEST_TYPE, content, sticky) swh/vault/tests/test_backend.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ swh/vault/tests/test_backend.py:40: in fake_cook content, obj_id = hash_content(result_content) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ content = b'content1' def hash_content(content): """Hash the content's id (sha1). Args: content (bytes): Content to hash Returns: The tuple (content, content's id as bytes) """ > hashes = hashutil.MultiHash(content, hash_names=['sha1']).digest() E TypeError: __init__() got multiple values for argument 'hash_names' swh/vault/tests/vault_testing.py:72: TypeError _____________________ TestBackend.test_cache_expire_until ______________________ self = def test_cache_expire_until(self): r = range(1, 10) inserted = {} for i in r: sticky = (i == 5) content = b'content%s' % str(i).encode() > obj_id, content = self.fake_cook(TEST_TYPE, content, sticky) swh/vault/tests/test_backend.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ swh/vault/tests/test_backend.py:40: in fake_cook content, obj_id = hash_content(result_content) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ content = b'content1' def hash_content(content): """Hash the content's id (sha1). Args: content (bytes): Content to hash Returns: The tuple (content, content's id as bytes) """ > hashes = hashutil.MultiHash(content, hash_names=['sha1']).digest() E TypeError: __init__() got multiple values for argument 'hash_names' swh/vault/tests/vault_testing.py:72: TypeError ____________________________ TestBackend.test_fetch ____________________________ self = def test_fetch(self): self.assertEqual(self.vault_backend.fetch(TEST_TYPE, TEST_OBJ_ID), None) > obj_id, content = self.fake_cook(TEST_TYPE, b'content') swh/vault/tests/test_backend.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ swh/vault/tests/test_backend.py:40: in fake_cook content, obj_id = hash_content(result_content) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ content = b'content' def hash_content(content): """Hash the content's id (sha1). Args: content (bytes): Content to hash Returns: The tuple (content, content's id as bytes) """ > hashes = hashutil.MultiHash(content, hash_names=['sha1']).digest() E TypeError: __init__() got multiple values for argument 'hash_names' swh/vault/tests/vault_testing.py:72: TypeError ________________ TestDirectoryCooker.test_directory_bogus_perms ________________ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( > min_pool_conns, max_pool_conns, db ) .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {} threading = def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the threading lock.""" import threading AbstractConnectionPool.__init__( > self, minconn, maxconn, *args, **kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {}, i = 0 def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. """ self.minconn = int(minconn) self.maxconn = int(maxconn) self.closed = False self._args = args self._kwargs = kwargs self._pool = [] self._used = {} self._rused = {} # id(conn) -> key map self._keys = 0 for i in range(self.minconn): > self._connect() .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = None def _connect(self, key=None): """Create a new connection and assign it to 'key' if not None.""" > conn = psycopg2.connect(*self._args, **self._kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'service=swh-dev', connection_factory = None, cursor_factory = None kwargs = {}, kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') if dsn is None and not kwargs: raise TypeError('missing dsn and no parameters') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/psycopg2/__init__.py:130: OperationalError During handling of the above exception, another exception occurred: self = def setUp(self): super().setUp() > self.loader = GitLoader() swh/vault/tests/test_cookers.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/loader/git/loader.py:26: in __init__ super().__init__(logging_class='swh.loader.git.Loader', config=config) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:931: in __init__ super().__init__(logging_class=logging_class, config=None) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:151: in __init__ self.storage = get_storage(**self.config['storage']) .tox/py3/lib/python3.6/site-packages/swh/storage/__init__.py:36: in get_storage return Storage(**args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( min_pool_conns, max_pool_conns, db ) self._db = None except psycopg2.OperationalError as e: > raise StorageDBError(e) E swh.storage.exc.StorageDBError: An unexpected error occurred in the backend: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:56: StorageDBError ---------------------------- Captured stderr setup ----------------------------- psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/40-swh-func.sql:747: NOTICE: type reference snapshot.id%TYPE converted to sha1_git psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/40-swh-func.sql:771: NOTICE: type reference snapshot.id%TYPE converted to sha1_git psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/40-swh-func.sql:786: NOTICE: type reference snapshot.id%TYPE converted to sha1_git psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/swh/storage/sql/40-swh-func.sql:798: NOTICE: type reference snapshot.id%TYPE converted to sha1_git psql:/home/tony/work/inria/repo/swh/swh-environment/swh-vault/swh/vault/sql/30-swh-schema.sql:6: NOTICE: relation "dbversion" already exists, skipping _____________ TestDirectoryCooker.test_directory_filtered_objects ______________ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( > min_pool_conns, max_pool_conns, db ) .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {} threading = def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the threading lock.""" import threading AbstractConnectionPool.__init__( > self, minconn, maxconn, *args, **kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {}, i = 0 def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. """ self.minconn = int(minconn) self.maxconn = int(maxconn) self.closed = False self._args = args self._kwargs = kwargs self._pool = [] self._used = {} self._rused = {} # id(conn) -> key map self._keys = 0 for i in range(self.minconn): > self._connect() .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = None def _connect(self, key=None): """Create a new connection and assign it to 'key' if not None.""" > conn = psycopg2.connect(*self._args, **self._kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'service=swh-dev', connection_factory = None, cursor_factory = None kwargs = {}, kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') if dsn is None and not kwargs: raise TypeError('missing dsn and no parameters') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/psycopg2/__init__.py:130: OperationalError During handling of the above exception, another exception occurred: self = def setUp(self): super().setUp() > self.loader = GitLoader() swh/vault/tests/test_cookers.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/loader/git/loader.py:26: in __init__ super().__init__(logging_class='swh.loader.git.Loader', config=config) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:931: in __init__ super().__init__(logging_class=logging_class, config=None) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:151: in __init__ self.storage = get_storage(**self.config['storage']) .tox/py3/lib/python3.6/site-packages/swh/storage/__init__.py:36: in get_storage return Storage(**args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( min_pool_conns, max_pool_conns, db ) self._db = None except psycopg2.OperationalError as e: > raise StorageDBError(e) E swh.storage.exc.StorageDBError: An unexpected error occurred in the backend: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:56: StorageDBError _______________ TestDirectoryCooker.test_directory_revision_data _______________ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( > min_pool_conns, max_pool_conns, db ) .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {} threading = def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the threading lock.""" import threading AbstractConnectionPool.__init__( > self, minconn, maxconn, *args, **kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {}, i = 0 def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. """ self.minconn = int(minconn) self.maxconn = int(maxconn) self.closed = False self._args = args self._kwargs = kwargs self._pool = [] self._used = {} self._rused = {} # id(conn) -> key map self._keys = 0 for i in range(self.minconn): > self._connect() .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = None def _connect(self, key=None): """Create a new connection and assign it to 'key' if not None.""" > conn = psycopg2.connect(*self._args, **self._kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'service=swh-dev', connection_factory = None, cursor_factory = None kwargs = {}, kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') if dsn is None and not kwargs: raise TypeError('missing dsn and no parameters') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/psycopg2/__init__.py:130: OperationalError During handling of the above exception, another exception occurred: self = def setUp(self): super().setUp() > self.loader = GitLoader() swh/vault/tests/test_cookers.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/loader/git/loader.py:26: in __init__ super().__init__(logging_class='swh.loader.git.Loader', config=config) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:931: in __init__ super().__init__(logging_class=logging_class, config=None) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:151: in __init__ self.storage = get_storage(**self.config['storage']) .tox/py3/lib/python3.6/site-packages/swh/storage/__init__.py:36: in get_storage return Storage(**args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( min_pool_conns, max_pool_conns, db ) self._db = None except psycopg2.OperationalError as e: > raise StorageDBError(e) E swh.storage.exc.StorageDBError: An unexpected error occurred in the backend: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:56: StorageDBError __________________ TestDirectoryCooker.test_directory_simple ___________________ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( > min_pool_conns, max_pool_conns, db ) .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {} threading = def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the threading lock.""" import threading AbstractConnectionPool.__init__( > self, minconn, maxconn, *args, **kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = minconn = 1, maxconn = 10, args = ('service=swh-dev',), kwargs = {}, i = 0 def __init__(self, minconn, maxconn, *args, **kwargs): """Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. """ self.minconn = int(minconn) self.maxconn = int(maxconn) self.closed = False self._args = args self._kwargs = kwargs self._pool = [] self._used = {} self._rused = {} # id(conn) -> key map self._keys = 0 for i in range(self.minconn): > self._connect() .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = key = None def _connect(self, key=None): """Create a new connection and assign it to 'key' if not None.""" > conn = psycopg2.connect(*self._args, **self._kwargs) .tox/py3/lib/python3.6/site-packages/psycopg2/pool.py:62: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dsn = 'service=swh-dev', connection_factory = None, cursor_factory = None kwargs = {}, kwasync = {} def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): """ Create a new database connection. The connection parameters can be specified as a string: conn = psycopg2.connect("dbname=test user=postgres password=secret") or using a set of keyword arguments: conn = psycopg2.connect(database="test", user="postgres", password="secret") Or as a mix of both. The basic connection parameters are: - *dbname*: the database name - *database*: the database name (only as keyword argument) - *user*: user name used to authenticate - *password*: password used to authenticate - *host*: database host address (defaults to UNIX socket if not provided) - *port*: connection port number (defaults to 5432 if not provided) Using the *connection_factory* parameter a different class or connections factory can be specified. It should be a callable object taking a dsn argument. Using the *cursor_factory* parameter, a new default cursor factory will be used by cursor(). Using *async*=True an asynchronous connection will be created. *async_* is a valid alias (for Python versions where ``async`` is a keyword). Any other keyword parameter will be passed to the underlying client library: the list of supported parameters depends on the library version. """ kwasync = {} if 'async' in kwargs: kwasync['async'] = kwargs.pop('async') if 'async_' in kwargs: kwasync['async_'] = kwargs.pop('async_') if dsn is None and not kwargs: raise TypeError('missing dsn and no parameters') dsn = _ext.make_dsn(dsn, **kwargs) > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) E psycopg2.OperationalError: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/psycopg2/__init__.py:130: OperationalError During handling of the above exception, another exception occurred: self = def setUp(self): super().setUp() > self.loader = GitLoader() swh/vault/tests/test_cookers.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.6/site-packages/swh/loader/git/loader.py:26: in __init__ super().__init__(logging_class='swh.loader.git.Loader', config=config) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:931: in __init__ super().__init__(logging_class=logging_class, config=None) .tox/py3/lib/python3.6/site-packages/swh/loader/core/loader.py:151: in __init__ self.storage = get_storage(**self.config['storage']) .tox/py3/lib/python3.6/site-packages/swh/storage/__init__.py:36: in get_storage return Storage(**args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = db = 'service=swh-dev' objstorage = {'args': {'root': '/home/storage/swh-storage/', 'slicing': '0:1/1:5'}, 'cls': 'pathslicing'} min_pool_conns = 1, max_pool_conns = 10 def __init__(self, db, objstorage, min_pool_conns=1, max_pool_conns=10): """ Args: db_conn: either a libpq connection string, or a psycopg2 connection obj_root: path to the root of the object storage """ try: if isinstance(db, psycopg2.extensions.connection): self._pool = None self._db = Db(db) else: self._pool = psycopg2.pool.ThreadedConnectionPool( min_pool_conns, max_pool_conns, db ) self._db = None except psycopg2.OperationalError as e: > raise StorageDBError(e) E swh.storage.exc.StorageDBError: An unexpected error occurred in the backend: could not connect to server: No such file or directory E Is the server running locally and accepting E connections on Unix domain socket "/tmp/tmphnjj1i5m/.s.PGSQL.5432"? .tox/py3/lib/python3.6/site-packages/swh/storage/storage.py:56: StorageDBError ----------- coverage: platform linux, python 3.6.6-final-0 ----------- Name Stmts Miss Branch BrPart Cover ------------------------------------------------------------------------- swh/__init__.py 1 0 0 0 100% swh/vault/__init__.py 5 4 2 0 14% swh/vault/api/__init__.py 0 0 0 0 100% swh/vault/api/client.py 33 17 0 0 48% swh/vault/api/server.py 107 107 22 0 0% swh/vault/backend.py 217 49 56 8 71% swh/vault/cache.py 27 6 0 0 78% swh/vault/cookers/__init__.py 5 0 0 0 100% swh/vault/cookers/base.py 56 3 6 1 94% swh/vault/cookers/directory.py 15 6 0 0 60% swh/vault/cookers/revision_flat.py 20 10 2 0 45% swh/vault/cookers/revision_gitfast.py 96 73 38 0 17% swh/vault/cooking_tasks.py 12 4 0 0 67% swh/vault/tests/__init__.py 3 0 0 0 100% swh/vault/tests/test_backend.py 231 28 20 2 86% swh/vault/tests/test_cache.py 44 0 0 0 100% swh/vault/tests/test_cookers.py 325 270 4 0 17% swh/vault/tests/test_cookers_base.py 45 1 2 0 98% swh/vault/tests/vault_testing.py 26 1 0 0 96% swh/vault/to_disk.py 57 40 26 0 20% ------------------------------------------------------------------------- TOTAL 1325 619 178 11 50% =============================== warnings summary =============================== /home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: . """) source:874: DeprecationWarning: invalid escape sequence \* source:874: DeprecationWarning: invalid escape sequence \* source:874: DeprecationWarning: invalid escape sequence \* source:874: DeprecationWarning: invalid escape sequence \* -- Docs: https://docs.pytest.org/en/latest/warnings.html ========== 7 failed, 21 passed, 5 warnings, 9 error in 29.31 seconds =========== WARNING [pifpaf.drivers] `psutil.Popen(pid=15241, status='terminated')` is already gone, sending SIGKILL to its process group WARNING [pifpaf.drivers] `psutil.Popen(pid=15212, status='terminated')` is already gone, sending SIGKILL to its process group WARNING [pifpaf.drivers] `psutil.Popen(pid=15203, status='terminated')` is already gone, sending SIGKILL to its process group ERROR: InvocationError: '/home/tony/work/inria/repo/swh/swh-environment/swh-vault/.tox/py3/bin/pifpaf run postgresql -- pytest --cov=swh --cov-branch' ___________________________________ summary ____________________________________ ERROR: flake8: commands failed ERROR: py3: commands failed ```