Running tox in parallel specifying CPU counts produces wrong results #3155
Unanswered
UniversalExtensionsDev
asked this question in
Q&A
Replies: 1 comment 3 replies
-
FWIW I think
should be
Can you list the wheels? In case you do not leverage e.g. C code, and you are using pure Python, the wheels should be the same for all Python versions, and generating one wheel per CPU is either an optimization or an oversight. @gaborbernat Thoughts? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am new to tox, and still trying to figure it out, so I would like some help to understand the following puzzling issue.
I am unning the following command, where
build_dependencies
reflects to 4 testenvspy{37,38,39,30}-build_deps
:tox run-parallel -m build_dependencies --parallel 2 --parallel-no-spinner
With every execution of testenv
build_dependencies
, my project is getting built and I'm expecting a .whl file to be generated (I wish to do it that way since there is a custom logic behind this build). So in total, I expect to see 4 .whl files.I have noticed that when I'm running this testenv in parallel on a VM with 2vCPUS, only 2 .whl files are getting generated. However, when I run this on a VM with 4vCPUS all 4 wheels are generated. All 4 files are stored under the same directory, but I havent' came across any kind of IO error due to file descriptors accessing the same files/dirs.
So, I would expect the same number of wheel files to be generated in both VMs, but with an obvious delay on the one with the 2vCPUs.
Beta Was this translation helpful? Give feedback.
All reactions