Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions repo2docker/buildpacks/conda/install-base-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -ex

cd $(dirname $0)

export MAMBA_VERSION="2.1.0"
export CONDA_VERSION=24.11.0
export MAMBA_VERSION="2.3.2"
export CONDA_VERSION="25.7.0"

URL="https://anaconda.org/conda-forge/micromamba/${MAMBA_VERSION}/download/${CONDA_PLATFORM}/micromamba-${MAMBA_VERSION}-0.tar.bz2"

Expand Down
4 changes: 2 additions & 2 deletions tests/conda/downgrade/verify
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ assert pkgs["xeus-cling"]["version"] == "0.6.0"
# this may be brittle, but it's unlikely any of these old versions
# of packages will be rebuilt
# xeus-cling 0.6.0 pins xeus 0.20, which pins openssl 1.1.1,
# which in turn downgrades Python from >=3.9.16 to 3.9.6
# which in turn downgrades krb5 from >=1.21.3 to 1.17.2

assert pkgs["openssl"]["version"].startswith("1.1.1"), pkgs["openssl"]["version"]
assert pkgs["python"]["version"] == "3.9.0", pkgs["python"]["version"]
assert pkgs["krb5"]["version"] == "1.17.2", pkgs["krb5"]["version"]
Comment on lines +27 to +30
Copy link
Contributor Author

@weiji14 weiji14 Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the logs at https://github.com/jupyterhub/repo2docker/actions/runs/17423514766/job/49491688040?pr=1465#step:7:1813, this is how the downgrade went:

#20 12.78   Updating specs:
#20 12.78 
#20 12.78    - python=3.9
#20 12.78    - xeus-cling=0.6.0
#20 12.78    - xtensor=0.20.8
#20 12.78    - xtensor-blas=0.16.1
#20 12.78    - notebook
#20 12.78 
#20 12.78 
#20 12.78   Package                   Version  Build                Channel          Size
#20 12.78 ─────────────────────────────────────────────────────────────────────────────────
#20 12.78   Install:
#20 12.78 ─────────────────────────────────────────────────────────────────────────────────
#20 12.78 
#20 12.78   + binutils_impl_linux-64   2.33.1  h53a641e_8           conda-forge      10MB
#20 12.78   + binutils_linux-64        2.33.1  h9595d00_17          conda-forge      22kB
#20 12.78   + clang_variant               1.0  cling_6.14.06        conda-forge       9kB
#20 12.78   + clangdev                  5.0.0  h935a590_1004        conda-forge      95MB
#20 12.78   + cling                       0.5  he860b03_1007        conda-forge      25MB
#20 12.78   + cppzmq                    4.3.0  hc9558a2_1001        conda-forge      15kB
#20 12.78   + gcc_impl_linux-64         7.3.0  hd420e75_5           conda-forge      74MB
#20 12.78   + gcc_linux-64              7.3.0  h553295d_17          conda-forge      22kB
#20 12.78   + gxx_impl_linux-64         7.3.0  hdf63c60_5           conda-forge      20MB
#20 12.78   + gxx_linux-64              7.3.0  h553295d_17          conda-forge      22kB
#20 12.78   + libblas                   3.9.0  8_openblas           conda-forge      12kB
#20 12.78   + libcblas                  3.9.0  8_openblas           conda-forge      12kB
#20 12.78   + libgfortran-ng            7.5.0  h14aa051_20          conda-forge      23kB
#20 12.78   + libgfortran4              7.5.0  h14aa051_20          conda-forge       1MB
#20 12.78   + liblapack                 3.9.0  8_openblas           conda-forge      12kB
#20 12.78   + libopenblas              0.3.12  pthreads_hb3c22a3_1  conda-forge       9MB
#20 12.78   + nlohmann_json             3.6.1  he1b5a44_0           conda-forge     104kB
#20 12.78   + xeus                     0.20.0  h4d8c418_1           conda-forge       4MB
#20 12.78   + xeus-cling                0.6.0  he513fc3_1           conda-forge      20MB
#20 12.78   + xtensor                  0.20.8  hc9558a2_0           conda-forge     162kB
#20 12.78   + xtensor-blas             0.16.1  h776b511_0           conda-forge     263kB
#20 12.78   + xtl                      0.6.21  h0efe328_1           conda-forge      97kB
#20 12.78 
#20 12.78   Remove:
#20 12.78 ─────────────────────────────────────────────────────────────────────────────────
#20 12.78 
#20 12.78   - libxcrypt                4.4.36  hd590300_1           conda-forge     100kB
#20 12.78 
#20 12.78   Change:
#20 12.78 ─────────────────────────────────────────────────────────────────────────────────
#20 12.78 
#20 12.78   - bzip2                     1.0.8  h4bc722e_7           conda-forge     253kB
#20 12.78   + bzip2                     1.0.8  h516909a_3           conda-forge     407kB
#20 12.78 
#20 12.78   Downgrade:
#20 12.78 ─────────────────────────────────────────────────────────────────────────────────
#20 12.78 
#20 12.78   - krb5                     1.21.3  h659f571_0           conda-forge       1MB
#20 12.78   + krb5                     1.17.2  h926e7f8_0           conda-forge       2MB
#20 12.78   - ld_impl_linux-64           2.43  h712a8e2_2           conda-forge     669kB
#20 12.78   + ld_impl_linux-64         2.33.1  h53a641e_8           conda-forge     603kB
#20 12.78   - libgcc-ng                14.2.0  h69a702a_1           conda-forge      54kB
#20 12.78   + libgcc-ng                 9.2.0  h24d8f2e_2           conda-forge       9MB
#20 12.78   - libgomp                  14.2.0  h77fa898_1           conda-forge     461kB
#20 12.78   + libgomp                   9.2.0  h24d8f2e_2           conda-forge     835kB
#20 12.78   - libstdcxx-ng             14.2.0  h4852527_1           conda-forge      54kB
#20 12.78   + libstdcxx-ng              9.2.0  hdf63c60_2           conda-forge       5MB
#20 12.78   - libuuid                  2.38.1  h0b41bf4_0           conda-forge      34kB
#20 12.78   + libuuid                  2.32.1  h14c3975_1000        conda-forge      27kB
#20 12.78   - libzlib                   1.3.1  hb9d3cd8_2           conda-forge      61kB
#20 12.78   + libzlib                  1.2.11  h36c2ea0_1013        conda-forge      60kB
#20 12.78   - openssl                   3.4.0  h7b32b05_1           conda-forge       3MB
#20 12.78   + openssl                  1.1.1h  h516909a_0           conda-forge       2MB
#20 12.78   - zlib                      1.3.1  hb9d3cd8_2           conda-forge      92kB
#20 12.78   + zlib                     1.2.11  h36c2ea0_1013        conda-forge      88kB
#20 12.78 
#20 12.78   Summary:
#20 12.78 
#20 12.78   Install: 22 packages
#20 12.78   Remove: 1 packages
#20 12.78   Change: 1 packages
#20 12.78   Downgrade: 9 packages
#20 12.78 
#20 12.78   Total download: 277MB

I didn't see a downgrade of the python version (Python was on 3.9.21), so I switched to checking krb5=1.17.2 instead that also pins to openssl >=1.1.1h,<1.1.2a.

4 changes: 2 additions & 2 deletions tests/conda/py35-binder-dir/verify
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ v = out.split()[1]
assert v[:3] == "3.5", out

out = sh(["micromamba", "--version"])
assert out == "2.1.0", out
assert out == "2.3.2", out

out = sh(["mamba", "--version"])
assert out == "2.1.0", out
assert out == "2.3.2", out


sh([kernel_python, "-c", "import numpy"])
Loading