Bug#1022452: fontmake: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 returned exit code 13
Source: fontmake
Version: 2.4.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20221023 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>>'
> dh_auto_test
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 52 items
>
> tests/test_instantiator.py ............................ [ 53%]
> tests/test_main.py FF.F.................... [100%]
>
> =================================== FAILURES ===================================
> ______________________________ test_interpolation ______________________________
>
> data_dir = PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/tests/data')
> tmp_path = PosixPath('/tmp/pytest-of-user42/pytest-1/test_interpolation0')
>
> def test_interpolation(data_dir, tmp_path):
> shutil.copytree(data_dir / "DesignspaceTest", tmp_path / "sources")
>
> fontmake.__main__.main(
> [
> "-m",
> str(tmp_path / "sources" / "DesignspaceTest.designspace"),
> "-i",
> "--output-dir",
> str(tmp_path),
> ]
> )
>
> assert {p.name for p in tmp_path.glob("*.*")} == {
> "MyFont-Regular.ttf",
> "MyFont-Regular.otf",
> }
>
> test_output_ttf = fontTools.ttLib.TTFont(tmp_path / "MyFont-Regular.ttf")
> assert test_output_ttf["OS/2"].usWeightClass == 400
> > glyph = test_output_ttf.getGlyphSet()["l"]._glyph
> E AttributeError: '_TTGlyphGlyf' object has no attribute '_glyph'
>
> tests/test_main.py:31: AttributeError
> ________________________ test_interpolation_mutatormath ________________________
>
> data_dir = PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/tests/data')
> tmp_path = PosixPath('/tmp/pytest-of-user42/pytest-1/test_interpolation_mutatormath0')
>
> def test_interpolation_mutatormath(data_dir, tmp_path):
> shutil.copytree(data_dir / "DesignspaceTest", tmp_path / "sources")
>
> fontmake.__main__.main(
> [
> "-m",
> str(tmp_path / "sources" / "DesignspaceTest.designspace"),
> "-i",
> "--use-mutatormath",
> "--output-dir",
> str(tmp_path),
> ]
> )
>
> assert {p.name for p in tmp_path.glob("*.*")} == {
> "MyFont-Regular.ttf",
> "MyFont-Regular.otf",
> }
>
> test_output_ttf = fontTools.ttLib.TTFont(tmp_path / "MyFont-Regular.ttf")
> assert test_output_ttf["OS/2"].usWeightClass == 400
> > glyph = test_output_ttf.getGlyphSet()["l"]._glyph
> E AttributeError: '_TTGlyphGlyf' object has no attribute '_glyph'
>
> tests/test_main.py:65: AttributeError
> _________________ test_interpolation_and_masters_as_instances __________________
>
> data_dir = PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/tests/data')
> tmp_path = PosixPath('/tmp/pytest-of-user42/pytest-1/test_interpolation_and_masters0')
>
> def test_interpolation_and_masters_as_instances(data_dir, tmp_path):
> shutil.copytree(data_dir / "DesignspaceTest", tmp_path / "sources")
>
> fontmake.__main__.main(
> [
> "-m",
> str(tmp_path / "sources" / "DesignspaceTest.designspace"),
> "-i",
> "-M",
> "--output-dir",
> str(tmp_path),
> ]
> )
>
> assert {p.name for p in tmp_path.glob("*.*")} == {
> "MyFont-Bold.otf",
> "MyFont-Bold.ttf",
> "MyFont-Light.otf",
> "MyFont-Light.ttf",
> "MyFont-Regular.otf",
> "MyFont-Regular.ttf",
> }
>
> test_output_ttf = fontTools.ttLib.TTFont(tmp_path / "MyFont-Regular.ttf")
> assert test_output_ttf["OS/2"].usWeightClass == 400
> > glyph = test_output_ttf.getGlyphSet()["l"]._glyph
> E AttributeError: '_TTGlyphGlyf' object has no attribute '_glyph'
>
> tests/test_main.py:122: AttributeError
> =========================== short test summary info ============================
> FAILED tests/test_main.py::test_interpolation - AttributeError: '_TTGlyphGlyf...
> FAILED tests/test_main.py::test_interpolation_mutatormath - AttributeError: '...
> FAILED tests/test_main.py::test_interpolation_and_masters_as_instances - Attr...
> ========================= 3 failed, 49 passed in 3.75s =========================
> E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build; python3.10 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/10/23/fontmake_2.4.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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.
Reply to: