Skip to content

ci(sdk): restore full Python SDK tests - #21684

Closed
6ba3i wants to merge 1 commit into
infiniflow:mainfrom
6ba3i:ci/restore-python-sdk-tests
Closed

6ba3i wants to merge 1 commit into
infiniflow:mainfrom
6ba3i:ci/restore-python-sdk-tests

Conversation

@6ba3i

@6ba3i 6ba3i commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

This runs the full Python SDK suite in CI and release workflows.
It installs the local SDK and preserves existing test infrastructure.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request adds a reusable SDK-only test workflow, a Python runner that executes configured SDK test folders with isolated environments, and environment provisioning for those tests. The release workflow now waits for SDK tests before publishing the SDK.

Changes: Python SDK CI

Layer / File(s) Summary
SDK test environment setup
tools/ci/sdk_test_environment.py, tools/ci/test_sdk_test_environment.py
The setup code validates CI settings and credentials, provisions tenants and model defaults, and creates a pipeline for dataset-management tests. Tests cover setup checks and API error handling.
Pytest options and SDK folder runner
tools/ci/pytest_options.py, test/testcases/conftest.py, tools/ci/run_sdk_tests.py, tools/ci/test_sdk_runner.py
Shared pytest configuration selects priority levels. The runner validates folder configuration, prepares per-folder environments, runs each folder separately, and redacts API-key values from streamed output. Tests cover selection, execution, and failure handling.
CI execution and publishing gate
.github/workflows/sep-tests.yml, .github/workflows/release.yml
The reusable workflow adds SDK-only mode and SDK test steps for both document engines. In SDK-only mode, selected non-SDK checks are skipped. The release workflow requires the SDK test job before publishing.

Priority: Not assessed

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Release as release.yml
  participant Workflow as sep-tests.yml
  participant Runner as run_sdk_tests.py
  participant Environment as prepare_environment
  Release->>Workflow: Call with sdk_only true
  Workflow->>Runner: Run SDK tests
  Runner->>Environment: Prepare each folder environment
  Environment-->>Runner: Return SDK environment values
  Runner->>Runner: Run pytest for each configured folder
  Workflow-->>Release: Complete SDK test job
Loading

Possibly related PRs

Suggested labels: ci, 🌈 python, 🧪 test

Suggested reviewers: xugangqiang, yuzhichang, lynn-inf

Merge Risk: Low · up to a44ae

The SDK release gate receives its required credentials, but CI does not run the new tests for the gate’s runner and setup code. Wire those tests into CI before relying on them for regression coverage.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 each test-run trail,
With folders lined up without fail.
Two tenants hop into the flow,
While keys stay hidden as logs glow.
The SDK ships when tests say go.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant