Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2750

Parallelizing test-libmongoc

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • tests
    • None

    Description

      Let's look into running test-libmongoc in parallel to speed it up. Fork each test into its own process, both for parallelization and so we can continue testing after a failure. Some points:

      • All of the mock server tests should be easily parallelizable
      • The live tests could have conflicts with collection and database names. Use gen_test_database() and gen_test_collection() to get around this.
      • To work properly, gen_test_database() must be updated to include the pid.
      • failpoints are a global shared state so there needs to be a way to mark tests as non-parallelizable.
      • The test runner needs to collect tests into a parallel phase and a serial phase and run tests accordingly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spencer.mckenney Spencer Mckenney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: