Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make test running concurrency dynamic based on nprocs (Qiskit#1973)
* Make test running concurrency dynamic based on nprocs In Qiskit#1228 we decreased the concurrency used for the test runner in CI to avoid memory pressure and failing jobs. In that commit we set it to 2 as a quick fix so we could unblock CI and continue landing patches. A followup was to do the analysis and find the sweet spot for concurrency and stability. At the same time we opened mtreinish/stestr#202 to add support to the test runner for running fractional nprocs. That is still under discussion, but in the meantime this commit adds support to the makefile for using fractional nprocs concurrency. It adjusts are default concurrency from 2 to be nprocs / 2 if nprocs > 3. This should enable us to increase the number of test workers we run on travis linux jobs but still maintain reliability. * Hard code osx to 2 workers * Add debug statement about core count and worker count * Use printf to round floats to int
- Loading branch information