python3.14-ocrmypdf-17.13.0
checks.x86_64-linux.server
· build #788
· raw
1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-metadata-check-hook.sh13Using pythonMetadataCheckPhase14Sourcing python-namespaces-hook15Sourcing python-catch-conflicts-hook.sh16Sourcing pytest-check-hook17Using pytestCheckPhase
unpackPhase
18unpacking source archive /nix/store/77cd6pwijmyyyr1lcsab4l3nn8r29qp5-source19source root is source20setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/uv.lock"patchPhase
21applying patch /nix/store/42v99qcik26890bb5aqvgwrww90h0i1y-paths.patch22patching file src/ocrmypdf/_exec/ghostscript.py23Hunk #1 succeeded at 36 with fuzz 2.24patching file src/ocrmypdf/_exec/jbig2enc.py25patching file src/ocrmypdf/_exec/pngquant.py26patching file src/ocrmypdf/_exec/tesseract.py27patching file src/ocrmypdf/_exec/unpaper.pyconfigurePhase
28no configure script, doing nothingbuildPhase
29Executing pypaBuildPhase30Setting SETUPTOOLS_SCM_PRETEND_VERSION to 17.13.031Including all tracked files automatically32Creating a wheel...33pypa build flags: --no-isolation --outdir dist/ --wheel34* Getting build dependencies for wheel...35* Building wheel...36Successfully built ocrmypdf-17.13.0-py3-none-any.whl37Finished creating a wheel...38Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
39Executing pythonRuntimeDepsCheck40Checking runtime dependencies for ocrmypdf-17.13.0-py3-none-any.whl41Finished executing pythonRuntimeDepsCheckinstallPhase
42Executing pypaInstallPhase43Successfully installed ocrmypdf-17.13.0-py3-none-any.whl44Finished executing pypaInstallPhasepythonOutputDistPhase
45Executing pythonOutputDistPhase46Finished executing pythonOutputDistPhasefixupPhase
47shrinking RPATHs of ELF executables and libraries in /nix/store/kiya9z12yjrgd88rmz72brxjax449gps-python3.14-ocrmypdf-17.13.0-dist48checking for references to /build/ in /nix/store/kiya9z12yjrgd88rmz72brxjax449gps-python3.14-ocrmypdf-17.13.0-dist...49patching script interpreter paths in /nix/store/kiya9z12yjrgd88rmz72brxjax449gps-python3.14-ocrmypdf-17.13.0-dist50shrinking RPATHs of ELF executables and libraries in /nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.051checking for references to /build/ in /nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.0...52patching script interpreter paths in /nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.053/nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.0/lib/python3.14/site-packages/ocrmypdf/__main__.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/bya4ansy58az5133kryqp2cvrxbnz8qy-python3-3.14.10/bin/python3"54stripping (with command strip and flags -S -p) in /nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.0/lib /nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.0/bin55Rewriting #!/nix/store/bya4ansy58az5133kryqp2cvrxbnz8qy-python3-3.14.10/bin/python3.14 to #!/nix/store/bya4ansy58az5133kryqp2cvrxbnz8qy-python3-3.14.1056wrapping `/nix/store/prdz2ip38hn4byx51zwqx5hj6q85h19x-python3.14-ocrmypdf-17.13.0/bin/ocrmypdf'...57Executing pythonRemoveTestsDir58Finished executing pythonRemoveTestsDirinstallCheckPhase
59no Makefile or custom installCheckPhase, doing nothingpythonImportsCheckPhase
60Executing pythonImportsCheckPhase61Check whether the following modules can be imported: ocrmypdfpythonMetadataCheckPhase
62Executing pythonMetadataCheckPhasepytestCheckPhase
63Executing pytestCheckPhase64pytest flags: -m pytest -k not\ \(test_unzoned_creation_date_assumes_local_zone\)\ and\ not\ \(test_assume_local_time_zone\) --numprocesses=1265============================= test session starts ==============================66platform linux -- Python 3.14.10, pytest-9.1.1, pluggy-1.7.067rootdir: /build/source68configfile: pyproject.toml69testpaths: tests70plugins: hypothesis-6.168.1, xdist-3.8.07112 workers [2194 items] 72........................................................................ [ 3%]73........................................................................ [ 6%]74..........................s..................ssss...s.s....sss.........s [ 9%]75..s......s..s...............s....s.s.......................x.........s.. [ 13%]76sss..................................................................... [ 16%]77..................................ssss....x............................. [ 19%]78........................................................................ [ 22%]79............................................ssssssssss........s......... [ 26%]80........................................................................ [ 29%]81.......................................sss.ssssss......sssssssss........ [ 32%]82..............x.................................................ssssssss [ 36%]83ssssssssssssssssssssssssssssssssssssss.sssssssssssssssssssssssssssssssss [ 39%]84ssssssssssssssssssssssssssssssss......................sss............... [ 42%]85........................................................................ [ 45%]86........................................................................ [ 49%]87........................................................................ [ 52%]88........................................................................ [ 55%]89........................................................................ [ 59%]90........................................................................ [ 62%]91.sss.sss................................................................ [ 65%]92.....................................................F.............ss... [ 68%]93......................ssssssssssssssss.....s......................ss.... [ 72%]94..........................s.......................ssssssss.ss..s.sssssss [ 75%]95sssssss................................................................. [ 78%]96........................................................................ [ 82%]97s.........................ss........s................................... [ 85%]98...................ss..........x........................................ [ 88%]99.............ss................s........................................ [ 91%]100..................................................................ssss.. [ 95%]101........................................................................ [ 98%]102.................................. [100%]103=================================== FAILURES ===================================104_________________________ test_validation_performance __________________________105[gw3] linux -- Python 3.14.10 /nix/store/bya4ansy58az5133kryqp2cvrxbnz8qy-python3-3.14.10/bin/python3.14106107one_page_ocr = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw3/perf0/graph.pdf')108tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw3/test_validation_performance0')109110 def test_validation_performance(one_page_ocr, tmp_path):111 """A 300-page candidate validates in a few seconds.112 113 This measures scaling with the number of objects. The cost of content114 streams grows with the number of text-showing operators: pages of dense115 OCR text take about 13 ms each.116 """117 merged = tmp_path / 'merged.pdf'118 sources = [pikepdf.open(one_page_ocr) for _ in range(300)]119 try:120 with pikepdf.new() as pdf:121 for source in sources:122 # Pages from separate Pdf objects are copied with all their123 # resources, so every page has its own fonts and images.124 pdf.pages.extend(source.pages)125 pdf.save(merged)126 finally:127 for source in sources:128 source.close()129 candidate = tmp_path / 'c.pdf'130 speculative_pdfa_conversion(merged, candidate, 'pdfa-2')131 with pikepdf.open(candidate) as pdf:132 assert len(pdf.pages) == 300133 assert len(pdf.objects) > 300 * 5134 135 start = time.perf_counter()136 report = validate_written(candidate, '2b')137 elapsed = time.perf_counter() - start138 assert report.verdict == 'pass', report.summary()139 # Locally this takes ~3 s; a pathological regression (e.g. quadratic140 # scaling in the number of objects/pages) would be many times slower,141 # not just somewhat slower. 20 s gives generous headroom for slow,142 # shared CI runners (observed 6.7 s on ubuntu-22.04/py3.13) while still143 # catching that kind of regression.144> assert elapsed < 20.0, f"validation took {elapsed:.1f} s"145E AssertionError: validation took 46.9 s146E assert 46.850939837000624 < 20.0147148tests/test_pdfa_internal.py:162: AssertionError149---------------------------- Captured stderr setup -----------------------------150Scanning contents ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1 0:00:00151OCR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1 0:00:00152Linearizing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 100/100 0:00:00153Recompressing JPEGs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--154Deflating JPEGs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--155JBIG2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--156=========================== short test summary info ============================157FAILED tests/test_pdfa_internal.py::test_validation_performance - AssertionError: validation took 46.9 s158assert 46.850939837000624 < 20.0159====== 1 failed, 1955 passed, 235 skipped, 4 xfailed in 957.46s (0:15:57) ======