Skip to content

Add capped collection tests#227

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

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

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

This change adds general tests for capped collections.

The aim here is to test the runtime semantics unique to capped collections like insertion ordering guarantees, natural sort behavior, eviction under size/max constraints, write-position stability across updates and upserts, and delete interactions.

I removed a duplicate smoke test file, and consolidated everything under the capped_collections dir. More extensive syntax tests for capped collections with commands like create and convertToCapped already live elsewhere in test files for those commands. The intent here is to only cover general semantic behavior of capped 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 20:11
@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.88 (mixed)

Reasoning

component from path globs (test-coverage); effort from diff stats (850+22 LOC, 7 files); LLM: Adds new test coverage for capped collection runtime semantics (insertion ordering, eviction, natural sort, etc.) under the compatibility tests directory, consolidating and expanding existing 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