-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Use mamba 2 for the base installation of Miniforge #715
Conversation
c3c4c99
to
5c99450
Compare
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Yes, I am adding a few command to create an environment, install and uninstall package to test. I want to make sure that it is not brittle. |
Great thanks! I just merged a few using github's interface to resolve some merge conflicts. Got one last mamba1 version out ;) |
I guess we could have conda 25.1.0 part of this once conda-forge/conda-feedstock#256 is merged. |
Currently:
I am trying to see what's the best way to install CA certificates on the machines. |
If i recall correctly i just run the base docker images, so however yo uwould do it for the respective docker images (ubuntu based vs fedora based) |
Signed-off-by: Julien Jerphanion <[email protected]>
A similar error was reported in mamba-org/mamba#3570 |
Miniforge/mamba needs to work even if the OS has outdated certificates. Trying to fix the docker image is not the solution here. |
@jaimergp: IIRC, you told me once that you observe this exact problem, and we were wondering whether this was due to |
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
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.
Some comments and questions for reviews.
@@ -84,3 +107,44 @@ python -c "import platform; print(platform.machine())" | |||
python -c "import platform; print(platform.release())" | |||
|
|||
echo "***** Done: Testing installer *****" | |||
|
|||
echo "***** Testing the usage of mamba main commands *****" |
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.
Note for reviewers: are there other commands or behaviors one could test?
scripts/test.sh
Outdated
echo "***** Initialize the current session for mamba *****" | ||
export MAMBA_ROOT_PREFIX="/root/miniforge" | ||
eval "$(mamba shell hook --shell bash)" |
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.
Note for reviewers: MAMBA_ROOT_PREFIX
and the shell hook will be set in the shell profile file by the installation script if users choose to have it run during the installation, which is not the case here.
I would also like to test when this is the case if possible.
I think we should double check the serialization of URLs in prefix records to make sure that they conform to the "conda standard" (which sadly doesn't exist) - but it should look similar to mamba 1.x / conda / pixi (ie. not URL encoded). |
I can continue mamba-org/mamba#3745 and so that we can have it part of 2.0.6 (cc @maresb), and then we can update this PR to use 2.0.6. Would this work? |
This is a place where micromamba should differ from mamba again then. |
Signed-off-by: Julien Jerphanion <[email protected]>
9d74756
to
56d8358
Compare
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Signed-off-by: Julien Jerphanion <[email protected]>
Co-authored-by: jaimergp <[email protected]>
This LGTM, I'll defer the merge to @hmaarrfk so it's well aligned with other changes I might not be aware of. |
I'll merge and create a tag, but i won't make it live unless i hear back from people that they've tried it. I've honestly had to revert a few of my installs from mamba2->mamba1 because of strange workflows i have. |
Please do not make a release yet. |
Can you give more details about the problem? |
Which in turn points to upstream issue: mamba-org/mamba#3804 The latter has more details about the bug |
Follow-up of #694 after the merge of conda/constructor#914.
I am looking for ways to test this. For now, the
Miniforge
example inconda/constructor
is the only one element which allows testing it locally.@jaimergp, @hmaarrfk: do you have any recommendations for better testing this? 🙏