Skip to content

feat(testcontainers): bump default docling-serve image to v1.41.0 - #827

Merged
edeandrea merged 8 commits into
docling-project:mainfrom
edeandrea:feat/convert-options-stage-presets
Dec 1, 2026
Merged

edeandrea merged 8 commits into
docling-project:mainfrom
edeandrea:feat/convert-options-stage-presets

Conversation

@edeandrea

Copy link
Copy Markdown
Contributor

Summary

  • Bumps DoclingServeContainerConfig.DOCLING_IMAGE_VERSION from v1.35.0 to v1.41.0.
  • ConvertDocumentsOptions is identical across this range, so no new properties needed mapping.
  • Re-probed all eight preset values from the split-out issue against a running v1.41.0 container and updated the warning in serve-api.md: layoutPreset("docling_layout_default") and tableStructurePreset("tableformer_v2") still fail, ocrPreset("tesseract") still fails (for a different reason now), and codeFormulaPreset("default") now succeeds where it previously failed.
  • Fixed two integration tests for genuine behavioral differences in v1.41.0: single-file ZipTarget conversions now name the archive after the source file instead of converted_docs.zip, and a heading's extracted text gained a space ("PDF backends" instead of "PDFbackends").
  • Updated whats-new.md.
  • docs/testcontainers.md doesn't name the pinned default version anywhere, so it needed no changes.

Test plan

  • ./gradlew --no-daemon :docling-serve-client:test :docling-testcontainers:test against the new image
  • ./gradlew --no-daemon spotlessCheck
  • Manually probed the eight preset values against a running ghcr.io/docling-project/docling-serve:v1.41.0 container

Split out of #819.

Closes #824

Assisted-By: Claude Code noreply@anthropic.com

edeandrea and others added 8 commits December 1, 2026 11:17
Add the eight per-stage preset / custom-config pairs (layout, OCR, table
structure, picture description, picture classification, code & formula,
chart extraction and the VLM pipeline) along with the doChartExtraction,
includePageImages and mdCompactTables flags, bringing ConvertDocumentOptions
up to the ConvertDocumentsOptions schema that Docling Serve exposes.

Presets are plain strings because the available ids are registered by the
deployment rather than fixed by this library, and custom configs are
Map<String, Object> because the server types them as dict[str, Any], the
kind registry is open, and the module has to stay neutral across Jackson 2
and 3.

Mark the six options Docling Serve deprecates, and the four types reachable
only through them, as deprecated without forRemoval: they still work, and
when they go is Docling Serve's decision rather than this library's.

Drop the "Requires generate_parsed_pages=True" sentence from
HeadingHierarchyOptions#getUseStyle(), which does not correspond to any
property of the schema and sent readers hunting for a setter that should
not exist.

Note that several preset ids from the server's own OpenAPI examples, such
as docling_layout_default and tableformer_v2, are not registered in every
Docling Serve build, so the javadoc and docs steer callers to "default".

Convert-side chunking, the missing OutputFormat values and the mistyped
vlmPipelineModelLocal/Api fields are tracked separately in docling-project#821, docling-project#822
and docling-project#823.

Closes docling-project#819

Assisted-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Presets are registered per deployment, and default is not an exception:
code_formula_preset=default is rejected by the v1.35.0 image the
testcontainers module pins. Add it to the warning and stop presenting
default as universally safe.

Also correct the custom-config description, which said a custom config
overrides the preset while the paragraph above it said the two are
mutually exclusive, and generalized the `kind` selector to every stage
even though vlmPipelineCustomConfig takes model_spec and engine_options
instead.

Assisted-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
…oups

The previous wording put seven of the eight stages in the kind group and
only the VLM pipeline outside it. The server schema splits them 4/4:
ocr/layout/table_structure/picture_classification take a dict with a kind
discriminator, while picture_description/code_formula/chart_extraction,
like the VLM pipeline, are typed to VLM engine option models that require
model_spec and engine_options and take no kind.

Add an example for the second group, taken from the server's own
chart_extraction_custom_config example.

Assisted-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
TesseractCliOcrOptions declares kind "tesseract", not "tesseract_cli".
The Javadoc example came from the server's own OpenAPI example, which is
wrong: the version-compatibility logs in this repo show every probed
image registering 'tesserocr' and 'tesseract' and no 'tesseract_cli'.

Assisted-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Bumps DOCLING_IMAGE_VERSION from v1.35.0 to v1.41.0. ConvertDocumentsOptions
is unchanged across this range, but preset registration is image-specific:
layoutPreset("docling_layout_default") and tableStructurePreset("tableformer_v2")
still fail, ocrPreset("tesseract") still fails for a different reason, and
codeFormulaPreset("default") now succeeds where it previously failed.

Two integration tests needed updates for genuine behavioral differences in
v1.41.0: single-file ZipTarget conversions now name the archive after the
source file instead of "converted_docs.zip", and a heading's extracted text
gained a space ("PDF backends" instead of "PDFbackends").

Split out of docling-project#819 so the behavioral change from the bump is attributable to
the bump rather than buried in a feature change.

Issue: docling-project#824
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
…s-stage-presets

Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>

# Conflicts:
#	docs/src/doc/docs/docling-serve/serve-api.md
#	docs/src/doc/docs/whats-new.md
The merge of upstream/main duplicated shouldConvertWithStagePresets,
shouldIncludePageImagesWhenRequested, shouldNotIncludePageImagesByDefault,
shouldEmitCompactMarkdownTablesWhenRequested and convertTableToMarkdown.

Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 17:18
@edeandrea
edeandrea enabled auto-merge (squash) December 1, 2026 17:18

Copilot AI 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.

🟢 Approval recommended

No active review issues were identified for the Docling Serve v1.41.0 image update.

No open issues 🎉

What changed in this PR

Updates the default Docling Serve container from v1.35.0 to v1.41.0, aligning integration tests and documentation with the newer image’s behavior.

Changes:

  • Bumps the default Testcontainers image to v1.41.0.
  • Updates integration-test expectations for extracted heading text and single-file ZIP filenames.
  • Refreshes preset compatibility warnings and release notes.
File Description
docs/​src/​doc/​docs/​whats-new.md Documents the image bump and single-file ZIP naming change.
docs/​src/​doc/​docs/​docling-serve/​serve-api.md Updates preset warnings for v1.41.0.
docling-testcontainers/​src/​main/​java/​ai/​docling/​testcontainers/​serve/​config/​DoclingServeContainerConfig.java Sets the default image version to v1.41.0.
docling-serve/​docling-serve-client/​src/​test/​java/​ai/​docling/​serve/​client/​AbstractDoclingServeClientTests.java Adjusts heading-text and ZIP-filename assertions for the new image.

Review effort: Balanced

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

:java_duke: JaCoCo coverage report

There is no coverage information present for the Files changed

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
TestsPassed ❌️SkippedFailed
Gradle Test Results (all modules & JDKs)0 ran0 passed0 skipped0 failed
TestResult
No test annotations available

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@edeandrea
edeandrea merged commit d3251d2 into docling-project:main Dec 1, 2026
52 of 53 checks passed
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

HTML test reports are available as workflow artifacts (zipped HTML).

• Download: Artifacts for this run

@edeandrea
edeandrea deleted the feat/convert-options-stage-presets branch December 1, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Bump the default docling-serve container image from v1.35.0

2 participants