[Python-modules-team] Bug#892640: celery FTBFS:

Adrian Bunk bunk at debian.org
Sun Mar 11 17:03:55 UTC 2018


Source: celery
Version: 4.1.0-2
Severity: serious

Some recent change in unstable makes celery FTBFS:

https://tests.reproducible-builds.org/debian/history/celery.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/celery.html

...
==================================== ERRORS ====================================
_ ERROR at teardown of test_default_logger.test_setup_logging_subsystem_misc2 __

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_setup_logging_subsystem_misc2'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_setup_logging_subsystem_misc2 modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
__________ ERROR at teardown of test_default_logger.test_setup_logger __________

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_setup_logger'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_setup_logger modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
 ERROR at teardown of test_default_logger.test_setup_logger_no_handlers_stream _

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_setup_logger_no_handlers_stream'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_setup_logger_no_handlers_stream modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
_ ERROR at teardown of test_default_logger.test_setup_logger_no_handlers_file __

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_setup_logger_no_handlers_file'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_setup_logger_no_handlers_file modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
________ ERROR at teardown of test_default_logger.test_redirect_stdouts ________

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_redirect_stdouts'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_redirect_stdouts modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
_________ ERROR at teardown of test_default_logger.test_logging_proxy __________

request = <SubRequest 'sanity_logging_side_effects' for <Function 'test_logging_proxy'>>

    @pytest.fixture(autouse=True)
    def sanity_logging_side_effects(request):
        root = logging.getLogger()
        rootlevel = root.level
        roothandlers = root.handlers
    
        yield
    
        this = request.node.name
        root_now = logging.getLogger()
        if root_now.level != rootlevel:
            raise RuntimeError(CASE_LOG_LEVEL_EFFECT.format(this))
        if root_now.handlers != roothandlers:
>           raise RuntimeError(CASE_LOG_HANDLER_EFFECT.format(this))
E           RuntimeError: Test test_logging_proxy modified handlers for the root logger

t/unit/conftest.py:246: RuntimeError
=============================== warnings summary ===============================
t/unit/app/test_backends.py::test_backends::()::test_get_backend_aliases[amqp://-AMQPBackend]
  /build/1st/celery-4.1.0/celery/backends/amqp.py:68: CPendingDeprecationWarning: \n    The AMQP result backend is scheduled for deprecation in     version 4.0 and removal in version v5.0.     Please use RPC backend or a persistent backend.\n
    alternative='Please use RPC backend or a persistent backend.')
  /usr/lib/python2.7/dist-packages/_pytest/warnings.py:90: UnicodeWarning: Warning is using unicode non convertible to ascii, converting to a safe representation:
    /build/1st/celery-4.1.0/celery/backends/amqp.py:68: CPendingDeprecationWarning: \n    The AMQP result backend is scheduled for deprecation in     version 4.0 and removal in version v5.0.     Please use RPC backend or a persistent backend.\n
    alternative='Please use RPC backend or a persistent backend.')
  
    UnicodeWarning)

t/unit/bin/test_worker.py::test_Worker::()::test_warns_if_running_as_privileged_user
  /build/1st/celery-4.1.0/celery/platforms.py:795: RuntimeWarning: You're running the worker with superuser privileges: this is\nabsolutely not recommended!\n\nPlease specify a different user using the -u option.\n\nUser information: uid=0 euid=1111 gid=1111 egid=1111\n
    uid=uid, euid=euid, gid=gid, egid=egid,
  /usr/lib/python2.7/dist-packages/_pytest/warnings.py:90: UnicodeWarning: Warning is using unicode non convertible to ascii, converting to a safe representation:
    /build/1st/celery-4.1.0/celery/platforms.py:795: RuntimeWarning: You're running the worker with superuser privileges: this is\nabsolutely not recommended!\n\nPlease specify a different user using the -u option.\n\nUser information: uid=0 euid=1111 gid=1111 egid=1111\n
    uid=uid, euid=euid, gid=gid, egid=egid,
  
    UnicodeWarning)

t/unit/worker/test_request.py::test_Request::()::test_from_message_invalid_kwargs
  /build/1st/celery-4.1.0/celery/app/trace.py:549: RuntimeWarning: Exception raised outside body: InvalidTaskError(u'Task keyword arguments is not a mapping',):\nTraceback (most recent call last):\n  File "/build/1st/celery-4.1.0/celery/app/trace.py", line 354, in trace_task\n    'Task keyword arguments is not a mapping')\nInvalidTaskError: Task keyword arguments is not a mapping\n
    exc, exc_info.traceback)))
  /usr/lib/python2.7/dist-packages/_pytest/warnings.py:90: UnicodeWarning: Warning is using unicode non convertible to ascii, converting to a safe representation:
    /build/1st/celery-4.1.0/celery/app/trace.py:549: RuntimeWarning: Exception raised outside body: InvalidTaskError(u'Task keyword arguments is not a mapping',):\nTraceback (most recent call last):\n  File "/build/1st/celery-4.1.0/celery/app/trace.py", line 354, in trace_task\n    'Task keyword arguments is not a mapping')\nInvalidTaskError: Task keyword arguments is not a mapping\n
    exc, exc_info.traceback)))
  
    UnicodeWarning)

-- Docs: http://doc.pytest.org/en/latest/warnings.html
======= 2184 passed, 105 skipped, 6 warnings, 6 error in 109.61 seconds ========
E: pybuild pybuild:283: test: plugin custom failed with: exit code=1: python2.7 setup.py test
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 --system=custom "--test-args={interpreter} setup.py test" returned exit code 13
make[1]: *** [debian/rules:17: override_dh_auto_test] Error 25



More information about the Python-modules-team mailing list