You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This runs the full Python SDK suite in CI and release workflows.
It installs the local SDK and preserves existing test infrastructure.