Skip to content

Fix: correct download_deps.py path in error messages and add native libs doc - #16557

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/native-lib-doc
Jul 2, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/native-lib-doc

Conversation

@xugangqiang

Copy link
Copy Markdown
Contributor

Summary

Fix error messages in build.sh and add documentation in internal/development.md for downloading native static libraries (pdfium, pdf_oxide, office_oxide).

Changes

  • build.sh: change error hint from uv run download_deps.py to uv run ragflow_deps/download_deps.py (correct path from project root)
  • internal/development.md: add section 2.1 documenting how to download native libs and install lld

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. 📖 documentation Improvements or additions to documentation labels Jul 2, 2026
@xugangqiang xugangqiang added the ci Continue Integration label Jul 2, 2026
@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updates native dependency checks and guidance in build.sh and internal/development.md, switching references to uv run ragflow_deps/download_deps.py, allowing missing system pre-seed content to fall through to later checks, and adding Linux ld.lld symlink instructions.

Changes

Native dependency guidance updates

Layer / File(s) Summary
Adjust build.sh dependency checks
build.sh
Native dependency checks now tolerate missing system pre-seed content for office_oxide and pdf_oxide, and the missing-library/help text now points to uv run ragflow_deps/download_deps.py plus the ld.lld symlink command.
Rewrite native library instructions
internal/development.md
The native static library instructions now use uv run ragflow_deps/download_deps.py, reflect the RAGFLOW_DEPS location, and include the Linux lld installation/symlink requirement.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A rabbit hopped through build-time trails,
And fixed the paths in scripts and rails.
With lld linked right, the libs appear,
And docs now point the way quite clear. 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: fixing the dependency path and adding native libraries documentation.
Description check ✅ Passed The description matches the template well and includes a summary plus change details for both files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@xugangqiang
xugangqiang force-pushed the fix/native-lib-doc branch from e9a3dee to e1be9d5 Compare July 2, 2026 06:19
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jul 2, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
build.sh (1)

355-355: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Duplicated lld install/symlink instructions.

The full sudo apt install lld-20 && sudo ln -s /usr/bin/ld.lld-20 /usr/bin/ld.lld string is repeated verbatim at Line 355 and Line 508. Consider extracting to a shared variable to avoid drift if the required version changes later.

Also applies to: 507-508

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@build.sh` at line 355, The ld.lld install/symlink command is duplicated in
the build script, so update the echoed error messages to reference a single
shared variable or helper that holds the lld installation instructions. Use the
existing error-printing blocks around the ld.lld checks in build.sh so both
locations stay in sync if the required version changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@build.sh`:
- Line 355: The ld.lld install/symlink command is duplicated in the build
script, so update the echoed error messages to reference a single shared
variable or helper that holds the lld installation instructions. Use the
existing error-printing blocks around the ld.lld checks in build.sh so both
locations stay in sync if the required version changes.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0ea6b7b8-6244-40a8-960d-3b3c74b412a5

📥 Commits

Reviewing files that changed from the base of the PR and between e9a3dee and e1be9d5.

📒 Files selected for processing (2)
  • build.sh
  • internal/development.md
✅ Files skipped from review due to trivial changes (1)
  • internal/development.md

@xugangqiang
xugangqiang marked this pull request as draft July 2, 2026 06:33
@xugangqiang
xugangqiang marked this pull request as ready for review July 2, 2026 06:33
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (42a0faa) to head (e1be9d5).
⚠️ Report is 24 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16557      +/-   ##
==========================================
- Coverage   94.56%   93.16%   -1.40%     
==========================================
  Files          10       10              
  Lines         717      717              
  Branches      118      118              
==========================================
- Hits          678      668      -10     
- Misses         25       29       +4     
- Partials       14       20       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit 7ae18a4 into infiniflow:main Jul 2, 2026
13 of 21 checks passed
xugangqiang added a commit to xugangqiang/ragflow that referenced this pull request Jul 3, 2026
…ibs doc (infiniflow#16557)

## Summary

Fix error messages in `build.sh` and add documentation in
`internal/development.md` for downloading native static libraries
(pdfium, pdf_oxide, office_oxide).

## Changes

- `build.sh`: change error hint from `uv run download_deps.py` to `uv
run ragflow_deps/download_deps.py` (correct path from project root)
- `internal/development.md`: add section 2.1 documenting how to download
native libs and install lld
xugangqiang added a commit to xugangqiang/ragflow that referenced this pull request Jul 6, 2026
…ibs doc (infiniflow#16557)

## Summary

Fix error messages in `build.sh` and add documentation in
`internal/development.md` for downloading native static libraries
(pdfium, pdf_oxide, office_oxide).

## Changes

- `build.sh`: change error hint from `uv run download_deps.py` to `uv
run ragflow_deps/download_deps.py` (correct path from project root)
- `internal/development.md`: add section 2.1 documenting how to download
native libs and install lld
@xugangqiang
xugangqiang deleted the fix/native-lib-doc branch August 7, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration 📖 documentation Improvements or additions to documentation size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants