Source: loguru Version: 0.5.3-3 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20211023 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.9 > I: pybuild pybuild:285: rm -f tests/test_exceptions_formatting.py > I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build; > python3.9 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 > rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini > plugins: cov-3.0.0 > collected 1283 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 ...................................... [ > 6%] > ............ [ > 7%] > tests/test_add_option_diagnose.py . [ > 7%] > tests/test_add_option_enqueue.py ......FF... [ > 8%] > tests/test_add_option_filter.py ........................................ [ > 11%] > ............... [ > 12%] > tests/test_add_option_format.py .................... [ > 13%] > tests/test_add_option_kwargs.py ....... [ > 14%] > tests/test_add_option_level.py .......... [ > 15%] > tests/test_add_option_serialize.py ........ [ > 15%] > tests/test_add_sinks.py ................................................ [ > 19%] > ...... [ > 20%] > tests/test_ansimarkup_basic.py ......................................... [ > 23%] > ............................................... [ > 26%] > tests/test_ansimarkup_extended.py ...................................... [ > 29%] > ...................................................... [ > 34%] > tests/test_bind.py ......... [ > 34%] > tests/test_configure.py ................ [ > 36%] > tests/test_contextualize.py ............. [ > 37%] > tests/test_coroutine_sink.py ................................... [ > 39%] > tests/test_datetime.py .............................. [ > 42%] > tests/test_deepcopy.py .... [ > 42%] > tests/test_defaults.py ............. [ > 43%] > tests/test_exceptions_catch.py ......................................... [ > 46%] > .......... [ > 47%] > tests/test_filesink_compression.py ..................................... [ > 50%] > ................. [ > 51%] > tests/test_filesink_delay.py .......... [ > 52%] > tests/test_filesink_retention.py ....................................... [ > 55%] > .......... [ > 56%] > tests/test_filesink_rotation.py ........................................ [ > 59%] > ...ss.................................................. [ > 63%] > tests/test_formatting.py ............................................... [ > 67%] > ................................ [ > 69%] > tests/test_get_frame.py ... [ > 70%] > tests/test_interception.py ............ [ > 71%] > tests/test_levels.py ....................................... [ > 74%] > tests/test_multiprocessing.py ............................... [ > 76%] > tests/test_opt.py ...................................................... [ > 80%] > ........................................................................ [ > 86%] > ........................ [ > 88%] > tests/test_parse.py ......................... [ > 90%] > tests/test_patch.py ....... [ > 90%] > tests/test_pickling.py ................................................. [ > 94%] > .... [ > 94%] > tests/test_propagation.py ...... [ > 95%] > tests/test_recattr.py ......... [ > 95%] > tests/test_remove.py ........... [ > 96%] > tests/test_repr.py .................... [ > 98%] > tests/test_standard_handler.py ................ [ > 99%] > tests/test_threading.py ..... > [100%] > > =================================== FAILURES > =================================== > _____________________ test_not_caught_exception_queue_get > ______________________ > > writer = <function writer.<locals>.w at 0x7f569bfe3700> > capsys = <_pytest.capture.CaptureFixture object at 0x7f569b484c40> > > def test_not_caught_exception_queue_get(writer, capsys): > logger.add(writer, enqueue=True, catch=False, format="{message}") > > logger.info("It's fine") > logger.bind(broken=NotUnpicklable()).info("Bye bye...") > logger.info("It's not fine") > logger.remove() > > out, err = capsys.readouterr() > lines = err.strip().splitlines() > assert writer.read() == "It's fine\n" > assert out == "" > > assert lines[0].startswith("Exception") > E IndexError: list index out of range > > capsys = <_pytest.capture.CaptureFixture object at 0x7f569b484c40> > err = '' > lines = [] > out = '' > writer = <function writer.<locals>.w at 0x7f569bfe3700> > > tests/test_add_option_enqueue.py:152: IndexError > _____________________ test_not_caught_exception_sink_write > _____________________ > > capsys = <_pytest.capture.CaptureFixture object at 0x7f569b4fda60> > > def test_not_caught_exception_sink_write(capsys): > logger.add(NotWritable(), enqueue=True, catch=False, > format="{message}") > > logger.info("It's fine") > logger.bind(fail=True).info("Bye bye...") > logger.info("It's not fine") > logger.remove() > > out, err = capsys.readouterr() > lines = err.strip().splitlines() > assert out == "It's fine\n" > > assert lines[0].startswith("Exception") > E IndexError: list index out of range > > capsys = <_pytest.capture.CaptureFixture object at 0x7f569b4fda60> > err = '' > lines = [] > out = "It's fine\n" > > tests/test_add_option_enqueue.py:167: IndexError > =============================== warnings summary > =============================== > .pybuild/cpython3_3.9_loguru/build/tests/test_add_option_catch.py::test_broken_sink_not_caught_enqueue > /usr/lib/python3/dist-packages/_pytest/threadexception.py:75: > PytestUnhandledThreadExceptionWarning: Exception in thread loguru-writer-0 > > Traceback (most recent call last): > File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner > self.run() > File "/usr/lib/python3.9/threading.py", line 910, in run > self._target(*self._args, **self._kwargs) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/loguru/_handler.py", > line 287, in _queued_writer > self._sink.write(message) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/loguru/_simple_sinks.py", > line 119, in write > self._function(message) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/tests/test_add_option_catch.py", > line 131, in broken_sink > raise ValueError("Nop") > ValueError: Nop > > warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) > > .pybuild/cpython3_3.9_loguru/build/tests/test_add_option_enqueue.py::test_not_caught_exception_queue_get > /usr/lib/python3/dist-packages/_pytest/threadexception.py:75: > PytestUnhandledThreadExceptionWarning: Exception in thread loguru-writer-0 > > Traceback (most recent call last): > File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner > self.run() > File "/usr/lib/python3.9/threading.py", line 910, in run > self._target(*self._args, **self._kwargs) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/loguru/_handler.py", > line 270, in _queued_writer > message = queue.get() > File "/usr/lib/python3.9/multiprocessing/queues.py", line 368, in get > return _ForkingPickler.loads(res) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/tests/test_add_option_enqueue.py", > line 22, in __setstate__ > raise pickle.UnpicklingError("You shall not de-serialize me!") > _pickle.UnpicklingError: You shall not de-serialize me! > > warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) > > .pybuild/cpython3_3.9_loguru/build/tests/test_add_option_enqueue.py::test_not_caught_exception_sink_write > /usr/lib/python3/dist-packages/_pytest/threadexception.py:75: > PytestUnhandledThreadExceptionWarning: Exception in thread loguru-writer-0 > > Traceback (most recent call last): > File "/usr/lib/python3.9/threading.py", line 973, in _bootstrap_inner > self.run() > File "/usr/lib/python3.9/threading.py", line 910, in run > self._target(*self._args, **self._kwargs) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/loguru/_handler.py", > line 287, in _queued_writer > self._sink.write(message) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/loguru/_simple_sinks.py", > line 26, in write > self._stream.write(message) > File > "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build/tests/test_add_option_enqueue.py", > line 28, in write > raise RuntimeError("You asked me to fail...") > RuntimeError: You asked me to fail... > > warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > FAILED tests/test_add_option_enqueue.py::test_not_caught_exception_queue_get > FAILED tests/test_add_option_enqueue.py::test_not_caught_exception_sink_write > ============ 2 failed, 1279 passed, 2 skipped, 3 warnings in 30.05s > ============ > E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_loguru/build; python3.9 -m pytest tests > rm -fr -- /tmp/dh-xdg-rundir-j739kwuT > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 > returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2021/10/23/loguru_0.5.3-3_unstable.log 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.