Repository navigation
Update development script - #16623
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR bundles unrelated maintenance fixes: reformatting shell conditionals for changed-file filtering and closing a missing ChangesCI Workflow Shell Fixes
Backend Launch Command Update
Dependency Download Script Invocation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (7)
.github/workflows/sep-tests.yml.github/workflows/tests.ymlbuild.shdocker/launch_backend_service.shdocs/develop/build_docker_image.mdxinternal/development.mdragflow_deps/download_deps.py
| ```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 |
There was a problem hiding this comment.
📐 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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
…o dev/update-dev-script
| 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" |
There was a problem hiding this comment.
old one, when file does not exit, the exit code is 1, the new one will be 0.
No description provided.