Skip to content

Update development script - #16623

Merged
wangq8 merged 5 commits into
infiniflow:mainfrom
wangq8:dev/update-dev-script
Jul 3, 2026
Merged

wangq8 merged 5 commits into
infiniflow:mainfrom
wangq8:dev/update-dev-script

Conversation

@wangq8

@wangq8 wangq8 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8 wangq8 added the ci Continue Integration label Jul 3, 2026
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 3, 2026
@coderabbitai

coderabbitai Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3a665c2b-33b6-4f9d-9287-fb7850f222c8

📥 Commits

Reviewing files that changed from the base of the PR and between ef02c2e and 3b5d2ee.

📒 Files selected for processing (1)
  • docker/launch_backend_service.sh

📝 Walkthrough

Walkthrough

This PR bundles unrelated maintenance fixes: reformatting shell conditionals for changed-file filtering and closing a missing fi in two GitHub Actions workflows, switching backend launch commands to invoke bin/ragflow_server with --api/--admin flags, and updating references to run download_deps.py via uv run python3 across build script, docs, and comments.

Changes

CI Workflow Shell Fixes

Layer / File(s) Summary
Changed-files filtering and cleanup block fix
.github/workflows/sep-tests.yml, .github/workflows/tests.yml
Rewrites short-circuit -f checks into explicit if/fi blocks for changed-file filtering, and closes a missing fi in the Elasticsearch PORT_RESERVATION cleanup step.

Backend Launch Command Update

Layer / File(s) Summary
go-mode invocation via unified ragflow_server binary
docker/launch_backend_service.sh
Updates server_cmd in the API_PROXY_SCHEME == go branches to invoke bin/ragflow_server --api for the server and bin/ragflow_server --admin for the admin server instead of separate binaries.

Dependency Download Script Invocation

Layer / File(s) Summary
uv run python3 download_deps.py updates
build.sh, internal/development.md, ragflow_deps/download_deps.py
Updates fallback commands, help text, documentation, and header comment example to run uv run python3 ragflow_deps/download_deps.py instead of uv run ragflow_deps/download_deps.py.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • infiniflow/ragflow#16138: Both PRs modify docker/launch_backend_service.sh to change the API_PROXY_SCHEME == go startup commands to invoke bin/ragflow_server/--admin executables.
  • infiniflow/ragflow#16241: Both PRs modify .github/workflows/tests.yml’s changed-files generation logic for lefthook.
  • infiniflow/ragflow#16557: Both PRs update build.sh and internal/development.md to reference the native dependency downloader as uv run python3 ragflow_deps/download_deps.py.

Suggested labels: 📖 documentation

Suggested reviewers: yingfeng, yuzhichang, JinHai-CN

Poem

Small hops of fixes, tidy and neat,
A missing fi now closes complete,
--api, --admin, the binary's one,
python3 leads where scripts are run,
This bunny thumps twice — the build is done! 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is missing the required Summary section and gives no purpose or background context. Add a Summary section that explains the PR goal, relevant background, and a brief overview of the script and workflow updates.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is broad, but it still points to the script-oriented changes across workflows, build, and docs.
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.

@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.

Actionable comments posted: 3

🤖 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.

Inline comments:
In `@docker/launch_backend_service.sh`:
- Line 121: The server command array in launch_backend_service.sh is malformed
because the comma is being included in the first element, so fix the binary
invocation used by the go-mode API startup. Update the server_cmd assignment to
match the space-separated style used by the entrypoint flow and ensure
bin/ragflow_server is the actual first array item and --api is the second, so
"${server_cmd[@]}" launches correctly without command-not-found failures.
- Line 151: The admin server command has the same comma-separated array literal
bug as the earlier server launch, so the binary name is being malformed. Update
the server_cmd assignment in the admin invocation to use proper shell array
syntax in launch_backend_service.sh, matching the non-admin launch pattern, so
ragflow_server and --admin are separate elements.

In `@internal/development.md`:
- Line 31: The documentation is inconsistent about how to invoke
download_deps.py: the command in the setup steps uses uv run python3
ragflow_deps/download_deps.py, but the nearby comment still mentions uv run
ragflow_deps/download_deps.py. Update the explanatory comment in
internal/development.md to match the actual invocation so the references stay
consistent with the documented command.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 67c91b97-8507-4c0e-a309-e3bdd1ce22ed

📥 Commits

Reviewing files that changed from the base of the PR and between 63a4ed5 and ef02c2e.

📒 Files selected for processing (7)
  • .github/workflows/sep-tests.yml
  • .github/workflows/tests.yml
  • build.sh
  • docker/launch_backend_service.sh
  • docs/develop/build_docker_image.mdx
  • internal/development.md
  • ragflow_deps/download_deps.py

Comment thread docker/launch_backend_service.sh Resolved
Comment thread docker/launch_backend_service.sh Resolved
Comment thread internal/development.md
```bash
# From the project root, download and extract to ~/ragflow-native-libs/
uv run ragflow_deps/download_deps.py
uv run python3 ragflow_deps/download_deps.py

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Inconsistent invocation reference nearby (Line 43).

Line 31 is updated to uv run python3 ragflow_deps/download_deps.py, but the comment on Line 43 still says "created by uv run ragflow_deps/download_deps.py" without python3, leaving the doc inconsistent.

📝 Proposed fix
-> RAGFLOW_DEPS="${HOME}/ragflow-native-libs"  # created by uv run ragflow_deps/download_deps.py
+> RAGFLOW_DEPS="${HOME}/ragflow-native-libs"  # created by uv run python3 ragflow_deps/download_deps.py
🤖 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 `@internal/development.md` at line 31, The documentation is inconsistent about
how to invoke download_deps.py: the command in the setup steps uses uv run
python3 ragflow_deps/download_deps.py, but the nearby comment still mentions uv
run ragflow_deps/download_deps.py. Update the explanatory comment in
internal/development.md to match the actual invocation so the references stay
consistent with the documented command.

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (3cba34d) to head (87ff9e0).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16623   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ 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.

@wangq8
wangq8 merged commit 06aa169 into infiniflow:main Jul 3, 2026
trap 'rm -f "$changed_files"' EXIT
git diff --name-only ${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} \
| while read -r file; do
[[ -f "$file" ]] && printf '%s\0' "$file"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

old one, when file does not exit, the exit code is 1, the new one will be 0.

xugangqiang pushed a commit to xugangqiang/ragflow that referenced this pull request Jul 3, 2026
xugangqiang pushed a commit to xugangqiang/ragflow that referenced this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant