ci(NODE-6752): unskip flaky SCRAM auth tests #4571
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
What is changing?
Unskips and fixes the flaky auth tests. The problem appears to be the use of Promise.all() instead of Promise.allSettled() when creating multiple users concurrently. Promise.all() meant that sometimes, by the time the tests started running, only some of the required test users had been created.
I ran a patch across all our variants that run these tests, each variant running the tests 1000 times: https://spruce.mongodb.com/version/6862c34402854f00079a3f3a/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC. The only failures are on Windows replica set 4.2. I'm not sure why these failed, but I fixed those failures by creating users in a before, instead of a beforeEach.
Is there new documentation needed for these changes?
What is the motivation for this change?
Release Highlight
Fill in title or leave empty for no highlight
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript