Skip to content

Add currentOp stage tests#592

Merged
eerxuan merged 8 commits into
documentdb:mainfrom
danielfrankcom:pr/currentOp
Jun 25, 2026
Merged

Add currentOp stage tests#592
eerxuan merged 8 commits into
documentdb:mainfrom
danielfrankcom:pr/currentOp

Conversation

@danielfrankcom

Copy link
Copy Markdown
Collaborator

This change adds tests for the currentOp system stage.

Closes #378

@danielfrankcom danielfrankcom requested a review from a team as a code owner June 10, 2026 22:20
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels Jun 10, 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.85 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (952+2 LOC, 5 files); LLM: Adds new test coverage for the currentOp system stage, closing a tracked issue, which is a meaningful functional addition to the test suite.

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.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Comment thread documentdb_tests/framework/error_codes.py
@danielfrankcom danielfrankcom requested a review from eerxuan June 16, 2026 16:59
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Migrate the $currentOp live-state and usage tests from replica_set markers to requires(transactions=True) markers.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
In ActiveGetMore and InFlightLargeCommand, _wait_for_op() ran before the
try/finally, so a poll timeout would raise before the finally that joins
the producer thread. Move the wait inside the try block so thread.join
always runs on the way out.

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from eerxuan June 24, 2026 23:27
@eerxuan eerxuan merged commit 1ccf20b into documentdb:main Jun 25, 2026
14 checks passed
RyanGarfinkel pushed a commit to RyanGarfinkel/functional-tests that referenced this pull request Jun 29, 2026
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: RyanGarfinkel <113050972+RyanGarfinkel@users.noreply.github.com>
krishnasai453 pushed a commit to krishnasai453/functional-tests that referenced this pull request Jul 8, 2026
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
SarthakDalmia1 pushed a commit to SarthakDalmia1/functional-tests that referenced this pull request Jul 10, 2026
Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
Signed-off-by: Sarthak Dalmia <sadalmia@microsoft.com>
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.

Add compatibility test for $currentOp (system stage)

3 participants