Skip to content

Conversation

@baileympearson
Copy link
Contributor

Description

What is changing?

The server selection operation count latency window test often fails because the observed percentage of requests sent to each mongos is outside the threshold. Experimenting locally does demonstrate that the percentage approaches 50% to each mongos as the total number of operations increases (which makes sense - as the total time the test runs increases, any ephemeral variations will be averaged away).

This PR bumps the total number of iterations to a number that when run locally leaves the latency window. This is purely empirical, and it is possible that the number of iterations is not high enough to reliably run in CI but I believe this should resolve the flakiness of the tests. I discussed these changes with Patrick and other drivers still see these tests flaking as well. I propose merging this PR and watching for the flakey test, and if a period of time goes by and we don't see any flakiness, we can propose modifying the spec.

Is there new documentation needed for these changes?

No.

What is the motivation for this change?

Cleaning up our flakey CI.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

durran
durran previously approved these changes Aug 23, 2022
Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

Looks like 1000 did the trick.

@durran durran added the Team Review Needs review from team label Aug 24, 2022
@baileympearson
Copy link
Contributor Author

flakey test logged here -https://jira.mongodb.org/browse/NODE-4581

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

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants