[Python-modules-team] Bug#973121: cairocffi: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Oct 27 16:21:19 GMT 2020


Source: cairocffi
Version: 0.9.0-4
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> LC_ALL=C.UTF-8 xvfb-run -a --server-args="-screen 0 1024x768x24" dh_auto_test
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_cairocffi/build; python3.9 -m pytest -k "not test_xcb.py"
> ============================= test session starts ==============================
> platform linux -- Python 3.9.0+, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
> collected 53 items / 2 deselected / 51 selected
> 
> cairocffi/test_cairo.py ..F...........................................   [ 90%]
> cairocffi/test_pixbuf.py .....                                           [100%]
> 
> =================================== FAILURES ===================================
> ______________________________ test_image_surface ______________________________
> 
>     def test_image_surface():
>         assert ImageSurface.format_stride_for_width(
>             cairocffi.FORMAT_ARGB32, 100) == 400
>         assert ImageSurface.format_stride_for_width(
>             cairocffi.FORMAT_A8, 100) == 100
>     
>         surface = ImageSurface(cairocffi.FORMAT_ARGB32, 20, 30)
>         assert surface.get_format() == cairocffi.FORMAT_ARGB32
>         assert surface.get_width() == 20
>         assert surface.get_height() == 30
>         assert surface.get_stride() == 20 * 4
>     
>         with pytest.raises(ValueError):
>             # buffer too small
>             data = array.array('B', b'\x00' * 799)
>             ImageSurface.create_for_data(data, cairocffi.FORMAT_ARGB32, 10, 20)
>         data = array.array('B', b'\x00' * 800)
>         surface = ImageSurface.create_for_data(data, cairocffi.FORMAT_ARGB32,
>                                                10, 20, stride=40)
>         context = Context(surface)
>         # The default source is opaque black:
>         assert context.get_source().get_rgba() == (0, 0, 0, 1)
>         context.paint_with_alpha(0.5)
> >       assert data.tostring() == pixel(b'\x80\x00\x00\x00') * 200
> E       AttributeError: 'array.array' object has no attribute 'tostring'
> 
> cairocffi/test_cairo.py:85: AttributeError
> ============== 1 failed, 50 passed, 2 deselected in 0.43 seconds ===============
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_cairocffi/build; python3.9 -m pytest -k "not test_xcb.py"
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/cairocffi_0.9.0-4_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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list