Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.auth.test_mailmap::Tests / Python tests / test_sync_mailmaps_dry_run
Failed

TEST RESULT

Run At
Mar 29 2022, 10:03 AM
Details
self = <django.db.backends.utils.CursorWrapper object at 0x7fea71096160> sql = 'INSERT INTO "user_mailmap" ("user_id", "from_email", "from_email_verified", "from_email_verification_request_date", "...rocessing_date", "last_update_date") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "user_mailmap"."id"' params = (None, 'from_email@example.com', False, None, 'Display Name', False, ...) ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fea78b10ef0>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fea71096160>}) def _execute(self, sql, params, *ignored_wrapper_args): self.db.validate_no_broken_transaction() with self.db.wrap_database_errors: if params is None: return self.cursor.execute(sql) else: > return self.cursor.execute(sql, params) E psycopg2.errors.UndefinedTable: relation "user_mailmap" does not exist E LINE 1: INSERT INTO "user_mailmap" ("user_id", "from_email", "from_e... E ^ .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: UndefinedTable The above exception was the direct cause of the following exception: postgresql = <connection object at 0x7fea6f99d798; dsn: 'user=postgres password=xxx dbname=tests host=127.0.0.1 port=23222 options=''', closed: 0> @pytest.mark.django_db(transaction=True) def test_sync_mailmaps_dry_run(postgresql): with transaction.atomic(): > populate_mailmap() .tox/py3/lib/python3.7/site-packages/swh/web/tests/auth/test_mailmap.py:444: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/auth/test_mailmap.py:376: in populate_mailmap display_name_activated=activated, .tox/py3/lib/python3.7/site-packages/django/db/models/manager.py:82: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) .tox/py3/lib/python3.7/site-packages/django/db/models/query.py:422: in create obj.save(force_insert=True, using=self.db) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:744: in save force_update=force_update, update_fields=update_fields) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:782: in save_base force_update, using, update_fields, .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:873: in _save_table result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) .tox/py3/lib/python3.7/site-packages/django/db/models/base.py:911: in _do_insert using=using, raw=raw) .tox/py3/lib/python3.7/site-packages/django/db/models/manager.py:82: in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) .tox/py3/lib/python3.7/site-packages/django/db/models/query.py:1186: in _insert return query.get_compiler(using=using).execute_sql(return_id) .tox/py3/lib/python3.7/site-packages/django/db/models/sql/compiler.py:1377: in execute_sql cursor.execute(sql, params) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:67: in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:76: in _execute_with_wrappers return executor(sql, params, many, context) .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: in _execute return self.cursor.execute(sql, params) .tox/py3/lib/python3.7/site-packages/django/db/utils.py:89: in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <django.db.backends.utils.CursorWrapper object at 0x7fea71096160> sql = 'INSERT INTO "user_mailmap" ("user_id", "from_email", "from_email_verified", "from_email_verification_request_date", "...rocessing_date", "last_update_date") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "user_mailmap"."id"' params = (None, 'from_email@example.com', False, None, 'Display Name', False, ...) ignored_wrapper_args = (False, {'connection': <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fea78b10ef0>, 'cursor': <django.db.backends.utils.CursorWrapper object at 0x7fea71096160>}) def _execute(self, sql, params, *ignored_wrapper_args): self.db.validate_no_broken_transaction() with self.db.wrap_database_errors: if params is None: return self.cursor.execute(sql) else: > return self.cursor.execute(sql, params) E django.db.utils.ProgrammingError: relation "user_mailmap" does not exist E LINE 1: INSERT INTO "user_mailmap" ("user_id", "from_email", "from_e... E ^ .tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py:84: ProgrammingError