-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Update conda at startup #5897
Update conda at startup #5897
Conversation
Behind a Feature flag, we can decide if we want to update the version of ``conda`` from the system to its latest version available. This allow us to use a new release of ``conda`` that is not released under Miniconda yet, but also to not upgrade the Docker image just because of a new release of Miniconda. (the overhead added is around 60 seconds in total)
7d5962b
to
2efd2d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should enable this feature flag to test it, but remove it and just do it in prod if it seems to work well. It feels like a lot of extra work that we should probably not be doing though :/
@ericholscher I'm not sure to follow you. Do you say to just remove the feature flag and enable it by default? If it fails, we revert the commit and continue as we were? |
yes, after we test it with the feature flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's ship this, then remove the feature flag if it works.
) | ||
shutil.rmtree(version_path) | ||
|
||
if self.project.has_feature(Feature.UPDATE_CONDA_STARTUP): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also check if the project is using conda, so we don't run it if the user isn't using conda.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is under the Conda
class, not need to add a check here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Santos is right.
Behind a Feature flag, we can decide if we want to update the version of
conda
from the system to its latest version available.This allow us to use a new release of
conda
that is not released under Miniconda yet, but also to not upgrade the Docker image just because of a new release of Miniconda.(the overhead added is around 60 seconds in total --but they say that the new resolver is way faster... so 🥇 )