Source: loguru
Version: 0.6.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20220813 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test
> pybuild --test --test-pytest -i python{version} -p 3.10
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_loguru/build;
> python3.10 -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> plugins: cov-3.0.0
> collected 1352 items
>
> tests/test_activation.py .............................. [
> 2%]
> tests/test_add_option_backtrace.py . [
> 2%]
> tests/test_add_option_catch.py ........... [
> 3%]
> tests/test_add_option_colorize.py ...................................... [
> 5%]
> ............ [
> 6%]
> tests/test_add_option_diagnose.py . [
> 6%]
> tests/test_add_option_enqueue.py ..........s [
> 7%]
> tests/test_add_option_filter.py ........................................ [
> 10%]
> ............... [
> 11%]
> tests/test_add_option_format.py .................... [
> 13%]
> tests/test_add_option_kwargs.py ....... [
> 13%]
> tests/test_add_option_level.py .......... [
> 14%]
> tests/test_add_option_serialize.py ......... [
> 15%]
> tests/test_add_sinks.py ................................................ [
> 18%]
> ....... [
> 19%]
> tests/test_ansimarkup_basic.py ......................................... [
> 22%]
> ............................................... [
> 25%]
> tests/test_ansimarkup_extended.py ...................................... [
> 28%]
> ...................................................... [
> 32%]
> tests/test_bind.py ......... [
> 33%]
> tests/test_configure.py ................ [
> 34%]
> tests/test_contextualize.py .............. [
> 35%]
> tests/test_coroutine_sink.py ............................... [
> 37%]
> tests/test_datetime.py .............................. [
> 39%]
> tests/test_deepcopy.py .... [
> 40%]
> tests/test_defaults.py ............. [
> 41%]
> tests/test_exceptions_catch.py ......................................... [
> 44%]
> ....... [
> 44%]
> tests/test_exceptions_formatting.py .................................... [
> 47%]
> ........................................ [
> 50%]
> tests/test_filesink_compression.py ..................................... [
> 53%]
> ................. [
> 54%]
> tests/test_filesink_delay.py .......... [
> 55%]
> tests/test_filesink_retention.py ....................................... [
> 57%]
> .......... [
> 58%]
> tests/test_filesink_rotation.py ........................................ [
> 61%]
> ...ss.................................................. [
> 65%]
> tests/test_formatting.py ............................................... [
> 69%]
> ................................ [
> 71%]
> tests/test_get_frame.py ... [
> 71%]
> tests/test_interception.py ............ [
> 72%]
> tests/test_levels.py ....................................... [
> 75%]
> tests/test_multiprocessing.py ............................ [
> 77%]
> tests/test_opt.py ...................................................... [
> 81%]
> ........................................................................ [
> 86%]
> ........................ [
> 88%]
> tests/test_parse.py ......................... [
> 90%]
> tests/test_patch.py ....... [
> 91%]
> tests/test_pickling.py ................................................. [
> 94%]
> .... [
> 95%]
> tests/test_propagation.py ...... [
> 95%]
> tests/test_recattr.py ......... [
> 96%]
> tests/test_remove.py ........... [
> 96%]
> tests/test_repr.py ..........FF........ [
> 98%]
> tests/test_standard_handler.py ................ [
> 99%]
> tests/test_threading.py .....
> [100%]
>
> =================================== FAILURES
> ===================================
> __________________________ test_function_without_name
> __________________________
>
> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fda4f19e3b0>
>
> > ???
>
> function = <FunctionWithout>
> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fda4f19e3b0>
>
> tests/test_repr.py:119:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> loguru/_logger.py:792: in add
> elif iscoroutinefunction(sink) or iscoroutinefunction(getattr(sink,
> "__call__", None)):
> backtrace = True
> catch = True
> colorize = None
> diagnose = True
> enqueue = False
> error_interceptor = <loguru._error_interceptor.ErrorInterceptor
> object at 0x7fda4f19db40>
> filter = None
> format = '<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> |
> <level>{level: <8}</level> |
> <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> -
> <level>{message}</level>'
> handler_id = 0
> kwargs = {}
> level = 'DEBUG'
> self = <loguru.logger handlers=[]>
> serialize = False
> sink = <FunctionWithout>
> /usr/lib/python3.10/inspect.py:313: in iscoroutinefunction
> return _has_code_flag(obj, CO_COROUTINE)
> obj = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdbd0>
> /usr/lib/python3.10/inspect.py:297: in _has_code_flag
> if not (isfunction(f) or _signature_is_functionlike(f)):
> f = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdbd0>
> flag = 128
> /usr/lib/python3.10/inspect.py:2009: in _signature_is_functionlike
> if not callable(obj) or isclass(obj):
> obj = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdbd0>
> tests/test_repr.py:117: in <lambda>
> monkeypatch.setattr(builtins, "callable", lambda x: x is function or
> callable(x))
> function = <FunctionWithout>
> x = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdbd0>
> tests/test_repr.py:117: in <lambda>
> monkeypatch.setattr(builtins, "callable", lambda x: x is function or
> callable(x))
> E RecursionError: maximum recursion depth exceeded
> function = <FunctionWithout>
> x = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdbd0>
> !!! Recursion detected (same locals & position)
> ________________________ test_function_with_empty_name
> _________________________
>
> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fda4f19c4f0>
>
> def test_function_with_empty_name(monkeypatch):
> function = Wrapper(lambda _: None, repr="<FunctionEmpty>", name="")
> monkeypatch.setattr(builtins, "callable", lambda x: x is function or
> callable(x))
>
> > logger.add(function)
>
> function = <FunctionEmpty>
> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fda4f19c4f0>
>
> tests/test_repr.py:128:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> loguru/_logger.py:792: in add
> elif iscoroutinefunction(sink) or iscoroutinefunction(getattr(sink,
> "__call__", None)):
> backtrace = True
> catch = True
> colorize = None
> diagnose = True
> enqueue = False
> error_interceptor = <loguru._error_interceptor.ErrorInterceptor
> object at 0x7fda4f19c730>
> filter = None
> format = '<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> |
> <level>{level: <8}</level> |
> <cyan>{name}</cyan>:<cyan>{function}</cyan>:<cyan>{line}</cyan> -
> <level>{message}</level>'
> handler_id = 0
> kwargs = {}
> level = 'DEBUG'
> self = <loguru.logger handlers=[]>
> serialize = False
> sink = <FunctionEmpty>
> /usr/lib/python3.10/inspect.py:313: in iscoroutinefunction
> return _has_code_flag(obj, CO_COROUTINE)
> obj = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdc60>
> /usr/lib/python3.10/inspect.py:297: in _has_code_flag
> if not (isfunction(f) or _signature_is_functionlike(f)):
> f = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdc60>
> flag = 128
> /usr/lib/python3.10/inspect.py:2009: in _signature_is_functionlike
> if not callable(obj) or isclass(obj):
> obj = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdc60>
> tests/test_repr.py:126: in <lambda>
> monkeypatch.setattr(builtins, "callable", lambda x: x is function or
> callable(x))
> function = <FunctionEmpty>
> x = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdc60>
> tests/test_repr.py:126: in <lambda>
> monkeypatch.setattr(builtins, "callable", lambda x: x is function or
> callable(x))
> E RecursionError: maximum recursion depth exceeded
> function = <FunctionEmpty>
> x = <method-wrapper '__call__' of function object at
> 0x7fda4e2bdc60>
> !!! Recursion detected (same locals & position)
> =========================== short test summary info
> ============================
> FAILED tests/test_repr.py::test_function_without_name - RecursionError:
> maxim...
> FAILED tests/test_repr.py::test_function_with_empty_name - RecursionError:
> ma...
> ================== 2 failed, 1347 passed, 3 skipped in 41.50s
> ==================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_loguru/build; python3.10 -m pytest
> tests
> rm -fr -- /tmp/dh-xdg-rundir-4yutd_oX
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/08/13/loguru_0.6.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.