Skip to content

PYTHON-6055 - Mark maxConnecting unified CMAP tests as flaky - #3008

Merged
NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6055
Aug 28, 2026
Merged

PYTHON-6055 - Mark maxConnecting unified CMAP tests as flaky#3008
NoahStapp merged 1 commit into
mongodb:mainfrom
NoahStapp:PYTHON-6055

Conversation

@NoahStapp

Copy link
Copy Markdown
Contributor

PYTHON-6055

Changes in this PR

See ticket.

Test Plan

Test changes.

Checklist

Checklist for Author

  • [ ] Did you update the changelog (if necessary)?
  • [X] 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?

Copilot AI lite review requested due to automatic review settings August 26, 2026 18:52
@NoahStapp
NoahStapp requested a review from a team as a code owner August 26, 2026 18:52
@NoahStapp
NoahStapp requested a review from sleepyStick August 26, 2026 18:52

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

Marks a subset of unified CMAP (connection monitoring) spec tests related to maxConnecting as flaky, gated to CPython on Linux, to reduce CI noise while the underlying instability tracked in PYTHON-6055 is addressed.

Changes:

  • Adds flaky() handling to the CMAP spec test runner in run_scenario to retry selected failing maxConnecting scenarios.
  • Mirrors the same flaky-handling logic in both synchronous and asynchronous CMAP spec test runners.

Reviewed changes

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

File Description
test/test_connection_monitoring.py Adds per-scenario flaky retry wrapper for selected maxConnecting CMAP spec tests (sync).
test/asynchronous/test_connection_monitoring.py Adds per-scenario flaky retry wrapper for selected maxConnecting CMAP spec tests (async).

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

Comment on lines +228 to +232
for reason, flaky_test in flaky_tests:
if re.match(flaky_test.lower(), self.id().lower()) is not None:
decorator = flaky(reason=reason, func_name=self.id(), affects_cpython_linux=True)
await decorator(self._run_scenario)(scenario_def, test)
return

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This will be resolved by #3006.

Comment thread test/test_connection_monitoring.py
@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@NoahStapp
NoahStapp merged commit d8599b5 into mongodb:main Aug 28, 2026
87 of 90 checks passed
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.

3 participants