Package: src:poetry
Version: 2.1.2+dfsg-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:poetry, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
find . -iname '*.pyc' -delete
for i in $(find . -type d -iname __pycache__) ; do rm -rf $i ; done
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry  
* Building wheel...
Successfully built poetry-2.1.2-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3 
[too-long-redacted] t_shutil_which_python_provider'
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry/build
configfile: pyproject.toml
testpaths: tests
plugins: xdist-3.8.0, mock-3.14.1
created: 2/2 workers
2 workers [2328 items]

........................................................................ [  3%]
sss..................................................................... [  6%]
........................................................................ [  9%]
..............s......................................................... [ 12%]
...............................................s........................ [ 15%]
........................................................................ [ 18%]
....................................................s................... [ 21%]
........................................................................ [ 24%]
........................................................................ [ 27%]
........................................................................ [ 30%]
........................................................................ [ 34%]
........................................................................ [ 37%]
.........s.............................................................. [ 40%]
........................................................................ [ 43%]
........................................................................ [ 46%]
........................................................................ [ 49%]
........................................................................ [ 52%]
........................................................................ [ 55%]
........................................................................ [ 58%]
........................................................................ [ 61%]
........................................................................ [ 64%]
........................................................................ [ 68%]
........................................................................ [ 71%]
........................................................................ [ 74%]
........................................................................ [ 77%]
........................................................................ [ 80%]
........................................................................ [ 83%]
................................................................F..F.... [ 86%]
........................................................................ [ 89%]
........................................................................ [ 92%]
.......................................................................s [ 95%]
....................................................................s... [ 98%]
........................                                                 [100%]
=================================== FAILURES ===================================
______________________ test_find_all_with_poetry_managed _______________________
[gw1] linux -- Python 3.13.7 /usr/bin/python3.13

without_mocked_findpython = None
mocked_poetry_managed_python_register = <function 
mocked_poetry_managed_python_register.<locals>.register at 0x7f49b9ca8b80>

    def test_find_all_with_poetry_managed(
        without_mocked_findpython: None,
        mocked_poetry_managed_python_register: MockedPoetryPythonRegister,
    ) -> None:
        cpython_path = mocked_poetry_managed_python_register("3.9.1", "cpython")
        pypy_path = mocked_poetry_managed_python_register("3.10.8", "pypy")
>       found_pythons = list(Python.find_all())
                        ^^^^^^^^^^^^^^^^^^^^^^^

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry/build/tests/utils/env/python/test_manager.py:32:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry/build/poetry/utils/env/python/manager.py:88:
 in find_all
    for python in findpython.find_all():
                  ^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/__init__.py:46: in find_all
    return Finder().find_all(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/finder.py:128: in find_all
    return self._dedup(matched_python, version_matcher)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/finder.py:215: in _dedup
    return sorted(result.values(), reverse=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:251: in __lt__
    self.freethreaded,
    ^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:125: in freethreaded
    self._freethreaded = self._get_freethreaded()
                         ^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:243: in _get_freethreaded
    return _run_script(str(self.executable), script).strip() == "1"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:23: in _run_script
    return subprocess.run(
/usr/lib/python3.13/subprocess.py:554: in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/subprocess.py:1039: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.13/subprocess.py:1857: in _execute_child
    self._posix_spawn(args, executable, env, restore_signals, close_fds,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: None args: 
['/tmp/pytest-of-sbuild/pytest-0/popen-gw1/te...>
args = 
['/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_all_with_poetry_mana0/.local/share/pypoetry/python/[email protected]/bin/pypy',
 '-EsSc', 'import sysconfig;print(sysconfig.get_config_var("Py_GIL_DISABLED") 
or 0)']
executable = 
'/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_all_with_poetry_mana0/.local/share/pypoetry/python/[email protected]/bin/pypy'
env = None, restore_signals = True, close_fds = True, p2cread = -1
p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = -1, errwrite = 16

    def _posix_spawn(self, args, executable, env, restore_signals, close_fds,
                     p2cread, p2cwrite,
                     c2pread, c2pwrite,
                     errread, errwrite):
        """Execute program using os.posix_spawn()."""
        kwargs = {}
        if restore_signals:
            # See _Py_RestoreSignals() in Python/pylifecycle.c
            sigset = []
            for signame in ('SIGPIPE', 'SIGXFZ', 'SIGXFSZ'):
                signum = getattr(signal, signame, None)
                if signum is not None:
                    sigset.append(signum)
            kwargs['setsigdef'] = sigset
    
        file_actions = []
        for fd in (p2cwrite, c2pread, errread):
            if fd != -1:
                file_actions.append((os.POSIX_SPAWN_CLOSE, fd))
        for fd, fd2 in (
            (p2cread, 0),
            (c2pwrite, 1),
            (errwrite, 2),
        ):
            if fd != -1:
                file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
    
        if close_fds:
            file_actions.append((os.POSIX_SPAWN_CLOSEFROM, 3))
    
        if file_actions:
            kwargs['file_actions'] = file_actions
    
>       self.pid = os.posix_spawn(executable, args, env, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       PermissionError: [Errno 13] Permission denied: 
'/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_all_with_poetry_mana0/.local/share/pypoetry/python/[email protected]/bin/pypy'

/usr/lib/python3.13/subprocess.py:1801: PermissionError
_______________________ test_find_poetry_managed_pythons _______________________
[gw1] linux -- Python 3.13.7 /usr/bin/python3.13

mocked_poetry_managed_python_register = <function 
mocked_poetry_managed_python_register.<locals>.register at 0x7f49b9cab420>

    def test_find_poetry_managed_pythons(
        mocked_poetry_managed_python_register: MockedPoetryPythonRegister,
    ) -> None:
        mocked_poetry_managed_python_register("3.9.1", "cpython")
        mocked_poetry_managed_python_register("3.10.8", "pypy")
    
>       assert len(list(Python.find_poetry_managed_pythons())) == 3
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry/build/tests/utils/env/python/test_manager.py:48:
 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_poetry/build/poetry/utils/env/python/manager.py:98:
 in find_poetry_managed_pythons
    for python in finder.find_all():
                  ^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/finder.py:128: in find_all
    return self._dedup(matched_python, version_matcher)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/finder.py:215: in _dedup
    return sorted(result.values(), reverse=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:251: in __lt__
    self.freethreaded,
    ^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:125: in freethreaded
    self._freethreaded = self._get_freethreaded()
                         ^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:243: in _get_freethreaded
    return _run_script(str(self.executable), script).strip() == "1"
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/findpython/python.py:23: in _run_script
    return subprocess.run(
/usr/lib/python3.13/subprocess.py:554: in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3.13/subprocess.py:1039: in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
/usr/lib/python3.13/subprocess.py:1857: in _execute_child
    self._posix_spawn(args, executable, env, restore_signals, close_fds,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Popen: returncode: None args: 
['/tmp/pytest-of-sbuild/pytest-0/popen-gw1/te...>
args = 
['/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_poetry_managed_pytho1/.local/share/pypoetry/python/[email protected]/bin/python',
 '-EsSc', 'import sysconfig;print(sysconfig.get_config_var("Py_GIL_DISABLED") 
or 0)']
executable = 
'/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_poetry_managed_pytho1/.local/share/pypoetry/python/[email protected]/bin/python'
env = None, restore_signals = True, close_fds = True, p2cread = -1
p2cwrite = -1, c2pread = 14, c2pwrite = 15, errread = -1, errwrite = 16

    def _posix_spawn(self, args, executable, env, restore_signals, close_fds,
                     p2cread, p2cwrite,
                     c2pread, c2pwrite,
                     errread, errwrite):
        """Execute program using os.posix_spawn()."""
        kwargs = {}
        if restore_signals:
            # See _Py_RestoreSignals() in Python/pylifecycle.c
            sigset = []
            for signame in ('SIGPIPE', 'SIGXFZ', 'SIGXFSZ'):
                signum = getattr(signal, signame, None)
                if signum is not None:
                    sigset.append(signum)
            kwargs['setsigdef'] = sigset
    
        file_actions = []
        for fd in (p2cwrite, c2pread, errread):
            if fd != -1:
                file_actions.append((os.POSIX_SPAWN_CLOSE, fd))
        for fd, fd2 in (
            (p2cread, 0),
            (c2pwrite, 1),
            (errwrite, 2),
        ):
            if fd != -1:
                file_actions.append((os.POSIX_SPAWN_DUP2, fd, fd2))
    
        if close_fds:
            file_actions.append((os.POSIX_SPAWN_CLOSEFROM, 3))
    
        if file_actions:
            kwargs['file_actions'] = file_actions
    
>       self.pid = os.posix_spawn(executable, args, env, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       PermissionError: [Errno 13] Permission denied: 
'/tmp/pytest-of-sbuild/pytest-0/popen-gw1/test_find_poetry_managed_pytho1/.local/share/pypoetry/python/[email protected]/bin/python'

/usr/lib/python3.13/subprocess.py:1801: PermissionError
=============================== warnings summary ===============================
tests/console/commands/test_publish.py: 2 warnings
tests/console/commands/test_search.py: 11 warnings
tests/console/commands/test_add.py: 3 warnings
tests/console/commands/test_show.py: 10 warnings
tests/inspection/test_info.py: 24 warnings
tests/inspection/test_lazy_wheel.py: 101 warnings
tests/installation/test_chooser.py: 54 warnings
tests/installation/test_executor.py: 6 warnings
tests/packages/test_direct_origin.py: 1 warning
tests/installation/test_installer.py: 86 warnings
tests/puzzle/test_solver.py: 21 warnings
tests/publishing/test_uploader.py: 18 warnings
tests/repositories/test_legacy_repository.py: 84 warnings
tests/repositories/test_pypi_repository.py: 57 warnings
tests/puzzle/test_provider.py: 24 warnings
tests/repositories/test_repository_pool.py: 2 warnings
tests/utils/test_authenticator.py: 73 warnings
tests/utils/test_isolated_build.py: 12 warnings
  /usr/lib/python3/dist-packages/httpretty/core.py:1077: DeprecationWarning: 
datetime.datetime.utcnow() is deprecated and scheduled for removal in a future 
version. Use timezone-aware objects to represent datetimes in UTC: 
datetime.datetime.now(datetime.UTC).
    now = datetime.utcnow()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [3] tests/console/commands/env/test_activate.py:53: Only Windows shells
SKIPPED [1] tests/console/commands/self/test_sync.py:26: Only relevant for 
`poetry self install`
SKIPPED [1] tests/console/commands/test_run.py:156: Poetry only installs CMD 
script files for console scripts of editable dependencies on Windows
SKIPPED [1] tests/console/commands/test_sync.py:26: Only relevant for `poetry 
install`
SKIPPED [1] tests/installation/test_executor.py:414: 
https://github.com/python-poetry/poetry/issues/7983
SKIPPED [1] tests/utils/env/test_env_manager.py:1265: requires darwin
SKIPPED [1] tests/utils/test_python_manager.py:99: Windows only
FAILED tests/utils/env/python/test_manager.py::test_find_all_with_poetry_managed
FAILED tests/utils/env/python/test_manager.py::test_find_poetry_managed_pythons
====== 2 failed, 2317 passed, 9 skipped, 589 warnings in 79.64s (0:01:19) ======
E: pybuild pybuild:389: test: plugin pyproject failed with:  
[too-long-redacted] t_shutil_which_python_provider'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:103: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to