Skip to content

Docs: update python version to 3.13 - #15103

Merged
JinHai-CN merged 3 commits into
infiniflow:mainfrom
JinHai-CN:fix438
May 21, 2026
Merged

JinHai-CN merged 3 commits into
infiniflow:mainfrom
JinHai-CN:fix438

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

What problem does this PR solve?

  1. update python version to 3.13
  2. upgrade ormsgpack to 1.6.0

Type of change

  • Refactoring

@coderabbitai

coderabbitai Bot commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates Python references from 3.12 to 3.13 across setup and test documentation, adjusts error messages to mention Python 3.13 for dependency installation, bumps the runtime dependency ormsgpack to >=1.6.0, and expands a unit test stub to include get_by_ids.

Changes

Python 3.13 migration

Layer / File(s) Summary
Setup documentation for Python 3.13
AGENTS.md, README.md, README_ar.md, README_fr.md, README_id.md, README_ja.md, README_ko.md, README_pt_br.md, README_tr.md, README_tzh.md, README_zh.md, docs/develop/launch_ragflow_from_source.md, docs/develop/mcp/launch_mcp_server.md, test/README.md, test/benchmark/README.md
Backend and development setup instructions updated to use uv sync --python 3.13 instead of 3.12 across localized README files and launch documentation.
Error messages and runtime dependency update
admin/client/user.py, test/benchmark/auth.py, pyproject.toml
Password encryption error messages now instruct installing pycryptodomex via Python 3.13 sync; ormsgpack runtime dependency updated from >=1.5.0 to >=1.6.0.
Unit test stub: DocumentService multi-id
test/unit_test/api/apps/sdk/test_dify_retrieval.py
Test stub expanded to add DocumentService.get_by_ids returning SimpleNamespace document objects per requested id to support multi-id retrieval testing.

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs:

Suggested labels:
python:uv

"🐰 I hopped through docs and changed a line,
From three point twelve to three point thirteen—so fine.
Dependencies nudged, tests stretched a tad,
A tiny hop forward, cheerful and glad.
🥕✨"

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the primary change in the PR, which is updating Python version to 3.13 across documentation and configuration files.
Description check ✅ Passed The description lists the changes (Python 3.13 update and ormsgpack upgrade) and specifies type, but omits background context explaining why these updates are necessary.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@JinHai-CN JinHai-CN added the ci Continue Integration label May 21, 2026
@JinHai-CN
JinHai-CN marked this pull request as ready for review May 21, 2026 08:56
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 21, 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)
test/benchmark/README.md (1)

254-254: 💤 Low value

Minor markdown formatting issue detected.

The code span has extra spaces inside the backticks. Static analysis flagged this as MD038.

✨ Proposed fix
-- Make sure to run ```uv sync --python 3.13 --group test ``` before running the commands.
+- Make sure to run ```uv sync --python 3.13 --group test``` before running the commands.
🤖 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 `@test/benchmark/README.md` at line 254, A markdown code span has an extra
space before the closing backticks causing MD038; edit the line containing the
inline code "uv sync --python 3.13 --group test" so the backticks directly
enclose the command (remove the trailing space before the closing ```), ensuring
the text becomes: Make sure to run ```uv sync --python 3.13 --group test```
before running the commands.
🤖 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 `@test/benchmark/README.md`:
- Line 254: A markdown code span has an extra space before the closing backticks
causing MD038; edit the line containing the inline code "uv sync --python 3.13
--group test" so the backticks directly enclose the command (remove the trailing
space before the closing ```), ensuring the text becomes: Make sure to run ```uv
sync --python 3.13 --group test``` before running the commands.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a24d3bcd-870e-4a3e-9ecc-79a705391c72

📥 Commits

Reviewing files that changed from the base of the PR and between 111cdc7 and 735f107.

📒 Files selected for processing (18)
  • AGENTS.md
  • README.md
  • README_ar.md
  • README_fr.md
  • README_id.md
  • README_ja.md
  • README_ko.md
  • README_pt_br.md
  • README_tr.md
  • README_tzh.md
  • README_zh.md
  • admin/client/user.py
  • docs/develop/launch_ragflow_from_source.md
  • docs/develop/mcp/launch_mcp_server.md
  • pyproject.toml
  • test/README.md
  • test/benchmark/README.md
  • test/benchmark/auth.py

Signed-off-by: Jin Hai <[email protected]>

@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: 1

🤖 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 `@test/unit_test/api/apps/sdk/test_dify_retrieval.py`:
- Line 102: The get_by_ids stub currently ignores its _ids parameter and always
returns docs from chunks; change the lambda so it iterates over the incoming
_ids and returns a SimpleNamespace per id (id=<the id>) while pulling
meta_fields from the matching entry in chunks (match on chunk["doc_id"]) or
using {} if not found, so the stub enforces that the handler requests the
correct IDs (update the get_by_ids=lambda ... expression to build results from
_ids rather than from chunks).
🪄 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: 6f4a654c-17e4-47c3-9adf-c50a764fa516

📥 Commits

Reviewing files that changed from the base of the PR and between 735f107 and 37d8180.

📒 Files selected for processing (1)
  • test/unit_test/api/apps/sdk/test_dify_retrieval.py

@codecov

codecov Bot commented May 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.12%. Comparing base (440153c) to head (eff5875).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15103   +/-   ##
=======================================
  Coverage   93.12%   93.12%           
=======================================
  Files          10       10           
  Lines         713      713           
  Branches      116      116           
=======================================
  Hits          664      664           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Sentry.
📢 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 775ea55 into infiniflow:main May 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant