Skip to content

feat: support mixed-format ZIP inputs - #4865

Merged
PeterStaar-IBM merged 5 commits into
docling-project:mainfrom
Vamsi-2581:codex/zip-batch-input
Oct 25, 2026
Merged

PeterStaar-IBM merged 5 commits into
docling-project:mainfrom
Vamsi-2581:codex/zip-batch-input

Conversation

@Vamsi-2581

@Vamsi-2581 Vamsi-2581 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Expand generic ZIP archives into per-member conversion inputs in memory.
  • Reuse existing format detection and backends for each member.
  • Make convert() raise ConversionError when one source yields multiple documents; use convert_all() to convert every member.
  • Preserve archive/member paths and enforce per-member and cumulative decompressed-size limits. Rejected or unreadable members do not consume the size budget.
  • Document failure handling: convert_all() raises at the first failed member by default; raises_on_error=False returns 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.
  • GitHub lint-and-type check — passed.
  • DCO check — passed.

OpenAI Codex assisted with implementation, tests, and validation.

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @Vamsi-2581, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@github-actions github-actions Bot added ai:ci-safe AI triage found no CI-safety concern (advisory) enhancement New feature or request labels Oct 16, 2026
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

AI triage (advisory)

Checked commit 12451488fa. The analysis read the diff only. It did not run code from this pull request.

The PR expands generic ZIP archives into one input per member, in memory. convert() now raises ConversionError when a source yields more than one document, and convert_all() converts every member.

CI safety: no concern found. A maintainer must still approve CI.

The ai:* labels are advisory. They do not approve CI and they do not add tests:full. A new push runs this check again.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docling/datamodel/document.py Resolved
Comment thread docling/datamodel/document.py Resolved
@github-actions github-actions Bot added the ai:review-changes AI first review suggests changes label Oct 16, 2026
I, Vamsi-1 <[email protected]>, hereby add my Signed-off-by to this commit: 8eee5bf

Signed-off-by: Vamsi-1 <[email protected]>
@github-actions github-actions Bot added ai:ci-safe AI triage found no CI-safety concern (advisory) ai:review-changes AI first review suggests changes and removed ai:ci-safe AI triage found no CI-safety concern (advisory) ai:review-changes AI first review suggests changes labels Oct 16, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21053% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
docling/datamodel/document.py 87.09% 3 Missing and 1 partial ⚠️
docling/document_converter.py 71.42% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@Vamsi-2581 Vamsi-2581 changed the title Support mixed-format ZIP inputs feat: support mixed-format ZIP inputs Oct 16, 2026
@github-actions github-actions Bot added ai:ci-safe AI triage found no CI-safety concern (advisory) and removed ai:ci-safe AI triage found no CI-safety concern (advisory) ai:review-changes AI first review suggests changes labels Oct 19, 2026
@github-actions github-actions Bot added ai:ci-safe AI triage found no CI-safety concern (advisory) and removed ai:ci-safe AI triage found no CI-safety concern (advisory) labels Oct 19, 2026
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026
2 of 3 tasks
@github-actions github-actions Bot added ai:ci-safe AI triage found no CI-safety concern (advisory) and removed ai:ci-safe AI triage found no CI-safety concern (advisory) labels Oct 24, 2026
@PeterStaar-IBM
PeterStaar-IBM merged commit aff98aa into docling-project:main Oct 25, 2026
33 checks passed
@dolfim-ibm dolfim-ibm mentioned this pull request Nov 27, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai:ci-safe AI triage found no CI-safety concern (advisory) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support zip archives with mixed PDF DOCX XLSX

2 participants