--- Begin Message ---
Source: python-lsp-server
Version: 1.2.4-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211104 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>>'
> for b in .pybuild/*/build/; do cp .pylintrc $b; done
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build;
> python3.9 -m pytest test
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: cov-3.0.0, flaky-3.7.0
> collected 133 items
>
> test/test_document.py ......... [
> 6%]
> test/test_language_server.py .ss. [
> 9%]
> test/test_uris.py ...sss..ss.. [
> 18%]
> test/test_utils.py ...... [
> 23%]
> test/test_workspace.py ................. [
> 36%]
> test/plugins/test_autopep8_format.py .... [
> 39%]
> test/plugins/test_completion.py ...........................s. [
> 60%]
> test/plugins/test_definitions.py .... [
> 63%]
> test/plugins/test_flake8_lint.py ...... [
> 68%]
> test/plugins/test_folding.py .. [
> 69%]
> test/plugins/test_highlight.py .. [
> 71%]
> test/plugins/test_hover.py ... [
> 73%]
> test/plugins/test_jedi_rename.py . [
> 74%]
> test/plugins/test_mccabe_lint.py .. [
> 75%]
> test/plugins/test_pycodestyle_lint.py .. [
> 77%]
> test/plugins/test_pydocstyle_lint.py .... [
> 80%]
> test/plugins/test_pyflakes_lint.py .... [
> 83%]
> test/plugins/test_pylint_lint.py ..sF.F [
> 87%]
> test/plugins/test_references.py .. [
> 89%]
> test/plugins/test_rope_rename.py . [
> 90%]
> test/plugins/test_signature.py ...... [
> 94%]
> test/plugins/test_symbols.py ..s [
> 96%]
> test/plugins/test_yapf_format.py ....
> [100%]
>
> =================================== FAILURES
> ===================================
> ____________________________ test_lint_free_pylint
> _____________________________
>
> config = <pylsp.config.config.Config object at 0x7fdc6bf5aa00>
> workspace = <pylsp.workspace.Workspace object at 0x7fdc6bf5ac70>
>
> def test_lint_free_pylint(config, workspace):
> # Can't use temp_document because it might give us a file that doesn't
> # match pylint's naming requirements. We should be keeping this file
> clean
> # though, so it works for a test of an empty lint.
> > assert not pylint_lint.pylsp_lint(
> config, Document(uris.from_fs_path(__file__), workspace), True)
> E AssertionError: assert not [{'code': 'W1514', 'message':
> '[unspecified-encoding] Using open without explicitly specifying an
> encoding', 'range': {'end': {'character': 48, 'line': 39}, 'start':
> {'character': 9, 'line': 39}}, 'severity': 2, ...}]
> E + where [{'code': 'W1514', 'message': '[unspecified-encoding] Using
> open without explicitly specifying an encoding', 'range': {'end':
> {'character': 48, 'line': 39}, 'start': {'character': 9, 'line': 39}},
> 'severity': 2, ...}] = <function pylsp_lint at
> 0x7fdc955bf5e0>(<pylsp.config.config.Config object at 0x7fdc6bf5aa00>,
> <pylsp.workspace.Document object at 0x7fdc6bf491f0>, True)
> E + where <function pylsp_lint at 0x7fdc955bf5e0> =
> pylint_lint.pylsp_lint
> E + and <pylsp.workspace.Document object at 0x7fdc6bf491f0> =
> Document('file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py',
> <pylsp.workspace.Workspace object at 0x7fdc6bf5ac70>)
> E + where
> 'file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py'
> = <function from_fs_path at
> 0x7fdc9625b790>('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py')
> E + where <function from_fs_path at 0x7fdc9625b790> =
> uris.from_fs_path
>
> test/plugins/test_pylint_lint.py:104: AssertionError
> ---------------------------- Captured stderr setup
> -----------------------------
> 2021-11-04 09:47:51,476 UTC - DEBUG - pylsp.config.config - pylsp_settings
> [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5ae50>
>
> 2021-11-04 09:47:51,476 UTC - DEBUG - pylsp.config.config - finish
> pylsp_settings --> [] [hook]
>
> 2021-11-04 09:47:51,477 UTC - INFO - pylsp.config.config - Disabled plugins:
> []
> 2021-11-04 09:47:51,487 UTC - DEBUG - pylsp.config.config - pylsp_settings
> [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5aa00>
>
> 2021-11-04 09:47:51,487 UTC - DEBUG - pylsp.config.config - finish
> pylsp_settings --> [] [hook]
>
> 2021-11-04 09:47:51,488 UTC - INFO - pylsp.config.config - Disabled plugins:
> []
> ------------------------------ Captured log setup
> ------------------------------
> DEBUG pylsp.config.config:_tracing.py:34 pylsp_settings [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5ae50>
>
> DEBUG pylsp.config.config:_tracing.py:34 finish pylsp_settings --> []
> [hook]
>
> INFO pylsp.config.config:config.py:156 Disabled plugins: []
> DEBUG pylsp.config.config:_tracing.py:34 pylsp_settings [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5aa00>
>
> DEBUG pylsp.config.config:_tracing.py:34 finish pylsp_settings --> []
> [hook]
>
> INFO pylsp.config.config:config.py:156 Disabled plugins: []
> ----------------------------- Captured stderr call
> -----------------------------
> 2021-11-04 09:47:51,488 UTC - DEBUG - pylsp.config.config - Got user config
> from PyCodeStyleConfig: {}
> 2021-11-04 09:47:51,489 UTC - DEBUG - pylsp.config.config - Got project
> config from PyCodeStyleConfig: {}
> 2021-11-04 09:47:51,489 UTC - DEBUG - pylsp.config.config - With
> configuration: {'plugins': {'pylint': {'enabled': False, 'args': [],
> 'executable': None}}}
> 2021-11-04 09:47:51,489 UTC - DEBUG - pylsp.plugins.pylint_lint - Got pylint
> settings: {'enabled': False, 'args': [], 'executable': None}
> 2021-11-04 09:47:51,489 UTC - DEBUG - pylsp.plugins.pylint_lint - Calling
> pylint with
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py
> -f json '
> ------------------------------ Captured log call
> -------------------------------
> DEBUG pylsp.config.config:config.py:120 Got user config from
> PyCodeStyleConfig: {}
> DEBUG pylsp.config.config:config.py:129 Got project config from
> PyCodeStyleConfig: {}
> DEBUG pylsp.config.config:config.py:132 With configuration: {'plugins':
> {'pylint': {'enabled': False, 'args': [], 'executable': None}}}
> DEBUG pylsp.plugins.pylint_lint:pylint_lint.py:174 Got pylint settings:
> {'enabled': False, 'args': [], 'executable': None}
> DEBUG pylsp.plugins.pylint_lint:pylint_lint.py:72 Calling pylint with
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py
> -f json '
> ____________________________ test_per_file_caching
> _____________________________
>
> config = <pylsp.config.config.Config object at 0x7fdc6bf5fa60>
> workspace = <pylsp.workspace.Workspace object at 0x7fdc6bf49220>
>
> def test_per_file_caching(config, workspace):
> # Ensure that diagnostics are cached per-file.
> with temp_document(DOC, workspace) as doc:
> assert pylint_lint.pylsp_lint(config, doc, True)
>
> > assert not pylint_lint.pylsp_lint(
> config, Document(uris.from_fs_path(__file__), workspace), False)
> E AssertionError: assert not [{'code': 'W1514', 'message':
> '[unspecified-encoding] Using open without explicitly specifying an
> encoding', 'range': {'end': {'character': 48, 'line': 39}, 'start':
> {'character': 9, 'line': 39}}, 'severity': 2, ...}]
> E + where [{'code': 'W1514', 'message': '[unspecified-encoding] Using
> open without explicitly specifying an encoding', 'range': {'end':
> {'character': 48, 'line': 39}, 'start': {'character': 9, 'line': 39}},
> 'severity': 2, ...}] = <function pylsp_lint at
> 0x7fdc955bf5e0>(<pylsp.config.config.Config object at 0x7fdc6bf5fa60>,
> <pylsp.workspace.Document object at 0x7fdc6bf1bbb0>, False)
> E + where <function pylsp_lint at 0x7fdc955bf5e0> =
> pylint_lint.pylsp_lint
> E + and <pylsp.workspace.Document object at 0x7fdc6bf1bbb0> =
> Document('file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py',
> <pylsp.workspace.Workspace object at 0x7fdc6bf49220>)
> E + where
> 'file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py'
> = <function from_fs_path at
> 0x7fdc9625b790>('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/test/plugins/test_pylint_lint.py')
> E + where <function from_fs_path at 0x7fdc9625b790> =
> uris.from_fs_path
>
> test/plugins/test_pylint_lint.py:141: AssertionError
> ---------------------------- Captured stderr setup
> -----------------------------
> 2021-11-04 09:47:56,399 UTC - DEBUG - pylsp.config.config - pylsp_settings
> [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf49af0>
>
> 2021-11-04 09:47:56,399 UTC - DEBUG - pylsp.config.config - finish
> pylsp_settings --> [] [hook]
>
> 2021-11-04 09:47:56,399 UTC - INFO - pylsp.config.config - Disabled plugins:
> []
> 2021-11-04 09:47:56,410 UTC - DEBUG - pylsp.config.config - pylsp_settings
> [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5fa60>
>
> 2021-11-04 09:47:56,410 UTC - DEBUG - pylsp.config.config - finish
> pylsp_settings --> [] [hook]
>
> 2021-11-04 09:47:56,410 UTC - INFO - pylsp.config.config - Disabled plugins:
> []
> ------------------------------ Captured log setup
> ------------------------------
> DEBUG pylsp.config.config:_tracing.py:34 pylsp_settings [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf49af0>
>
> DEBUG pylsp.config.config:_tracing.py:34 finish pylsp_settings --> []
> [hook]
>
> INFO pylsp.config.config:config.py:156 Disabled plugins: []
> DEBUG pylsp.config.config:_tracing.py:34 pylsp_settings [hook]
> config: <pylsp.config.config.Config object at 0x7fdc6bf5fa60>
>
> DEBUG pylsp.config.config:_tracing.py:34 finish pylsp_settings --> []
> [hook]
>
> INFO pylsp.config.config:config.py:156 Disabled plugins: []
> ----------------------------- Captured stderr call
> -----------------------------
> 2021-11-04 09:47:56,412 UTC - DEBUG - pylsp.config.config - Got user config
> from PyCodeStyleConfig: {}
> 2021-11-04 09:47:56,412 UTC - DEBUG - pylsp.config.config - Got project
> config from PyCodeStyleConfig: {}
> 2021-11-04 09:47:56,412 UTC - DEBUG - pylsp.config.config - With
> configuration: {'plugins': {'pylint': {'enabled': False, 'args': [],
> 'executable': None}}}
> 2021-11-04 09:47:56,412 UTC - DEBUG - pylsp.plugins.pylint_lint - Got pylint
> settings: {'enabled': False, 'args': [], 'executable': None}
> 2021-11-04 09:47:56,412 UTC - DEBUG - pylsp.plugins.pylint_lint - Calling
> pylint with '/tmp/tmpi2vzesdn -f json '
> 2021-11-04 09:47:57,234 UTC - DEBUG - pylsp.plugins.pylint_lint - Got pylint
> settings: {'enabled': False, 'args': [], 'executable': None}
> ------------------------------ Captured log call
> -------------------------------
> DEBUG pylsp.config.config:config.py:120 Got user config from
> PyCodeStyleConfig: {}
> DEBUG pylsp.config.config:config.py:129 Got project config from
> PyCodeStyleConfig: {}
> DEBUG pylsp.config.config:config.py:132 With configuration: {'plugins':
> {'pylint': {'enabled': False, 'args': [], 'executable': None}}}
> DEBUG pylsp.plugins.pylint_lint:pylint_lint.py:174 Got pylint settings:
> {'enabled': False, 'args': [], 'executable': None}
> DEBUG pylsp.plugins.pylint_lint:pylint_lint.py:72 Calling pylint with
> '/tmp/tmpi2vzesdn -f json '
> DEBUG pylsp.plugins.pylint_lint:pylint_lint.py:174 Got pylint settings:
> {'enabled': False, 'args': [], 'executable': None}
> =============================== warnings summary
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/yapf/__init__.py:35
> /usr/lib/python3/dist-packages/yapf/__init__.py:35:
> PendingDeprecationWarning: lib2to3 package is deprecated and may not be able
> to parse Python 3.10+
> from lib2to3.pgen2 import tokenize
>
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_rope_rename.py::test_rope_rename
> /usr/lib/python3/dist-packages/rope/base/project.py:222:
> DeprecationWarning: Delete once deprecated functions are gone
> self._init_source_folders()
>
> .pybuild/cpython3_3.9/build/test/plugins/test_completion.py::test_rope_completion
> .pybuild/cpython3_3.9/build/test/plugins/test_rope_rename.py::test_rope_rename
> /usr/lib/python3/dist-packages/rope/base/libutils.py:36:
> DeprecationWarning: relative is deprecated
> return relative(project.address, path)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> - generated xml file: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pytest.xml
> -
>
> ----------- coverage: platform linux, python 3.9.7-final-0 -----------
> Name Stmts Miss Cover
> -----------------------------------------------------------
> pylsp/__init__.py 8 0 100%
> pylsp/__main__.py 55 40 27%
> pylsp/_utils.py 121 22 82%
> pylsp/_version.py 3 0 100%
> pylsp/config/__init__.py 0 0 100%
> pylsp/config/config.py 97 19 80%
> pylsp/config/flake8_conf.py 26 2 92%
> pylsp/config/pycodestyle_conf.py 15 0 100%
> pylsp/config/source.py 57 6 89%
> pylsp/hookspecs.py 72 23 68%
> pylsp/lsp.py 67 0 100%
> pylsp/plugins/__init__.py 0 0 100%
> pylsp/plugins/autopep8_format.py 34 0 100%
> pylsp/plugins/definition.py 11 0 100%
> pylsp/plugins/flake8_lint.py 82 15 82%
> pylsp/plugins/folding.py 152 3 98%
> pylsp/plugins/highlight.py 12 0 100%
> pylsp/plugins/hover.py 23 1 96%
> pylsp/plugins/jedi_completion.py 178 24 87%
> pylsp/plugins/jedi_rename.py 21 2 90%
> pylsp/plugins/mccabe_lint.py 22 0 100%
> pylsp/plugins/preload_imports.py 15 15 0%
> pylsp/plugins/pycodestyle_lint.py 39 4 90%
> pylsp/plugins/pydocstyle_lint.py 65 10 85%
> pylsp/plugins/pyflakes_lint.py 25 0 100%
> pylsp/plugins/pylint_lint.py 111 20 82%
> pylsp/plugins/references.py 10 0 100%
> pylsp/plugins/rope_completion.py 54 16 70%
> pylsp/plugins/rope_rename.py 24 1 96%
> pylsp/plugins/signature.py 33 0 100%
> pylsp/plugins/symbols.py 90 32 64%
> pylsp/plugins/yapf_format.py 21 0 100%
> pylsp/python_lsp.py 280 99 65%
> pylsp/uris.py 48 9 81%
> pylsp/workspace.py 191 13 93%
> test/__init__.py 8 0 100%
> test/conftest.py 5 0 100%
> test/fixtures.py 54 0 100%
> test/plugins/__init__.py 0 0 100%
> test/plugins/test_autopep8_format.py 27 0 100%
> test/plugins/test_completion.py 249 16 94%
> test/plugins/test_definitions.py 33 0 100%
> test/plugins/test_flake8_lint.py 92 0 100%
> test/plugins/test_folding.py 20 0 100%
> test/plugins/test_highlight.py 14 0 100%
> test/plugins/test_hover.py 44 0 100%
> test/plugins/test_jedi_rename.py 34 1 97%
> test/plugins/test_mccabe_lint.py 22 0 100%
> test/plugins/test_pycodestyle_lint.py 55 0 100%
> test/plugins/test_pydocstyle_lint.py 25 0 100%
> test/plugins/test_pyflakes_lint.py 32 0 100%
> test/plugins/test_pylint_lint.py 69 5 93%
> test/plugins/test_references.py 38 0 100%
> test/plugins/test_rope_rename.py 20 0 100%
> test/plugins/test_signature.py 37 0 100%
> test/plugins/test_symbols.py 46 6 87%
> test/plugins/test_yapf_format.py 26 0 100%
> test/test_document.py 42 0 100%
> test/test_language_server.py 63 12 81%
> test/test_uris.py 22 2 91%
> test/test_utils.py 61 0 100%
> test/test_workspace.py 181 0 100%
> -----------------------------------------------------------
> TOTAL 3381 418 88%
> Coverage HTML written to dir htmlcov
>
> ===Flaky Test Report===
>
> test_initialize passed 1 out of the required 1 times. Success!
> test_missing_message passed 1 out of the required 1 times. Success!
> test_debounce passed 1 out of the required 1 times. Success!
> test_debounce_keyed_by passed 1 out of the required 1 times. Success!
>
> ===End Flaky Test Report===
> =========================== short test summary info
> ============================
> FAILED test/plugins/test_pylint_lint.py::test_lint_free_pylint -
> AssertionErr...
> FAILED test/plugins/test_pylint_lint.py::test_per_file_caching -
> AssertionErr...
> ======= 2 failed, 121 passed, 10 skipped, 6 warnings in 66.94s (0:01:06)
> =======
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest test
> 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/11/04/python-lsp-server_1.2.4-1_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.
--- End Message ---