Bug#1055337: python-cffi fails autopkg tests with Python 3.12

2023-11-04 Thread Matthias Klose



On 04.11.23 16:17, Stefano Rivera wrote:

Hi Matthias (2023.11.04_14:19:12_+)

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/

That just looks like no Internet access during the tests. Broken proxy
on the host?


This is not the autopkg test. It's the build which fails. The build 
isn't supposed to access the network during the build.




Bug#1055337: python-cffi fails autopkg tests with Python 3.12

2023-11-04 Thread Stefano Rivera
Hi Matthias (2023.11.04_14:19:12_+)
> WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
> status=None)) after connection broken by 'ProxyError('Cannot connect to 
> proxy.', NewConnectionError(' object at 0x7f344bf33f80>: Failed to establish a new connection: [Errno 111] 
> Connection refused'))': /simple/setuptools/

That just looks like no Internet access during the tests. Broken proxy
on the host?

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1055337: python-cffi fails autopkg tests with Python 3.12

2023-11-04 Thread Matthias Klose

Source: python-cffi
Version: 1.16.0-1
Severity: important
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-cffi fails autopkg tests with Python 3.12

see
https://launchpadlibrarian.net/695645855/buildlog_ubuntu-noble-amd64.python-cffi_1.16.0-1ubuntu1_BUILDING.txt.gz

=== FAILURES ===
_ TestZIntegration.test_infrastructure _

self = 

def test_infrastructure(self):

  run_setup_and_program('infrastructure', '''

import snip_infrastructure
assert snip_infrastructure.func() == 42
''')

testing/cffi0/test_zintegration.py:128:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 
'install', 'setuptools', 'wheel', ...],)
kwargs = {}, retcode = 1
cmd = ['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', ...]

def check_call(*popenargs, **kwargs):
"""Run command with arguments.  Wait for command to complete.  If
the exit code was zero then return, otherwise raise
CalledProcessError.  The CalledProcessError object will have the
return code in the returncode attribute.

The arguments are the same as for the call function.  Example:

check_call(["ls", "-l"])

"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]

  raise CalledProcessError(retcode, cmd)

E   subprocess.CalledProcessError: Command 
'['/tmp/ffi-0/infrastructure-cpy/bin/python', '-m', 'pip', 'install', 
'setuptools', 'wheel', '--upgrade']' returned non-zero exit status 1.

/usr/lib/python3.12/subprocess.py:413: CalledProcessError
- Captured stdout call -
created virtual environment CPython3.12.0.final.0-64 in 186ms
  creator CPython3Posix(dest=/tmp/ffi-0/infrastructure-cpy, clear=False, 
no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, via=copy, 
app_data_dir=/<>/debian/.debhelper/generated/_source/home/.local/share/virtualenv)
added seed packages: pip==23.3
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
- Captured stderr call -
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', 
NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection 
refused'))': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools (from 
versions: none)
ERROR: No matching distribution found for setuptools
 TestZIntegration.test_distutils_module 

self = 

def test_distutils_module(self):

  run_setup_and_program("distutils_module", '''

import snip_basic_verify
p = snip_basic_verify.C.getpwuid(0)
assert snip_basic_verify.ffi.string(p.pw_name) == b"root"
''')

testing/cffi0/test_zintegration.py:134:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
testing/cffi0/test_zintegration.py:107: in run_setup_and_program
venv_dir = create_venv(dirname + '-cpy')
testing/cffi0/test_zintegration.py:29: in create_venv
subprocess.check_call([
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _