Skip to content

test(sdk): audit dataset management tests - #21619

Merged
wangq8 merged 3 commits into
infiniflow:mainfrom
6ba3i:test/audit-sdk-datasets
Oct 29, 2026
Merged

wangq8 merged 3 commits into
infiniflow:mainfrom
6ba3i:test/audit-sdk-datasets

Conversation

@6ba3i

@6ba3i 6ba3i commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

This updates dataset SDK tests for the current API.
It removes obsolete checks and skips confirmed implementation defects.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2f18c90b-dd4e-491b-8df8-46fe70b7c388
Commits

Reviewing files that changed from the base of the PR and between 31ddea4 and 3946262.

Files selected for processing: 10
  • test/testcases/test_sdk_api/test_dataset_mangement/README.md
  • test/testcases/test_sdk_api/test_dataset_mangement/conftest.py
  • test/testcases/test_sdk_api/test_dataset_mangement/pytest.ini
  • test/testcases/test_sdk_api/test_dataset_mangement/test_create_dataset.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_dataset_permissions.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_dataset_sdk.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_delete_datasets.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_infrastructure.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_list_datasets.py
  • test/testcases/test_sdk_api/test_dataset_mangement/test_update_dataset.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

The pull request adds an isolated pytest setup for dataset SDK tests. It updates mocked SDK contract tests and integration coverage for dataset creation, deletion, listing, permissions, and updates. It also documents test prerequisites, commands, and skipped cases.

Changes: Dataset SDK tests

Layer / File(s) Summary
Isolated integration harness
test/testcases/test_sdk_api/test_dataset_mangement/conftest.py, test/testcases/test_sdk_api/test_dataset_mangement/test_infrastructure.py, test/testcases/test_sdk_api/test_dataset_mangement/pytest.ini, test/testcases/test_sdk_api/test_dataset_mangement/README.md
Adds local pytest settings, environment checks for integration tests, dataset-specific fixtures, and cleanup limited to datasets created by the tests. The README documents setup, commands, and skipped cases.
SDK request contracts
test/testcases/test_sdk_api/test_dataset_mangement/test_dataset_sdk.py
Adds mocked coverage for SDK argument validation, serialization, response parsing, API errors, and write transport requests.
Dataset creation coverage
test/testcases/test_sdk_api/test_dataset_mangement/test_create_dataset.py
Updates integration coverage for creation validation, persisted settings, defaults, parser configuration, and concurrent or high-volume creation.
Dataset deletion coverage
test/testcases/test_sdk_api/test_dataset_mangement/test_delete_datasets.py
Updates integration coverage for authorization, deletion arguments and errors, dataset state after deletion, and concurrent or high-volume deletion.
Dataset listing and access coverage
test/testcases/test_sdk_api/test_dataset_mangement/test_list_datasets.py, test/testcases/test_sdk_api/test_dataset_mangement/test_dataset_permissions.py
Updates coverage for list validation, filtering, pagination, ordering, and authorization. Adds cross-tenant checks for access to a private dataset.
Dataset update coverage
test/testcases/test_sdk_api/test_dataset_mangement/test_update_dataset.py
Updates integration coverage for field validation and persistence, parser settings, pagerank, parser configuration, and authentication.

Priority: Normal

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

Change: Other

Suggested labels: 🧪 test, size:L, review-level: high

Suggested reviewers: jay77721, wangq8, lynn-inf

Merge Risk: Minimal · up to 39462

This change only adds and updates SDK tests, test fixtures, and documentation for the dataset tests, and it does not alter production code. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies an audit of the dataset management tests, which matches the main changes.
Description check Passed The description explains the purpose of the pull request and summarizes the main changes. It omits the required "### Summary" heading, but the content is otherwise complete enough for review.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 53 functions across 8 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • 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 the dataset rows,
Then guards the IDs it made.
It hops through tests for lists and writes,
While cleanup clears its shade.
The SDK burrow’s checks are set;
The rabbit thumps, content.

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

@6ba3i
6ba3i requested a review from wangq8 October 28, 2026 09:41
@6ba3i 6ba3i added the ci Continue Integration label Oct 28, 2026
@wangq8
wangq8 merged commit 8f21777 into infiniflow:main Oct 29, 2026
11 checks passed
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.

2 participants