Repository navigation
feat: support mixed-format ZIP inputs - #4865
Conversation
|
✅ DCO Check Passed Thanks @Vamsi-2581, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit The PR expands generic ZIP archives into one input per member, in memory. CI safety: no concern found. A maintainer must still approve CI. The |
There was a problem hiding this comment.
AI first review (advisory): blocker found
This review covers the full diff at 8eee5bff77. It read the code and did not run it.
DocumentConverter.convert() returns only the first member of a mixed ZIP and drops the rest without a warning. The PR adds no test. Check how the single-source API should handle an archive with many members before you merge.
A maintainer makes the merge decision. This review never approves the pull request.
I, Vamsi-1 <[email protected]>, hereby add my Signed-off-by to this commit: 8eee5bf Signed-off-by: Vamsi-1 <[email protected]>
There was a problem hiding this comment.
AI first review (advisory): blocker found
This review covers the changes since 8eee5bff77 at ad41b7dcd0. It read the code and did not run it.
No new commits were pushed since the first AI review. Both earlier findings remain open: convert() silently drops all ZIP members after the first, and there are no regression tests. The human reviewer must decide whether to block on the data-loss defect before this merges.
Earlier findings
- open (blocker): convert() silently drops all but the first ZIP member
- open (suggestion): No regression test, and the size limit is applied to the sum of members
A maintainer makes the merge decision. This review never approves the pull request.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Vamsi-1 <[email protected]>
Signed-off-by: Vamsi-1 <[email protected]>
Signed-off-by: Vamsi-2581 <[email protected]>
Summary
convert()raiseConversionErrorwhen one source yields multiple documents; useconvert_all()to convert every member.convert_all()raises at the first failed member by default;raises_on_error=Falsereturns failures and continues.Closes #4851
Validation
UV_CACHE_DIR=/tmp/docling-uv-cache uv run pytest -q tests/test_zip_batch_input.py— 5 passed.XDG_CACHE_HOME=/tmp/docling-cache UV_CACHE_DIR=/tmp/docling-uv-cache make validate— passed.lint-and-typecheck — passed.OpenAI Codex assisted with implementation, tests, and validation.