-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Skip recreating the virtualenv if it already exists #3221
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
Comments
There are some problem about removing the existing package that are not in your requirements. |
Oh I thought that the installed packages were already being re-used (otherwise why is there the clear cache feature?), and so this issue was about stopping the virtualenv being reinstalled over the top of an existing dirty virtualenv. However from your comment it seems that the virtualenv isn't ever re-used at all? |
The cache is saved on another directory https://github.com/rtfd/readthedocs.org/blob/f22289a30b909a61c6d498d6faf4e90b0824b4ed/readthedocs/projects/models.py#L468-L473 |
I think this feature is not needed if the cache directory is outside the virtual environment, right? |
Closing this as I think is not needed because we already cached the packages installed in the virtual environment and we can't reuse the virtual environment. |
Hi!
I noticed looking at the build log, that even with a cached build directory, time was wasted trying to recreate the virtualenv.
For example from this log, there is:
Whilst it's only a few seconds, it would still be good to avoid recreating the virtualenv if not necessary (if needed a python/pip version check could be added to ensure they get upgraded if needed).
(Reducing the end-to-end time will hopefully avoid the problems we're seeing with jobs overlapping and hitting #2901)
Many thanks :-)
The text was updated successfully, but these errors were encountered: