-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faster testing using pytest-xdist #83
base: master
Are you sure you want to change the base?
Conversation
It looks like the CICD pytest duration went down from about 4 minutes to 2.5 minutes. I did have to use |
I would like to hold off on changes like this until we actually attempt to solve the slow test issue by addressing the root cause, converting to an inefficient format unnecessarily. This was there for backwards compatibility, but that appears to be unnecessary now. |
Right. As soon as we have replaced the source measurements, now collected as a @suvayu will be running TraP in debug mode to figure out exactly which source parameters TraP "eats".
in tkp/steps/source_extraction.py If confirmed, that would mean that on the PySE side our work would include collecting these 18 quantities in a single array, with number of rows equal to number of sources. |
I can adapt to the structure you choose, if you would like to use a 2d numpy array than I can work with that :) |
This is just a nice-to-have. It speed up the tests on my machine from 4 minutes down to one minute by running tests in parallel. The
--dist worksteal
is important here, because some of the tests take significantly longer than others. With worksteal enabled, if one process is testing a slow test, other processes can run the other tests in the meantime.