Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-core-db-server-slow-cover.lib.python3.7.site-packages.swh.core.db.tests.pytest_plugin.test_pytest_plugin::test_smoke_test_fun2_db_is_up
Failed

TEST RESULT

Run At
Feb 15 2021, 1:50 PM
Details
request = <SubRequest 'postgres_fun2' for <Function test_smoke_test_fun2_db_is_up>> @pytest.fixture def postgresql_factory(request: FixtureRequest): """Fixture factory for PostgreSQL. :param FixtureRequest request: fixture request object :rtype: psycopg2.connection :returns: postgresql client """ config = factories.get_config(request) proc_fixture = request.getfixturevalue(process_fixture_name) pg_host = proc_fixture.host pg_port = proc_fixture.port pg_user = proc_fixture.user pg_options = proc_fixture.options pg_db = db_name or config["dbname"] with SWHDatabaseJanitor( pg_user, pg_host, pg_port, pg_db, proc_fixture.version, dump_files=dump_files, > no_truncate_tables=no_truncate_tables, ): .tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/db/pytest_plugin.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/pytest_postgresql/janitor.py:95: in __enter__ self.init() .tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/db/pytest_plugin.py:119: in init self.db_setup() .tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/db/pytest_plugin.py:68: in db_setup fname, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-d', ...],) kwargs = {}, retcode = 3 cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-d', ...] 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 '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-d', 'host=127.0.0.1 user=postgres port=22854 dbname=fun2', '-f', '/var/lib/jenkins/workspace/DCORE/tests-on-diff/.tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/db/tests/pytest_plugin/data/1-data.sql']' returned non-zero exit status 3. /usr/lib/python3.7/subprocess.py:347: CalledProcessError