Repository navigation
Conversation
|
✅ DCO Check Passed Thanks @bushidapengyou-cell, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit This pull request enables local CI safety: needs maintainer care before you approve CI.
3 related pull request(s) in the same code
The |
There was a problem hiding this comment.
AI first review (advisory): no blocker found
This review covers the full diff at db3bbb8813. It read the code and did not run it.
The logic changes in _load_figure_image and normalize_local_base_path are correct and well-tested. The only merge blocker is the PR title, which does not follow the fix(...): conventional-commit format that Mergify requires. No code defects were found.
A maintainer makes the merge decision. This review never approves the pull request.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
The two lines that aren’t covered are part of the Windows-only UNC authority branch. Linux CI covers the POSIX rejection branch, and I checked the Windows UNC path locally since the repo’s online Windows job gets skipped for this PR. I didn’t add any artificial coverage pragma. |
|
Hi @bushidapengyou-cell, thank you for this pull request. It has a merge conflict with git fetch upstream
git rebase upstream/main
# resolve the conflicts, then:
git push --force-with-leaseWe can continue with the review and CI after that. |
Signed-off-by: 苍穹外卖-01 <2046083414@qq.com>
Signed-off-by: 苍穹外卖-01 <2046083414@qq.com>
db3bbb8 to
54413dd
Compare
|
So basically, I rebased onto the latest main and sorted out the conflict. The new head is 54413dd. Locally on Linux/Python 3.10, I got 411 passed and 3 skipped, and both make check and make validate passed. I also removed that redundant JATS OSError catch, since the shared loader handles it now. Full CI and Docs CI are just waiting on maintainer approval. |
Resolves #5016. Follow-up to #4912 and the JATS work identified by @taran-dev4u in #4921.
Support local file URI sources in JATS, reject root-only JATS file URIs and non-localhost authorities outside Windows, and preserve article content when figure decoding raises OSError. Fetch permissions and directory confinement remain unchanged.
The separate Makefile commit aligns the line limit with the existing CI hook. It is independent of the image fix and can be split out if preferred.
Checklist:
Review evidence:
Verified image pixels, caption links, body ownership/order, and embedded Markdown export. No reference data changed.
Linux/Python 3.10: 333 passed, 3 skipped, including POSIX authority regressions:
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 NO_PROXY='*' uv run --no-sync python -m coverage run --branch --source=docling.backend.xml.jats_backend,docling.backend.utils.image_resource_loader -m pytest -p no:cacheprovider -o addopts= tests/test_image_resource_loader.py tests/test_backend_jats.py tests/test_backend_jats_sub_articles.py tests/test_backend_jats_images.py tests/test_image_resource_file_uri.py tests/test_backend_markdown.py tests/test_backend_html.py tests/test_check_skill_routes.py -q --tb=short UV_NO_SYNC=1 make check UV_NO_SYNC=1 make validateBoth Make targets passed; non-blocking ty diagnostics remain.
Local Windows/Python 3.12: 320 passed, 4 failed, 5 skipped, with process-scoped
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1andNO_PROXY=*:The same 4 HTML path assertion failures reproduce on the base. These are local results; full online CI awaits maintainer action. macOS was not tested.