-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Make parallel tox runs work with shared venvs #641
Comments
As a note: maybe this should not be linked to detox itself because it does apply to running tox in parallel even without detox. When we address it, lets try to find a solution for both cases. |
If you're looking for cross-platform exclusive file locking, I have a bit implemented here that seems to work well on windows / linux / macos |
I've also used |
I wish I wrote down why I decided not to use |
That's good to know, thanks. I used |
Just to note, the race condition that I point out here that deals with a shared log directory is not venv specific and has the potential to break anytime This race condition exists because of the code in py here. Take for example this scenario:
|
Is there any compelling reason we couldn't solve this by just putting the environment name in the log directory name, so that each parallel process had its own log directory? Or, alternatively, put the environment name in the log file name(s)? |
That well could be a reasonable solution. Keeping backward compatibility, doing the change and actually testing things work is what needs to be done by someone. Such PR would have a high chance of merge. |
Also, note that if you use isolated build with tox |
toxs built in parallel mode now bypasses this issue 👍 |
This would be a way of fixing #412 as @ssbarnea proposed in #412 (comment):
Sound reasonable to me - are there any other ideas to make this work?
The text was updated successfully, but these errors were encountered: