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

Reduce test suite runtime

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Tests
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              behackett Bernie Hackett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: