Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_scheduler.TestScheduler::test_grab_ready_priority_tasks
Failed

TEST RESULT

Run At
Jun 23 2021, 6:13 PM
Details
self = <swh.scheduler.tests.test_scheduler.TestScheduler object at 0x7fd39d51e358> swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7fd39d51e080> def test_grab_ready_priority_tasks(self, swh_scheduler): """check the grab and peek priority tasks endpoint behave as expected""" self._create_task_types(swh_scheduler) t = utcnow() task_type = TEMPLATES["git"]["type"] num_tasks = 100 # Create tasks with and without priorities tasks0 = tasks_with_priority_from_template( TEMPLATES["git"], t, num_tasks, "high", ) tasks1 = tasks_with_priority_from_template( TEMPLATES["hg"], t, num_tasks, "low", ) tasks2 = tasks_with_priority_from_template( TEMPLATES["hg"], t, num_tasks, "normal", ) tasks = tasks0 + tasks1 + tasks2 random.shuffle(tasks) > swh_scheduler.create_tasks(tasks) .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_scheduler.py:269: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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/scheduler/backend.py:506: in create_tasks cur.execute("select swh_scheduler_mktemp_task()") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <cursor object at 0x7fd39d122d48; closed: -1> query = 'select swh_scheduler_mktemp_task()', vars = None def execute(self, query, vars=None): self.column_mapping = [] self._query_executed = True > return super().execute(query, vars) E psycopg2.errors.UndefinedFunction: function swh_scheduler_mktemp_task() does not exist E LINE 1: select swh_scheduler_mktemp_task() 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/psycopg2/extras.py:236: UndefinedFunction