[CDRIVER-2750] Parallelizing test-libmongoc Created: 13/Jul/18  Updated: 20/Jul/20  Resolved: 20/Jul/20

Status: Closed
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Spencer Mckenney Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-2733

 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.


 Comments   
Comment by Alexander Golin (Inactive) [ 20/Jul/20 ]

Would be a significant effort and tests are not particularly slow as is.

Generated at Wed Feb 07 21:16:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.