Skip to content

Bump ai.docling:docling-serve-client from 0.4.7 to 0.5.0#22357

Merged
oscerd merged 4 commits intomainfrom
ci-issue-docling-serve-client-upgrade
Apr 1, 2026
Merged

Bump ai.docling:docling-serve-client from 0.4.7 to 0.5.0#22357
oscerd merged 4 commits intomainfrom
ci-issue-docling-serve-client-upgrade

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented Mar 31, 2026

Summary

Claude Code on behalf of Andrea Cosentino

  • Bumps ai.docling:docling-serve-client from 0.4.7 to 0.5.0
  • Adapts code to API breaking change: ConvertDocumentResponse is now a sealed abstract class with InBodyConvertDocumentResponse as the subclass containing the getDocument() method
  • Uses instanceof pattern matching to handle the polymorphic response type in DoclingProducer.extractDoclingDocument() and DoclingProducer.extractConvertedContent()
  • Updates unit test DoclingAsyncConversionTest to use InBodyConvertDocumentResponse.builder()
  • Moves pendingAsyncTasks map and taskIdCounter from DoclingProducer to DoclingComponent so that SUBMIT_ASYNC_CONVERSION and CHECK_CONVERSION_STATUS operations (which resolve to different endpoints/producers) share the same task state

Supersedes #22139 (Dependabot PR with compilation errors).

Test plan

  • Unit tests pass (46 tests, 0 failures)
  • Code formatted with mvn formatter:format impsort:sort
  • CI integration tests (disabled on GitHub Actions due to resource constraints)

🤖 Generated with Claude Code

Adapt to API breaking change: ConvertDocumentResponse is now a sealed
abstract class. The getDocument() method moved to the
InBodyConvertDocumentResponse subclass. Use instanceof pattern matching
to handle the polymorphic response type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@oscerd oscerd requested review from apupier and orpiske March 31, 2026 10:35
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

🧪 CI tested the following changed modules:

  • components/camel-ai/camel-docling
  • parent

ℹ️ Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the test-dependents label to force testing all dependents.

Build reactor — dependencies compiled but only changed modules were tested (4 modules)
  • Camel :: AI :: Docling
  • Camel :: AI :: Docling [jar]
  • Camel :: Parent
  • Camel :: Parent [pom]

@apupier
Copy link
Copy Markdown
Contributor

apupier commented Mar 31, 2026

What's the difference with https://github.com/apache/camel/pull/22139/changes with which there was a failing test? i'm failing to see one.

@apupier
Copy link
Copy Markdown
Contributor

apupier commented Mar 31, 2026

Supersedes #22139 (Dependabot PR with compilation errors).

this PR didn't have compilation errors anymore as I provided fixes for the compilation side. It was remaining a failing test #22139 (comment)

Copy link
Copy Markdown
Contributor

@apupier apupier left a comment

Choose a reason for hiding this comment

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

integration tests must be launched locally (and results posted). With this set of changes (from what I can see) when I tried previously it was failing.

@oscerd
Copy link
Copy Markdown
Contributor Author

oscerd commented Apr 1, 2026

I wasn't updated on the compilation fixes. I'm going to tests everything locally

oscerd and others added 2 commits April 1, 2026 09:55
Move pendingAsyncTasks map and taskIdCounter from DoclingProducer to
DoclingComponent so that SUBMIT_ASYNC_CONVERSION and
CHECK_CONVERSION_STATUS operations (which resolve to different
endpoints/producers) can see each other's tasks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The convertSourceAsync future may take longer than 1 second to
complete. Poll for status in a loop instead of asserting after a
fixed sleep.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@oscerd
Copy link
Copy Markdown
Contributor Author

oscerd commented Apr 1, 2026

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.camel.component.docling.BatchProcessingTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.635 s -- in org.apache.camel.component.docling.BatchProcessingTest
[INFO] Running org.apache.camel.component.docling.DoclingAsyncConversionTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 s -- in org.apache.camel.component.docling.DoclingAsyncConversionTest
[INFO] Running org.apache.camel.component.docling.DoclingCliDeadlockTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 s -- in org.apache.camel.component.docling.DoclingCliDeadlockTest
[INFO] Running org.apache.camel.component.docling.DoclingComponentTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.060 s -- in org.apache.camel.component.docling.DoclingComponentTest
[INFO] Running org.apache.camel.component.docling.DoclingCustomArgsValidationTest
[INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.550 s -- in org.apache.camel.component.docling.DoclingCustomArgsValidationTest
[INFO] Running org.apache.camel.component.docling.DoclingProducerTest
[WARNING] Tests run: 4, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 0.016 s -- in org.apache.camel.component.docling.DoclingProducerTest
[INFO] Running org.apache.camel.component.docling.DoclingSecureTempFileTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.030 s -- in org.apache.camel.component.docling.DoclingSecureTempFileTest
[INFO] Running org.apache.camel.component.docling.DoclingServeProducerTest
[WARNING] Tests run: 4, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 0.002 s -- in org.apache.camel.component.docling.DoclingServeProducerTest
[INFO] Running org.apache.camel.component.docling.DoclingTempFileCleanupTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.190 s -- in org.apache.camel.component.docling.DoclingTempFileCleanupTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 46, Failures: 0, Errors: 0, Skipped: 8
[INFO] 
[INFO] 
[INFO] --- camel-package:4.19.0-SNAPSHOT:generate-postcompile (generate-postcompile) @ camel-docling ---
[INFO] Skipping generation, everything is up to date.
[INFO] 
[INFO] --- jar:3.5.0:jar (default-jar) @ camel-docling ---
[INFO] Building jar: /home/oscerd/workspace/apache-camel/camel/components/camel-ai/camel-docling/target/camel-docling-4.19.0-SNAPSHOT.jar
[INFO] 
[INFO] --- failsafe:3.5.5:integration-test (default) @ camel-docling ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.camel.component.docling.integration.BatchProcessingIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.07 s -- in org.apache.camel.component.docling.integration.BatchProcessingIT
[INFO] Running org.apache.camel.component.docling.integration.ChunkingIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.89 s -- in org.apache.camel.component.docling.integration.ChunkingIT
[INFO] Running org.apache.camel.component.docling.integration.DoclingServeProducerIT
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 108.8 s -- in org.apache.camel.component.docling.integration.DoclingServeProducerIT
[INFO] Running org.apache.camel.component.docling.integration.ExtractStructuredDataIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 84.70 s -- in org.apache.camel.component.docling.integration.ExtractStructuredDataIT
[INFO] Running org.apache.camel.component.docling.integration.MetadataExtractionIT
[INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.77 s -- in org.apache.camel.component.docling.integration.MetadataExtractionIT
[INFO] Running org.apache.camel.component.docling.integration.OcrExtractionIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.12 s -- in org.apache.camel.component.docling.integration.OcrExtractionIT
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 49, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- failsafe:3.5.5:verify (default) @ camel-docling ---

Replace Thread.sleep polling loops with Awaitility in
testCheckConversionStatus and testCustomAsyncWorkflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@oscerd oscerd requested a review from apupier April 1, 2026 08:27
@oscerd oscerd merged commit 14d9cf6 into main Apr 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants