Skip to content

PYTHON-3689 Fix flaky test_load_balancing without @flaky decorator - #2845

Merged
blink1073 merged 2 commits into
mongodb:masterfrom
blink1073:PYTHON-3689
Jun 4, 2026
Merged

blink1073 merged 2 commits into
mongodb:masterfrom
blink1073:PYTHON-3689

Conversation

@blink1073

@blink1073 blink1073 commented Jun 4, 2026 •

Copy link
Copy Markdown
Member

PYTHON-3689

Changes in this PR

Fixes the flaky TestProse.test_load_balancing test by addressing the root cause rather than retrying with @flaky.

Also removes the corresponding dead entry from the flaky_tests list in unified_format.py (it never matched any unified-format test).

Test Plan

  • Run all load balancer Evergreen tasks 3x

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage? (this IS the test fix)
  • 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?
  • Is all relevant documentation (README or docstring) updated?

blink1073 added 2 commits June 4, 2026 06:09
Pre-load the delayed server's operation count before measuring distribution
so measurement finds consistently route to the fast server (~0% vs ≤25%).
@blink1073

Copy link
Copy Markdown
Member Author

Linkcheck failures are unrelated

@blink1073
blink1073 marked this pull request as ready for review June 4, 2026 11:40
@blink1073
blink1073 requested a review from a team as a code owner June 4, 2026 11:40
@blink1073
blink1073 requested a review from sophiayangDB June 4, 2026 11:40
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sophiayangDB sophiayangDB 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.

LGTM, the failing tests seem unrelated

@blink1073
blink1073 merged commit 98c002a into mongodb:master Jun 4, 2026
86 of 89 checks passed
@blink1073
blink1073 deleted the PYTHON-3689 branch June 4, 2026 13:43
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