You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During preparing Halotools for Guix package index I've noticed that tests randomly fail
when --numprocess is provided to activate pytest-xdist module for parallel jobs, it's not happaning
with single job.
Thanks for reporting this issue. I've never ran the halotools test suite in parallel and so I have not noticed this before. All of the failing tests you show appear to do with the (ad hoc) system the library uses to store and create a persistent memory of simulation data. In the test suite, the code creates some tiny simulation data, creates a log entry of the fake sims, and then runs tests on the logging mechanisms. Errors in these tests being run in parallel makes me think that some threads may be running tests on fake simdata that has not been created yet, or something like that. This would be harmless in terms of the performance of the source code, although I realize that's annoying for purposes of parallel testing. Do you have a workaround?
I did not go too far with investigation of possible solutions yet, prepared it
without pytest-xdist enabled. From my experience with some related packages
(astropy, asdf) they have quite thread save tests suites, which benefits in CI.
The potential solution would be consolidate create/test pairs as a single unit
test.
Hi,
During preparing Halotools for Guix package index I've noticed that tests randomly fail
when
--numprocess
is provided to activatepytest-xdist
module for parallel jobs, it's not happaningwith single job.
Inputs:
The text was updated successfully, but these errors were encountered: