Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 21 2020, 12:34 PM
Details
self = <swh.storage.tests.test_storage.TestStorageGeneratedData object at 0x7fd8e39a7550> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7fd8e39a7828> @settings(suppress_health_check=[HealthCheck.too_slow]) > @given(strategies.lists(objects(), max_size=2)) def test_add_arbitrary(self, swh_storage, objects): .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3521: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3540: in test_add_arbitrary method([obj]) .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 0x7fd8e3031f28> snapshot_id = b'\x1a\x88\x93\xe6\xa8oDN\x8b\xe8\xe7\xbd\xa6\xcb4\xfb\x175\xa0\x0e' cur = <cursor object at 0x7fd8e2eca140; 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='\x1a8893e6a86f444e8be8e7bda... E ^ .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:201: UndefinedTable