Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-972

Reduce test suite runtime

    • Type: Icon: Epic Epic
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: