Skip to content

Add clustered collection tests#229

Open
danielfrankcom wants to merge 1 commit into
documentdb:mainfrom
danielfrankcom:pr/clustered-collections
Open

Add clustered collection tests#229
danielfrankcom wants to merge 1 commit into
documentdb:mainfrom
danielfrankcom:pr/clustered-collections

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds general tests for clustered collections.

The aim here is to test the runtime semantics unique to clustered collections like _id sort behavior, RecordId size limits, clustered-specific error codes for special numeric _id values, index immutability, and collection-level TTL management via collMod.

I renamed the directory from clustered-collections to clustered_collections to be a valid Python package, and consolidated everything under that directory. More extensive syntax tests for clustered collections with commands like create already live elsewhere in test files for those commands. The intent here is to only cover general semantic behavior of clustered collections that apply more generally.

Signed-off-by: Daniel Frankcom <[email protected]>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 22, 2026 22:30
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 22, 2026
@documentdb-triage-tool
Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: compatibility test, enhancement
Project fields suggested: Component test-coverage · Priority P2 · Effort L · Status Needs Review
Confidence: 0.90 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (504+0 LOC, 10 files); LLM: Adds new compatibility test cases covering clustered collection runtime semantics (sort, TTL, error codes, index immutability), scoped to the test-coverage component under documentdb_tests/compatibility/tests.

If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

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

Labels

compatibility test Compatibility test related enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant