Skip to content

Remove python source code - #20284

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix695
Sep 28, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix695

Conversation

@JinHai-CN

@JinHai-CN JinHai-CN commented Sep 28, 2026 •

Copy link
Copy Markdown
Member
  1. update ci yml file
  2. remove admin

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 69c44468-990f-40ec-89b4-0eda7d7b52a8

📥 Commits

Reviewing files that changed from the base of the PR and between 7a750fa and 33cdb73.

⛔ Files ignored due to path filters (1)
  • admin/client/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (22)
  • .github/workflows/sep-tests.yml
  • admin/build_cli_release.sh
  • admin/client/COMMAND.md
  • admin/client/README.md
  • admin/client/http_client.py
  • admin/client/parser.py
  • admin/client/pyproject.toml
  • admin/client/ragflow_cli.py
  • admin/client/ragflow_client.py
  • admin/client/user.py
  • admin/server/admin_server.py
  • admin/server/auth.py
  • admin/server/config.py
  • admin/server/exceptions.py
  • admin/server/models.py
  • admin/server/responses.py
  • admin/server/roles.py
  • admin/server/routes.py
  • admin/server/services.py
  • mcp/client/client.py
  • mcp/client/streamable_http_client.py
  • mcp/server/server.py
💤 Files with no reviewable changes (20)
  • admin/server/models.py
  • admin/server/admin_server.py
  • admin/client/COMMAND.md
  • admin/server/exceptions.py
  • admin/server/responses.py
  • admin/client/ragflow_cli.py
  • admin/client/parser.py
  • admin/client/README.md
  • admin/server/routes.py
  • admin/client/http_client.py
  • admin/client/user.py
  • admin/build_cli_release.sh
  • admin/client/pyproject.toml
  • mcp/client/streamable_http_client.py
  • mcp/client/client.py
  • admin/server/auth.py
  • admin/server/roles.py
  • mcp/server/server.py
  • admin/server/config.py
  • admin/server/services.py

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The changes remove the admin server and CLI, the MCP server and example clients, and Python-specific CI detection and tests. The workflow now selects the Go API proxy scheme and treats Elasticsearch log-copy failures as warnings.

Changes

Test Workflow

Layer / File(s) Summary
Change detection and proxy selection
.github/workflows/sep-tests.yml
The workflow removes Python change classification and always selects the Go API proxy scheme. Scheduled runs enable Go, web, and native DeepDoc. The fallback enables these targets when neither Go nor web changes are detected.
Test jobs and log collection
.github/workflows/sep-tests.yml
Python setup, unit, SDK, CLI retrieval, coverage, and regression-guard steps are removed. REST API tests remain enabled for schemes other than web. Elasticsearch log collection now warns if copying logs fails.

Admin Service and CLI

Layer / File(s) Summary
Admin server components
admin/server/*
The admin server entry point and its authentication, configuration, routes, response helpers, exceptions, role manager, and service managers are deleted.
Admin CLI package
admin/build_cli_release.sh, admin/client/*
The CLI implementation, package configuration, release-build script, and CLI documentation are deleted.

MCP Server and Clients

Layer / File(s) Summary
MCP server
mcp/server/*
The server module, including its tools, connector, authentication, transport setup, configuration, and launcher, is deleted.
MCP example clients
mcp/client/*
The SSE and Streamable HTTP example client modules are deleted.

Priority: ➖ Normal

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Other

Suggested reviewers: xugangqiang

Merge Risk: 🟡 Moderate · up to 33cdb

Python or hybrid deployments can fail to start the admin service, and users enabling the documented MCP server cannot start it. Update those launch paths or provide replacements before merging.

Architecture Summary

Architecture risk: 🔵 Low · up to 33cdb

The change affects 2 systems.

Changed systems: admin, mcp

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — admin (service) was modified; 17 changed files map to changed impact.
  • observed — mcp (service) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in admin/build_cli_release.sh: The release-build script was removed. It previously cleared release/, staged the CLI source and metadata under release/ragflow-cli, ran python -m build there, and listed dist/ on success; it exited with status 1 if the staged source directory or build output directory was absent.
  • observed — Modified behavior in admin/client/COMMAND.md: Deleted the CLI command reference, including syntax, parameters, examples, and notes for the documented commands and their quoting and semicolon conventions.
  • observed — Modified behavior in admin/client/README.md: Removed the README documentation describing the Admin Service and CLI, how to start the service and connect with the CLI, command syntax and categories, and sample command output.
  • observed — Modified behavior in admin/client/http_client.py: The entire admin/client/http_client.py file was deleted, removing HttpClient and its configuration, URL and authentication handling, HTTP method dispatch, repeated-request timing results, and JSON parsing helpers. Requests used the API or non-API base as selected, with HTTP or HTTPS chosen by verify_ssl; unsupported methods and JSON parsing failures raised ValueError.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Title check ✅ Passed The title clearly and concisely describes the primary change: removing Python source code.
Description check ✅ Passed The description identifies the two main changes: updating the CI workflow and removing Python source directories. It is relevant but omits the required Summary heading and background context.

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

A rabbit checks the workflow trail,
Go hops in where Python’s gone,
Admin tools fold up their ears,
MCP paths grow quiet at dawn,
The bunny nods, then bounds along.

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

@JinHai-CN
JinHai-CN marked this pull request as ready for review September 28, 2026 06:58
@JinHai-CN JinHai-CN added the ci Continue Integration label Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant