Repository navigation
fix: disable OCR in RichDocument CI test to avoid modelscope.cn download - #888
Merged
ajbozarth merged 1 commit intoApr 22, 2026
Conversation
Add do_ocr parameter to from_document_file and set it to False in the test fixture. The arxiv PDF is text-based so OCR is unnecessary, and modelscope.cn (where RapidOCR downloads weights from) is unreliable from GitHub's US-based CI runners.\n\nCloses generative-computing#634\n\nAssisted-by: Claude Code Signed-off-by: Alex Bozarth <[email protected]>
Contributor
|
The PR description has been updated. Please fill out the template for your PR to be reviewed. |
Member
Author
|
@jakelorocco I'm not 100% sure this is the best solution, but it removes a flaky aspect of those tests that was unnecessary. If we'd rather not make this change I'd understand and can close out the original issue as "works as intended, will not fix" |
jakelorocco
approved these changes
Apr 22, 2026
jakelorocco
left a comment
Contributor
There was a problem hiding this comment.
this seems like a reasonable change; lgtm
Merged
via the queue into
generative-computing:main
with commit Apr 22, 2026
16b27be
10 checks passed
akihikokuroda
pushed a commit
to akihikokuroda/mellea
that referenced
this pull request
May 27, 2026
…oad (generative-computing#888) Add do_ocr parameter to from_document_file and set it to False in the test fixture. The arxiv PDF is text-based so OCR is unnecessary, and modelscope.cn (where RapidOCR downloads weights from) is unreliable from GitHub's US-based CI runners.\n\nCloses generative-computing#634\n\nAssisted-by: Claude Code Signed-off-by: Alex Bozarth <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Misc PR
Type of PR
Description
Add a
do_ocr: bool = Trueparameter toRichDocument.from_document_fileand pass it through toPdfPipelineOptions. The test fixture fortest_richdocumentnow passesdo_ocr=Falsesince the arxiv PDF (1906.04043) is text-based and doesn't need OCR.This eliminates the intermittent CI failure where Docling's RapidOCR initialization tries to download model weights from
modelscope.cn(a Chinese CDN that is unreliable from GitHub's US-based runners). TheRichDocumentSectionsexample subclass was also updated to match the new signature.Testing
Attribution