Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Verify shared Droid PDF runtime and preserve worker parent monitoring
myhlolia0b49ea8a8b5
diff --git a/docs/docgale-droid-validation.md b/docs/docgale-droid-validation.mdnew file mode 100644index 00000000..28d6f52d--- /dev/null+++ b/docs/docgale-droid-validation.md@@ -0,0 +1,18 @@+# DocGale Droid CJK 接入验证++DocGale 的共享 PDF 运行时现在使用 `droid-cjk-v1`。MinerU 原有 PDF 入口已通过+共享 `PDFDocument`/`pdfium_guard()` 自动接入;未增加高层参数或改变 tier 路由。+渲染 worker 初始化器依次安装父进程退出监控及固定字体。++本次本地验证:3,972 passed、4 skipped、4 项既有基线失败 deselected。+隔离 Doclib home 中,demo1 第一页 Flash 解析成功;第二次命中缓存;`--force`+创建 parse ID 2,`cache_hit=false`。三份 Markdown SHA256 相同。临时服务器已停止。++完整三平台验证和资源归属见 DocGale 的 docs/validation.md 与 docs/PDF_FONTS.md。+DocGale CI(89a3c23):https://github.com/myhloli/docgale/actions/runs/34028564417++原有四项基线排除为:+- test_basic_extra_includes_preflight_runtime_dependencies+- test_standard_is_the_highest_model_runtime_extra+- test_doclib_compaction_rejects_unknown_legacy_schema+- test_pp_formulanet_fix_latex_uses_shared_mathring_repairdiff --git a/tests/unittest/test_pdf_render_diagnostics.py b/tests/unittest/test_pdf_render_diagnostics.pyindex 9f38a90e..97312cde 100644--- a/tests/unittest/test_pdf_render_diagnostics.py+++ b/tests/unittest/test_pdf_render_diagnostics.py@@ -52,10 +52,16 @@ def test_pdf_render_worker_without_multiprocessing_parent_does_not_exit(monkeypapdf_image_tools._exit_pdf_render_worker_when_parent_exits()-def test_pdf_render_executor_installs_parent_exit_watcher() -> None:+def test_pdf_render_executor_installs_parent_exit_watcher(monkeypatch: pytest.MonkeyPatch) -> None:+ """渲染 worker 同时安装父进程监控和固定字体,监控优先以覆盖初始化失败。"""+ events: list[str] = []+ monkeypatch.setattr(pdf_image_tools, "_install_pdf_render_parent_exit_watcher", lambda: events.append("watcher"))+ monkeypatch.setattr(pdf_image_tools, "initialize_pdfium_runtime", lambda: events.append("fonts"))executor = pdf_image_tools._create_pdf_render_executor(max_workers=1)try:- assert executor._initializer is pdf_image_tools._install_pdf_render_parent_exit_watcher+ assert executor._initializer is pdf_image_tools._initialize_pdf_render_worker+ executor._initializer()+ assert events == ["watcher", "fonts"]finally:executor.shutdown(wait=True, cancel_futures=True)