Skip to content
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

Re-install conda/mamba for every tljh upgrade (doesn't imply upgrade) #968

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Feb 26, 2024

We have previously re-installed (without upgrading) conda and mamba, and done it based on specific versions. I think we are required to do this uncodntionally though. I think based conda/conda#12366 (comment) that since tljh make use of both pip and conda/mamba to install packages via plugins, even though we mostly use pip, we must do this re-install to ensure conda/mamba is functional before an tljh upgrade.

I think we end up with requests installed via pip during the initial setup of tljh, and that sets us up for issues when we are to make an upgrade later when conda/mamba is being used via plugins. I think the reason we didn't have this error before in tests, but do now, relates to new versions of openssl have been released, and that conda/mamba automatically upgrades them.

This is a simplification to help ensure we don't run into issues like
below because requests gets installed via pip.

```
RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment.
```
This can help us check if a package has been installed from PyPI via
pip, or from conda-forge or other channel via conda/mamba.
@consideRatio consideRatio added the bug Something isn't working label Feb 26, 2024
@consideRatio
Copy link
Member Author

@manics @minrk this may be relevant to ensure upgrade works, especially soon if users are to use the upgrade to get security patches or similar.

@minrk minrk merged commit 8348d4a into jupyterhub:main Mar 18, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test suite is failing in main branch
2 participants