Source: ocrmypdf Version: 7.4.0-3 X-Debbugs-CC: debian...@lists.debian.org User: debian...@lists.debian.org Usertags: regression
Dear maintainers, With a recent upload of ocrmypdf the autopkgtest of ocrmypdf fails in testing when that autopkgtest is run with the binary packages of ocrmypdf from unstable. It passes when run with only packages from testing. In tabular form: pass fail ocrmypdf from testing 7.4.0-3 versioned deps [0] from testing from unstable all others from testing from testing I copied some of the output at the bottom of this report. Currently this regression is contributing to the delay of the migration to testing [1]. Can you please investigate the situation and fix it? If needed, please change the bug's severity. More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] You can see what packages were added from the second line of the log file quoted below. The migration software adds source package from unstable to the list if they are needed to install packages from ocrmypdf/7.4.0-3. I.e. due to versioned dependencies or breaks/conflicts. [1] https://qa.debian.org/excuses.php?package=ocrmypdf https://ci.debian.net/data/autopkgtest/testing/amd64/o/ocrmypdf/1678107/log.gz =================================== FAILURES =================================== _______________ test_compression_changed[congress.jpg-lossless] ________________ spoof_tesseract_noop = {'ADTTMP': '/tmp/autopkgtest-lxc.gcxpcsy1/downtmp/autopkgtest_tmp', 'ADT_ARTIFACTS': '/tmp/autopkgtest-lxc.gcxpcsy1/do...cxpcsy1/downtmp/test-suite-artifacts', 'AUTOPKGTEST_TMP': '/tmp/autopkgtest-lxc.gcxpcsy1/downtmp/autopkgtest_tmp', ...} ocrmypdf_exec = ['/usr/bin/python3', '-m', 'ocrmypdf'] resources = PosixPath('/tmp/autopkgtest-lxc.gcxpcsy1/downtmp/build.WgA/src/tests/resources') image = 'congress.jpg', compression = 'lossless' outpdf = '/tmp/pytest-of-debci/pytest-0/test_compression_changed_congr0/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): 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', '--optimize', '0', '--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, err pdfinfo = PdfInfo(output_file) pdfimage = pdfinfo[0].images[0] if compression == "jpeg": assert pdfimage.enc == Encoding.jpeg else: > assert pdfimage.enc not in (Encoding.jpeg, Encoding.jpeg2000) E AssertionError: assert <Encoding.jpeg: 2> not in (<Encoding.jpeg: 2>, <Encoding.jpeg2000: 3>) E + where <Encoding.jpeg: 2> = <ImageInfo '/R8' image 1000x1520 Colorspace.rgb 3 8 Encoding.jpeg 150.0x150.0>.enc tests/test_main.py:785: AssertionError
signature.asc
Description: OpenPGP digital signature