Bump ai.docling:docling-serve-client from 0.4.7 to 0.5.0#22357
Conversation
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>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
🧪 CI tested the following changed modules:
Build reactor — dependencies compiled but only changed modules were tested (4 modules)
|
|
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. |
this PR didn't have compilation errors anymore as I provided fixes for the compilation side. It was remaining a failing test #22139 (comment) |
apupier
left a comment
There was a problem hiding this comment.
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.
|
I wasn't updated on the compilation fixes. I'm going to tests everything locally |
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>
|
...ing/src/test/java/org/apache/camel/component/docling/integration/DoclingServeProducerIT.java
Outdated
Show resolved
Hide resolved
Replace Thread.sleep polling loops with Awaitility in testCheckConversionStatus and testCustomAsyncWorkflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Claude Code on behalf of Andrea Cosentino
ai.docling:docling-serve-clientfrom 0.4.7 to 0.5.0ConvertDocumentResponseis now a sealed abstract class withInBodyConvertDocumentResponseas the subclass containing thegetDocument()methodinstanceofpattern matching to handle the polymorphic response type inDoclingProducer.extractDoclingDocument()andDoclingProducer.extractConvertedContent()DoclingAsyncConversionTestto useInBodyConvertDocumentResponse.builder()pendingAsyncTasksmap andtaskIdCounterfromDoclingProducertoDoclingComponentso thatSUBMIT_ASYNC_CONVERSIONandCHECK_CONVERSION_STATUSoperations (which resolve to different endpoints/producers) share the same task stateSupersedes #22139 (Dependabot PR with compilation errors).
Test plan
mvn formatter:format impsort:sort🤖 Generated with Claude Code