Skip to content

PYTHON-6059 Skip CSOT unified tests when running with coverage - #3014

Open
NoahStapp wants to merge 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6059
Open

PYTHON-6059 Skip CSOT unified tests when running with coverage#3014
NoahStapp wants to merge 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6059

Conversation

@NoahStapp

Copy link
Copy Markdown
Contributor

PYTHON-XXXX

Changes in this PR

Skip CSOT unified tests when running with coverage. This does not include prose tests, which will be individually skipped in later tickets if they are flaky.

Test Plan

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

@NoahStapp
NoahStapp requested a review from a team as a code owner August 27, 2026 20:28
@NoahStapp
NoahStapp requested review from sleepyStick and a lite review from Copilot August 27, 2026 20:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Unified Test Format runner to skip CSOT unified tests when running the test suite under coverage, to avoid known inconsistencies/flakiness in that mode.

Changes:

  • Skip CSOT unified tests when COVERAGE is set in the environment (sync runner).
  • Skip CSOT unified tests when COVERAGE is set in the environment (async runner).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/unified_format.py Adds a coverage-mode skip for CSOT unified tests in the synchronous UTF runner.
test/asynchronous/unified_format.py Adds the same coverage-mode skip for CSOT unified tests in the asynchronous UTF runner.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/unified_format.py
Comment on lines +644 to +645
if "COVERAGE" in os.environ:
self.skipTest("CSOT tests are inconsistent with coverage")
Comment on lines +645 to +646
if "COVERAGE" in os.environ:
self.skipTest("CSOT tests are inconsistent with coverage")
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants