Source: img2pdf, ocrmypdf Version: img2pdf/0.3.0-1 Version: ocrmypdf/6.2.2-2 User: debian...@lists.debian.org Usertags: breaks needs-update
Dear Sean, josch, With a recent upload of img2pdf the autopkgtest of ocrmypdf started to fail in unstable and testing. I copied the error below. Currently this regression is delaying the migration of img2pdf to testing by 13 days. Could you please investigate the situation and determine which package needs to fix something, and reassign appropriately? More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul https://ci.debian.net/data/autopkgtest/testing/amd64/o/ocrmypdf/644606/log.gz autopkgtest [04:47:22]: test test-suite: [----------------------- ============================= test session starts ============================== platform linux -- Python 3.6.6, pytest-3.6.2, py-1.5.3, pluggy-0.6.0 rootdir: /tmp/autopkgtest-lxc.zvvj_xov/downtmp/build.sJS/src, inifile: setup.cfg plugins: timeout-1.2.1, helpers-namespace-2017.11.11, cov-2.5.1 collected 168 items tests/test_hocrtransform.py . [ 0%] tests/test_lept.py . [ 1%] tests/test_main.py ..................................................... [ 32%] ........................s........................F..F............s..... [ 75%] tests/test_metadata.py .....xxxx.... [ 82%] tests/test_multiprocessing.py . [ 83%] tests/test_pageinfo.py ........ [ 88%] tests/test_qpdf.py .....s [ 91%] tests/test_tess3.py sss [ 93%] tests/test_tess4.py ..... [ 96%] tests/test_unpaper.py s.. [ 98%] tests/test_userunit.py ... [100%] =================================== FAILURES =================================== ____________________ test_compression_preserved[baiona.png] ____________________ spoof_tesseract_noop = {'ADTTMP': '/tmp/autopkgtest-lxc.zvvj_xov/downtmp/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest-lxc.zvvj_xov/do...vvj_xov/downtmp/test-suite-artifacts', 'AUTOPKGTEST_TMP': '/tmp/autopkgtest-lxc.zvvj_xov/downtmp/autopkgtest_tmp', ...} ocrmypdf_exec = ['/usr/bin/python3', '-m', 'ocrmypdf'] resources = PosixPath('/tmp/autopkgtest-lxc.zvvj_xov/downtmp/build.sJS/src/tests/resources') image = 'baiona.png' outpdf = '/tmp/pytest-of-debci/pytest-0/test_compression_preserved_bai0/out.pdf' @pytest.mark.parametrize('image', [ 'baiona.png', 'baiona_gray.png', 'congress.jpg' ]) def test_compression_preserved(spoof_tesseract_noop, ocrmypdf_exec, resources, image, outpdf): from PIL import Image input_file = str(resources / image) output_file = str(outpdf) im = Image.open(input_file) # Runs: ocrmypdf - output.pdf < testfile with open(input_file, 'rb') as input_stream: p_args = ocrmypdf_exec + [ '--image-dpi', '150', '--output-type', 'pdf', '-', output_file] p = Popen( p_args, close_fds=True, stdout=PIPE, stderr=PIPE, stdin=input_stream, env=spoof_tesseract_noop) out, err = p.communicate() > assert p.returncode == ExitCode.ok E assert 15 == <ExitCode.ok: 0> E + where 15 = <subprocess.Popen object at 0x7f6e8707bac8>.returncode E + and <ExitCode.ok: 0> = ExitCode.ok tests/test_main.py:852: AssertionError __________________ test_compression_changed[baiona.png-jpeg] ___________________ spoof_tesseract_noop = {'ADTTMP': '/tmp/autopkgtest-lxc.zvvj_xov/downtmp/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest-lxc.zvvj_xov/do...vvj_xov/downtmp/test-suite-artifacts', 'AUTOPKGTEST_TMP': '/tmp/autopkgtest-lxc.zvvj_xov/downtmp/autopkgtest_tmp', ...} ocrmypdf_exec = ['/usr/bin/python3', '-m', 'ocrmypdf'] resources = PosixPath('/tmp/autopkgtest-lxc.zvvj_xov/downtmp/build.sJS/src/tests/resources') image = 'baiona.png', compression = 'jpeg' outpdf = '/tmp/pytest-of-debci/pytest-0/test_compression_changed_baion0/out.pdf' @pytest.mark.parametrize('image,compression', [ ('baiona.png', 'jpeg'), ('baiona_gray.png', 'lossless'), ('congress.jpg', 'lossless') ]) def test_compression_changed(spoof_tesseract_noop, ocrmypdf_exec, resources, image, compression, outpdf): from PIL import Image input_file = str(resources / image) output_file = str(outpdf) im = Image.open(input_file) # Runs: ocrmypdf - output.pdf < testfile with open(input_file, 'rb') as input_stream: p_args = ocrmypdf_exec + [ '--image-dpi', '150', '--output-type', 'pdfa', '--pdfa-image-compression', compression, '-', output_file] p = Popen( p_args, close_fds=True, stdout=PIPE, stderr=PIPE, stdin=input_stream, env=spoof_tesseract_noop) out, err = p.communicate() > assert p.returncode == ExitCode.ok E assert 15 == <ExitCode.ok: 0> E + where 15 = <subprocess.Popen object at 0x7f6e86f0a470>.returncode E + and <ExitCode.ok: 0> = ExitCode.ok tests/test_main.py:897: AssertionError ======== 2 failed, 155 passed, 7 skipped, 4 xfailed in 1050.28 seconds =========
signature.asc
Description: OpenPGP digital signature