Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: Third Party Software
-
Labels:None
-
Story Points:0.5
-
Sprint:Arch 2018-11-05
-
Team:Architecture
Description
Jim Bosch noticed that when he runs scons he gets many unexpected python processes created by pytest. It looks like for every pytest core an additional N processes are created where N seems to be the number of effective cores.
Attachments
Issue Links
- links to
The problem seems to be that pytest-flake8 runs flake8 with the default value for -
jobswhich causes flake8 to run with whatever the multiprocessing module thinks is a good number of default cores. Since pytest-flake8 runs flake8 separately for each file this is not the right option to use and explicitly setting the value to -j 1 fixes the problem and makes testing go significantly faster.