=================================== FAILURES ===================================swh_app = <Celery celery.tests at 0x7ff6a13d0048>
___________ PhabricatorListerTester.test_fetch_multiple_pages_yesdb ____________celery_session_worker = <Worker: gen658@b84cee4ca65b (running)>
self = <swh def test_ping(swh_app, celery_session_worker):
res = swh_app.send_task(
'swh.lister.phabricator.tests.test_pb_lister.PhabricatorListerTester testMethod=test_fetch_multiple_pages_yesdb>tasks.ping')
assert res
http_mocker = <requests_mock.mocker.Mocker object at 0x7f715348d5f8>> res.wait()
swh/lister/phabricator/tests/test_tasks.py:10:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/celery/result.py:226: in get
@requests_mock.Mocker()on_message=on_message,
.tox/py3/lib/python3.5/site-packages/celery/backends/base.py:500: in wait_for_pending
def test_fetch_multiple_pages_yesdb(selfreturn result.maybe_throw(propagate=propagate, http_mocker):callback=callback)
http_mocker.get(self.test_re, text=self.mock_response).tox/py3/lib/python3.5/site-packages/celery/result.py:331: in maybe_throw
initdb_args = Postgresql.DEFAULT_SETTINGS['initdb_args']self.throw(value, self._to_remote_traceback(tb))
initdb_args = ' '.join([initdb_args.tox/py3/lib/python3.5/site-packages/celery/result.py:324: in throw
self.on_ready.throw(*args, **kwargs)
.tox/py3/lib/python3.5/site-packages/vine/promises.py:244: in throw
reraise(type(exc), exc, tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tp = <class 'celery.exceptions.NotRegistered'>
value = Task of kind 'swh.lister.phabricator.tasks.ping' never registered, please make sure it's imported.
tb = None
def reraise(tp, value, '-E UTF-8'])tb=None):
db = Postgresql(initdb_args=initdb_args)"""Reraise exception."""
fl = self.get_fl(override_config={if value.__traceback__ is not tb:
'lister': {raise value.with_traceback(tb)
> 'cls': 'local',raise value
'args': {'db': db.url()}E celery.exceptions.NotRegistered: 'swh.lister.phabricator.tasks.ping'
.tox/py3/lib/python3.5/site-packages/vine/five.py:195: NotRegistered
}----------------------------- Captured stderr call -----------------------------
})[2019-04-27 22:56:55,596: ERROR/MainProcess] Received unregistered task of type 'swh.lister.phabricator.tasks.ping'.
self.init_db(db, fl.MODEL)The message has been ignored and discarded.
Did you remember to import the module containing this task?
self.disable_storage_and_scheduler(fl)Or maybe you're using relative imports?
Please see
fl.run(min_bound=self.first_index)http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.
The full contents of the message body was:
b'\x93\x90\x80\x84\xa5chord\xc0\xa5chain\xc0\xa8errbacks\xc0\xa9callbacks\xc0' (39b)
Traceback (most recent call last):
File "/home/jenkins/workspace/DLS/tox/.tox/py3/lib/python3.5/site-packages/celery/worker/consumer/consumer.py", line 559, in on_task_received
strategy = strategies[type_]
> self.assertEqual(fl.db_last_index(), self.last_index)KeyError: 'swh.lister.phabricator.tasks.ping'
E AssertionError: 'https://fakeur99' != '123'------------------------------ Captured log call -------------------------------
E - https://fakeur99consumer.py 494 ERROR Received unregistered task of type 'swh.lister.phabricator.tasks.ping'.
The message has been ignored and discarded.
Did you remember to import the module containing this task?
Or maybe you're using relative imports?
Please see
http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.
The full contents of the message body was:
b'\x93\x90\x80\x84\xa5chord\xc0\xa5chain\xc0\xa8errbacks\xc0\xa9callbacks\xc0' (39b)
Traceback (most recent call last):
File "/home/jenkins/workspace/DLS/tox/.tox/py3/lib/python3.5/site-packages/celery/worker/consumer/consumer.py", line 559, in on_task_received
strategy = strategies[type_]
E + 123KeyError: 'swh.lister.phabricator.tasks.ping'