Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 20 2020, 9:28 AM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f466c6ebba8> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f466c6eb4e0> def test_snapshot_add_many_from_generator(self, swh_storage): def _snp_gen(): yield data.snapshot yield data.complete_snapshot > actual_result = swh_storage.snapshot_add(_snp_gen()) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:2361: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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:687: in snapshot_add if not db.snapshot_exists(snapshot.id, cur): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7f45c08d7470> snapshot_id = b"$\x98\xdb\xf55\xf8\x82\xbc\x7f\x9a\x18\xfb\x16\xc9\xad'\xfd\xa7\xba\xb7" cur = <cursor object at 0x7f478e6b1dd8; 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='\x2498dbf535f882bc7f9a18fb1... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:201: UndefinedTable