Repository navigation
The extractor image and the test environment pin pypdf 6.21.4 - #275
Merged
Merged
Conversation
Bumps [pypdf](https://github.com/py-pdf/pypdf) from 6.21.2 to 6.21.4. - [Release notes](https://github.com/py-pdf/pypdf/releases) - [Changelog](https://github.com/py-pdf/pypdf/blob/main/CHANGELOG.md) - [Commits](py-pdf/pypdf@6.21.2...6.21.4) --- updated-dependencies: - dependency-name: pypdf dependency-version: 6.21.4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
Bot
force-pushed
the
dependabot/uv/extractor/pypdf-6.21.4
branch
from
November 5, 2026 16:27
e577345 to
5df3145
Compare
Signed-off-by: zlareb1 <[email protected]>
test_the_image_locks_what_the_tests_ran requires both locks to hold one version of each shared package. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
This was referenced Nov 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #184
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The document extractor image ships pypdf 6.21.4, which fixes security bugs in reading malformed PDFs.
Why
pypdf 6.21.3 and 6.21.4 fix security bugs in reading malformed PDFs, and the extractor reads uploaded PDFs with
pypdf.PdfReader(extractor/loom_extractor/pdffile.py). The release notes list each fix: https://github.com/py-pdf/pypdf/releases/tag/6.21.3 and https://github.com/py-pdf/pypdf/releases/tag/6.21.4.The root
uv.lockmoves withextractor/uv.lock:tests/unit/test_extractor_service.py::test_the_image_locks_what_the_tests_ranrequires every package both locks hold to be at one version, so the image runs what the tests ran. Bumping either lock alone fails that test, which is why the root-lock-only bump in the related pull request is red.Scope and risk
Only the pypdf entry changes in each lock: its version and its file metadata. The
pypdf>=6.21,<7ranges in bothpyproject.tomlfiles already allow 6.21.4. Nothing else in either lock moves.The extractor stamps each PDF artifact's parser version with the pypdf version (
extractor/loom_extractor/pdffile.py). A PDF ingested after the new extractor image rolls out namespypdf6.21.4in its artifact's parser version. Documents already ingested keep their artifacts until they are ingested again, so the fixes reach an existing PDF only on its next ingest. 6.21.3 also fixes how text is read from CID fonts with indirect widths, so a re-ingested PDF can give different text; the document row'sparser(loom-pdf/1+pypdf6.21.4) tells that artifact from one read with 6.21.2.Compatibility, rollout and rollback
extractor/Dockerfilerebuilds it.loom-pdf/1+pypdf6.21.4parser stamp until they are ingested again.Tests
extractor/Dockerfile, which runsuv sync --lockedagainst the newextractor/uv.lock, and passes Quickstart on amd64 and arm64.uv lock --checkpasses for the root lock and forextractor/. The hashes match PyPI's 6.21.4 files.python -m pytest -q tests/unit/test_extractor_service.py tests/unit/test_document_extraction_office.py tests/unit/test_document_extraction.py tests/unit/test_package_contracts.py: 266 passed.ruff + mypy-gate,format (biome, prettier, taplo, shfmt)andpytest unit + coverage(27510 passed, none failed); the first checklist item rests on those CI jobs.test_the_delimiter_is_sniffed_in_bounded_time, a 5-second limit on sniffing a CSV delimiter. Those 4 cases fail the same way on this machine with pypdf 6.21.2, so the bump does not cause them. The test has no skip marker, and CI's unit job passes it.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): dependabot bumped
extractor/uv.lock; Claude Code ranuv lock --upgrade-package pypdfon the root lock. I checked that each lock changes only the pypdf entry and that its hashes match PyPI's 6.21.4 files.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code