-
Type: Epic
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
None
-
Reduce Test Runtime
The time to run the test suite has increased dramatically since 3.0, especially when run against a replica set. The primary problem is likely monitor thread spawn time when creating an instance of MongoClient. Running "git grep MongoClient" shows that we are creating a ton of MongoClient instances for one off tests.
Evaluate each instance of MongoClient created in the test suite. Some instances can likely be created with connect=False, especially if all the test does is check configuration attributes. Some tests can likely be run with client_context.client. Some tests may be able to be consolidated.
Ignore test_auth.py and test_ssl.py for now.
The second problem is related to wired tiger. Our test suite spends most of its time creating and immediately destroying databases and collections. This is much more expensive with wired tiger than it ever was with the mmap storage engine. Determine the best way to avoid this expense.
- is related to
-
PYTHON-2746 Speed up unified tests by reducing minHeartbeatFrequency and event publishing interval
- Backlog