0.5.1 test case failures on Fedora Rawhide #187

Open
opened 2023-12-21 13:18:14 +00:00 by gms · 1 comment

A few of the img2pdf tests fail on current Fedora Rawhide:

Basically it's the same list as in #178 plus two new icc related cases (list is the same in aarch64 and x86_64):

FAILED src/img2pdf_test.py::test_jpg_2000_rgba8[internal] - subprocess.Called...
FAILED src/img2pdf_test.py::test_jpg_2000_rgba8[pikepdf] - subprocess.CalledP...
FAILED src/img2pdf_test.py::test_jpg_2000_rgba16[internal] - subprocess.Calle...
FAILED src/img2pdf_test.py::test_jpg_2000_rgba16[pikepdf] - subprocess.Called...
FAILED src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: asser...
FAILED src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: assert...
FAILED src/img2pdf_test.py::test_miff_cmyk16[internal] - assert 6.35075 > 50
FAILED src/img2pdf_test.py::test_miff_cmyk16[pikepdf] - assert 6.35075 > 50
ERROR src/img2pdf_test.py::test_png_icc[internal] - AssertionError: assert 'd...
ERROR src/img2pdf_test.py::test_png_icc[pikepdf] - AssertionError: assert 'd6...

ICC issue in detail:

==================================== ERRORS ====================================
___________________ ERROR at setup of test_png_icc[internal] ___________________
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f38f67e0a10>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all')
alpha = array([[[0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
 ...
        [0., 0., 0., 0.],
        ...,
        [0., 0., 0., 0.],
        [0., 0., 0., 0.],
        [0., 0., 0., 0.]]])
tmp_icc_profile = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/icc_profile0/fake.icc')
    @pytest.fixture(scope="session")
    def tmp_icc_png(tmp_path_factory, alpha, tmp_icc_profile):
        normal16 = alpha[:, :, 0:3]
        tmp_icc_png = tmp_path_factory.mktemp("icc_png") / "icc.png"
        write_png(
            normal16 / 0xFFFF * 0xFF,
            str(tmp_icc_png),
            8,
            2,
            iccp=str(tmp_icc_profile),
        )
>       assert (
            hashlib.md5(tmp_icc_png.read_bytes()).hexdigest()
            == "bf25f673c1617f5f9353b2a043747655"
        )
E       AssertionError: assert 'd650c9ce4600...067dc9f3eb5c7' == 'bf25f673c161...3b2a043747655'
E         - bf25f673c1617f5f9353b2a043747655
E         + d650c9ce4600fbb41da067dc9f3eb5c7
src/img2pdf_test.py:890: AssertionError

A few of the img2pdf tests fail on current Fedora Rawhide: - aarch64: https://kojipkgs.fedoraproject.org//work/tasks/6320/110646320/build.log - x86_64: https://kojipkgs.fedoraproject.org//work/tasks/6619/110646619/build.log Basically it's the same list as in #178 plus two new icc related cases (list is the same in aarch64 and x86_64): ``` FAILED src/img2pdf_test.py::test_jpg_2000_rgba8[internal] - subprocess.Called... FAILED src/img2pdf_test.py::test_jpg_2000_rgba8[pikepdf] - subprocess.CalledP... FAILED src/img2pdf_test.py::test_jpg_2000_rgba16[internal] - subprocess.Calle... FAILED src/img2pdf_test.py::test_jpg_2000_rgba16[pikepdf] - subprocess.Called... FAILED src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: asser... FAILED src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: assert... FAILED src/img2pdf_test.py::test_miff_cmyk16[internal] - assert 6.35075 > 50 FAILED src/img2pdf_test.py::test_miff_cmyk16[pikepdf] - assert 6.35075 > 50 ERROR src/img2pdf_test.py::test_png_icc[internal] - AssertionError: assert 'd... ERROR src/img2pdf_test.py::test_png_icc[pikepdf] - AssertionError: assert 'd6... ``` ICC issue in detail: ``` ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_png_icc[internal] ___________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f38f67e0a10>, _basetemp=PosixPath('/tmp/pytest-of-mockbuild/pytest-0'), _retention_count=3, _retention_policy='all') alpha = array([[[0., 0., 0., 0.], [0., 0., 0., 0.], [0., 0., 0., 0.], ..., [0., 0., 0., 0.], ... [0., 0., 0., 0.], ..., [0., 0., 0., 0.], [0., 0., 0., 0.], [0., 0., 0., 0.]]]) tmp_icc_profile = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/icc_profile0/fake.icc') @pytest.fixture(scope="session") def tmp_icc_png(tmp_path_factory, alpha, tmp_icc_profile): normal16 = alpha[:, :, 0:3] tmp_icc_png = tmp_path_factory.mktemp("icc_png") / "icc.png" write_png( normal16 / 0xFFFF * 0xFF, str(tmp_icc_png), 8, 2, iccp=str(tmp_icc_profile), ) > assert ( hashlib.md5(tmp_icc_png.read_bytes()).hexdigest() == "bf25f673c1617f5f9353b2a043747655" ) E AssertionError: assert 'd650c9ce4600...067dc9f3eb5c7' == 'bf25f673c161...3b2a043747655' E - bf25f673c1617f5f9353b2a043747655 E + d650c9ce4600fbb41da067dc9f3eb5c7 src/img2pdf_test.py:890: AssertionError ```
Author

I re-ran the tests on current Rawhide and now the jpeg are succeeding, i.e. it just remains:

========================== short test summary info ============================
FAILED src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: asser...
FAILED src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: assert...
FAILED src/img2pdf_test.py::test_miff_cmyk16[internal] - assert 6.35075 > 50
FAILED src/img2pdf_test.py::test_miff_cmyk16[pikepdf] - assert 6.35075 > 50
ERROR src/img2pdf_test.py::test_png_icc[internal] - AssertionError: assert 'd...
ERROR src/img2pdf_test.py::test_png_icc[pikepdf] - AssertionError: assert 'd6...
============= 4 failed, 337 passed, 8 skipped, 2 errors in 56.52s ==============

https://kojipkgs.fedoraproject.org//work/tasks/8350/113658350/build.log

I re-ran the tests on current Rawhide and now the jpeg are succeeding, i.e. it just remains: ``` ========================== short test summary info ============================ FAILED src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: asser... FAILED src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: assert... FAILED src/img2pdf_test.py::test_miff_cmyk16[internal] - assert 6.35075 > 50 FAILED src/img2pdf_test.py::test_miff_cmyk16[pikepdf] - assert 6.35075 > 50 ERROR src/img2pdf_test.py::test_png_icc[internal] - AssertionError: assert 'd... ERROR src/img2pdf_test.py::test_png_icc[pikepdf] - AssertionError: assert 'd6... ============= 4 failed, 337 passed, 8 skipped, 2 errors in 56.52s ============== ``` https://kojipkgs.fedoraproject.org//work/tasks/8350/113658350/build.log
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#187
No description provided.