nixbot

builds

failed python3.14-ocrmypdf-17.13.0 checks.x86_64-linux.server · build #206 · raw

1structuredAttrs is enabled2Sourcing python-remove-tests-dir-hook3Sourcing python-catch-conflicts-hook.sh4Sourcing python-remove-bin-bytecode-hook.sh5Sourcing pypa-build-hook6Using pypaBuildPhase7Sourcing python-runtime-deps-check-hook8Using pythonRuntimeDepsCheckHook9Sourcing pypa-install-hook10Using pypaInstallPhase11Sourcing python-imports-check-hook.sh12Using pythonImportsCheckPhase13Sourcing python-metadata-check-hook.sh14Using pythonMetadataCheckPhase15Sourcing python-namespaces-hook16Sourcing python-catch-conflicts-hook.sh17Sourcing pytest-check-hook18Using pytestCheckPhase
unpackPhase
19unpacking source archive /nix/store/77cd6pwijmyyyr1lcsab4l3nn8r29qp5-source20source root is source21setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/uv.lock"
patchPhase
22applying patch /nix/store/v9wpaard62y44rmnbikarsv2xrid57kh-paths.patch23patching file src/ocrmypdf/_exec/ghostscript.py24Hunk #1 succeeded at 36 with fuzz 2.25patching file src/ocrmypdf/_exec/jbig2enc.py26patching file src/ocrmypdf/_exec/pngquant.py27patching file src/ocrmypdf/_exec/tesseract.py28patching file src/ocrmypdf/_exec/unpaper.py
configurePhase
29no configure script, doing nothing
buildPhase
30Executing pypaBuildPhase31Setting SETUPTOOLS_SCM_PRETEND_VERSION to 17.13.032Including all tracked files automatically33Creating a wheel...34pypa build flags: --no-isolation --outdir dist/ --wheel35* Getting build dependencies for wheel...36* Building wheel...37Successfully built ocrmypdf-17.13.0-py3-none-any.whl38Finished creating a wheel...39Finished executing pypaBuildPhase40buildPhase completed in 32 seconds
pythonRuntimeDepsCheckHook
41Executing pythonRuntimeDepsCheck42Checking runtime dependencies for ocrmypdf-17.13.0-py3-none-any.whl43Finished executing pythonRuntimeDepsCheck
installPhase
44Executing pypaInstallPhase45Successfully installed ocrmypdf-17.13.0-py3-none-any.whl46Finished executing pypaInstallPhase
pythonOutputDistPhase
47Executing pythonOutputDistPhase48Finished executing pythonOutputDistPhase
fixupPhase
49shrinking RPATHs of ELF executables and libraries in /nix/store/rznqhrxlkcmhikk0s03b0s6mq4jbrw49-python3.14-ocrmypdf-17.13.0-dist50checking for references to /build/ in /nix/store/rznqhrxlkcmhikk0s03b0s6mq4jbrw49-python3.14-ocrmypdf-17.13.0-dist...51patching script interpreter paths in /nix/store/rznqhrxlkcmhikk0s03b0s6mq4jbrw49-python3.14-ocrmypdf-17.13.0-dist52shrinking RPATHs of ELF executables and libraries in /nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.053checking for references to /build/ in /nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.0...54patching script interpreter paths in /nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.055/nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-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/xahxrjs30p3mw0a42bqg9ikgkikskw8m-python3-3.14.8/bin/python3"56stripping (with command strip and flags -S -p) in /nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.0/lib /nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.0/bin57Rewriting #!/nix/store/xahxrjs30p3mw0a42bqg9ikgkikskw8m-python3-3.14.8/bin/python3.14 to #!/nix/store/xahxrjs30p3mw0a42bqg9ikgkikskw8m-python3-3.14.858wrapping `/nix/store/ianxgvj64ykv3j3sqqv44238ixbgnhs5-python3.14-ocrmypdf-17.13.0/bin/ocrmypdf'...59Executing pythonRemoveTestsDir60Finished executing pythonRemoveTestsDir
installCheckPhase
61no Makefile or custom installCheckPhase, doing nothing
pythonImportsCheckPhase
62Executing pythonImportsCheckPhase63Check whether the following modules can be imported: ocrmypdf
pythonMetadataCheckPhase
64Executing pythonMetadataCheckPhase
pytestCheckPhase
65Executing pytestCheckPhase66pytest flags: -m pytest -k not\ \(test_unzoned_creation_date_assumes_local_zone\)\ and\ not\ \(test_assume_local_time_zone\) --numprocesses=1267============================= test session starts ==============================68platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.069rootdir: /build/source70configfile: pyproject.toml71testpaths: tests72plugins: hypothesis-6.168.1, xdist-3.8.07312 workers [2194 items] 74........................................................................ [ 3%]75........................................................................ [ 6%]76.............s.............s............................................ [ 9%]77.............ss.ss.......ss............................................. [ 13%]78.x..........s.sss..s..ss.s.................................x............ [ 16%]79........................................................................ [ 19%]80........................................................................ [ 22%]81...........s.......................................................sssss [ 26%]82sssssssss..s.s...sss.................................................... [ 29%]83....................................................x................... [ 32%]84........................................................................ [ 36%]85...................................................s..s.sss..s..ss..s..s [ 39%]86s.ss.s.ss..ss.sss...ssssss.sss.s.ss.ss..ss.s.s.ssssss.sssssss.ss.sssssss [ 42%]87.ssssss.ssssssss.ssssss..sssssssss.ss...........................ssss.... [ 45%]88..........ss............................................................ [ 49%]89....................................s.ss.s.s.ss.sss.ss.ss.ss............ [ 52%]90........................................................................ [ 55%]91........................................................................ [ 59%]92...........................s..ss...ssss.s.ss.s.s........................ [ 62%]93.......................................................................s [ 65%]94sss.sssss..................s............................................ [ 68%]95...........................ss........................................... [ 72%]96........ss..............ssssssssssssssssss.........................F.... [ 75%]97................................s....................................... [ 78%]98........................................................................ [ 82%]99.....................................x.................................. [ 85%]100......s....................sss..............ss..ss..s................... [ 88%]101........................................................................ [ 91%]102..........ss.................s.......................................... [ 95%]103...............sssss.....................ssssssssssssssssssssss......... [ 98%]104.................................. [100%]105=================================== FAILURES ===================================106_________________________ test_validation_performance __________________________107[gw4] linux -- Python 3.14.8 /nix/store/xahxrjs30p3mw0a42bqg9ikgkikskw8m-python3-3.14.8/bin/python3.14108109one_page_ocr = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw4/perf0/graph.pdf')110tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/popen-gw4/test_validation_performance0')111112 def test_validation_performance(one_page_ocr, tmp_path):113 """A 300-page candidate validates in a few seconds.114 115 This measures scaling with the number of objects. The cost of content116 streams grows with the number of text-showing operators: pages of dense117 OCR text take about 13 ms each.118 """119 merged = tmp_path / 'merged.pdf'120 sources = [pikepdf.open(one_page_ocr) for _ in range(300)]121 try:122 with pikepdf.new() as pdf:123 for source in sources:124 # Pages from separate Pdf objects are copied with all their125 # resources, so every page has its own fonts and images.126 pdf.pages.extend(source.pages)127 pdf.save(merged)128 finally:129 for source in sources:130 source.close()131 candidate = tmp_path / 'c.pdf'132 speculative_pdfa_conversion(merged, candidate, 'pdfa-2')133 with pikepdf.open(candidate) as pdf:134 assert len(pdf.pages) == 300135 assert len(pdf.objects) > 300 * 5136 137 start = time.perf_counter()138 report = validate_written(candidate, '2b')139 elapsed = time.perf_counter() - start140 assert report.verdict == 'pass', report.summary()141 # Locally this takes ~3 s; a pathological regression (e.g. quadratic142 # scaling in the number of objects/pages) would be many times slower,143 # not just somewhat slower. 20 s gives generous headroom for slow,144 # shared CI runners (observed 6.7 s on ubuntu-22.04/py3.13) while still145 # catching that kind of regression.146> assert elapsed < 20.0, f"validation took {elapsed:.1f} s"147E AssertionError: validation took 73.7 s148E assert 73.70914469400304 < 20.0149150tests/test_pdfa_internal.py:162: AssertionError151---------------------------- Captured stderr setup -----------------------------152Scanning contents ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1 0:00:00153OCR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1/1 0:00:00154Linearizing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 100/100 0:00:00155Recompressing JPEGs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--156Deflating JPEGs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--157JBIG2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% 0/0 -:--:--158=========================== short test summary info ============================159FAILED tests/test_pdfa_internal.py::test_validation_performance - AssertionError: validation took 73.7 s160assert 73.70914469400304 < 20.0161===== 1 failed, 1955 passed, 235 skipped, 4 xfailed in 1761.95s (0:29:21) ======