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

Parallelizing test-libmongoc

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: