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 on AppVeyor #27539
base: main
Are you sure you want to change the base?
Update conda on AppVeyor #27539
Conversation
a61c50e
to
83743ce
Compare
83743ce
to
85337ad
Compare
Seems like the problem is that the image that we are using only has Python 3.7 installed so resolving the environment for 3.9 and 3.10 takes significant time. https://www.appveyor.com/docs/windows-images-software/#python Also, updating conda does not give the latest version, so not clear how much of the recent improvements are actually included. Updating the image will only give 3.8 though if we stick with conda. pip-based installs can run any version of Python. But then, I do not really know what the purpose of the AppVeyor tests are. |
Could micromamba help us here? It looks like the upgrade is only getting us from 4.12 -> 4.14 which is still well before the change to use the mamba solver. My guess (not checked) is that 4.14 is the newest version available for py37. |
@@ -55,6 +55,7 @@ install: | |||
- conda config --set always_yes true | |||
- conda config --set show_channel_urls yes | |||
- conda config --prepend channels conda-forge | |||
- conda update -n base -q 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.
- conda update -n base -q conda | |
- conda update -n base -q conda python |
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 only update python to the newest 3.7 afaIk.
It looks like we could use Chocolatey to get a newer miniconda3 with Python 3.9, but the latest version is still 4.12.0. Chocolatey also has mambaforge 23.3.1.100, which should be about the same as miniforge. |
If Appveyor does not provide a recent minconda out of the box, micromamba is likely the way to go. |
PR summary
The AppVeyor tests are pretty slow and quite a bit of the time seems to be setting things up. (About 12 of 36 minutes spent running the actual tests.)
As a really old version of conda is used by default (4.7.12), this PR aims to upgrade to the latest conda version which hopefully runs faster (as most things are faster).
PR checklist