Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_storage.TestStorage::test_snapshot_add_many_incremental
Failed

TEST RESULT

Run At
Apr 21 2020, 12:34 PM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7fd99454f4a8> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd99454f240> def test_snapshot_add_many_incremental(self, swh_storage): > actual_result = swh_storage.snapshot_add([data.complete_snapshot]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2364: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/validate.py:90: in snapshot_add return self.storage.snapshot_add(snapshots) .tox/py3/lib/python3.7/site-packages/swh/storage/metrics.py:24: in d return f(*a, **kw) .tox/py3/lib/python3.7/site-packages/swh/storage/metrics.py:77: in d r = f(*a, **kw) .tox/py3/lib/python3.7/site-packages/swh/core/db/common.py:62: in _meth return meth(self, *args, db=db, cur=cur, **kwargs) .tox/py3/lib/python3.7/site-packages/swh/storage/storage.py:686: in snapshot_add if not db.snapshot_exists(snapshot.id, cur): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7fd903c89be0> snapshot_id = b'ne\xb8cc\x95;x\r\x92\xb0\xa9(\xf3\xe8\xfc\xdd\x10\xdb6' cur = <cursor object at 0x7fdab4ce1900; closed: -1> def snapshot_exists(self, snapshot_id, cur=None): """Check whether a snapshot with the given id exists""" cur = self._cursor(cur) > cur.execute("""SELECT 1 FROM snapshot where id=%s""", (snapshot_id,)) E psycopg2.errors.UndefinedTable: relation "snapshot" does not exist E LINE 1: SELECT 1 FROM snapshot where id='\x6e65b86363953b780d92b0a92... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:201: UndefinedTable