Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
May 20 2020, 9:28 AM
Details
self = <swh.storage.tests.test_storage.TestStorage object at 0x7f466c06c908> swh_storage = <swh.storage.validate.ValidatingProxyStorage object at 0x7f45bfff9da0> def test_origin_visit_find_by_date__unknown_origin(self, swh_storage): > swh_storage.origin_visit_find_by_date("foo", data.date_visit2) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:1882: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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/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:1038: in origin_visit_find_by_date visit = db.origin_visit_find_by_date(origin, visit_date, cur=cur) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.db.Db object at 0x7f466c0a1898>, origin = 'foo' visit_date = datetime.datetime(2017, 1, 1, 23, 0, tzinfo=datetime.timezone.utc) cur = <cursor object at 0x7f478e6b1900; closed: -1> def origin_visit_find_by_date(self, origin, visit_date, cur=None): cur = self._cursor(cur) cur.execute( > "SELECT * FROM swh_visit_find_by_date(%s, %s)", (origin, visit_date) ) E psycopg2.errors.UndefinedFunction: function swh_visit_find_by_date(unknown, timestamp with time zone) does not exist E LINE 1: SELECT * FROM swh_visit_find_by_date('foo', '2017-01-01T23:0... E ^ E HINT: No function matches the given name and argument types. You might need to add explicit type casts. .tox/py3/lib/python3.7/site-packages/swh/storage/db.py:641: UndefinedFunction