Page MenuHomePhabricator

[ci,builds-cli] job to update dependencies breaks when trying builds-cli
Closed, ResolvedPublic

Description

https://gitlab.wikimedia.org/repos/cloud/cicd/gitlab-ci/-/jobs/784502

Cloning into '/tmp/builds-cli'...
warning: redirecting to https://gitlab.wikimedia.org/repos/cloud/toolforge/builds-cli.git/
Switched to a new branch 'poetry_autoupdate'
Creating new branch...
Creating virtualenv toolforge-builds-cli-if7S0gSc-py3.13 in /.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
Package operations: 26 installs, 0 updates, 0 removals
  - Installing pycparser (2.21)
  - Installing cffi (1.15.1)
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke build_wheel
    | Command '['/tmp/tmp8_kclc0e/.venv/bin/python', '/usr/local/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/tmp/tmppv24k8__']' returned non-zero exit status 1.
    | 
    | /tmp/tmp8_kclc0e/.venv/lib/python3.13/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    | !!
    | 
    |         ********************************************************************************
    |         Please consider removing the following classifiers in favor of a SPDX license expression:
    | 
    |         License :: OSI Approved :: MIT License
    | 
    |         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
    |         ********************************************************************************
    | 
    | !!
    |   self._finalize_license_expression()
    | running bdist_wheel
    | running build
    | running build_py
    | creating build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/__init__.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/cparser.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/lock.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/error.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/commontypes.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/model.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/ffiplatform.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/vengine_gen.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/recompiler.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/verifier.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/pkgconfig.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/api.py -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/_cffi_include.h -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/parse_c_type.h -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/_embedding.h -> build/lib.linux-x86_64-cpython-313/cffi
    | copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-cpython-313/cffi
    | running build_ext
    | building '_cffi_backend' extension
    | creating build/temp.linux-x86_64-cpython-313/c
    | gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/tmp/tmp8_kclc0e/.venv/include -I/usr/local/include/python3.13 -c c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-313/c/_cffi_backend.o
    | c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
    |    15 | #include <ffi.h>
    |       |          ^~~~~~~
    | compilation terminated.
    | error: command '/usr/bin/gcc' failed with exit code 1
Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with cffi (1.15.1)

Event Timeline

dcaro triaged this task as Medium priority.Apr 2 2026, 3:44 PM
dcaro added a project: tools-platform-team.
dcaro moved this task from Backlog to In progress on the tools-platform-team board.

I had to manually upgrade cffi by unpinning the deps to python 3.9, so it would get a new enough cffi.

dcaro moved this task from In progress to Done on the tools-platform-team board.
dcaro moved this task from Next Up to Done on the Toolforge (Toolforge iteration 26) board.