This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 2984d236d2 GH-49998: [CI][Python] Pin to an older release of miniforge
to fix mamba hang (#49999)
2984d236d2 is described below
commit 2984d236d29dd05f25cf76126d2cffefd6b14402
Author: Adam Reeve <[email protected]>
AuthorDate: Wed May 20 22:49:38 2026 +1200
GH-49998: [CI][Python] Pin to an older release of miniforge to fix mamba
hang (#49999)
### Rationale for this change
See #49998. This prevents CI jobs from timing out after an hour.
### What changes are included in this PR?
Pins miniforge to 26.1.1-3.
### Are these changes tested?
Yes, I tested locally that this fixes the slow install.
### Are there any user-facing changes?
No, this only affects CI.
* GitHub Issue: #49998
Authored-by: Adam Reeve <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
ci/docker/conda.dockerfile | 6 ++++--
ci/scripts/install_conda.sh | 6 +++++-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ci/docker/conda.dockerfile b/ci/docker/conda.dockerfile
index 4b497b4703..6492e761fd 100644
--- a/ci/docker/conda.dockerfile
+++ b/ci/docker/conda.dockerfile
@@ -30,9 +30,11 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
-# install conda and mamba via miniforge
+# Install conda and mamba via miniforge.
+# Temporarily pin to an old version of miniforge due to a regression in the
mamba solver.
+# See https://github.com/apache/arrow/issues/49998.
COPY ci/scripts/install_conda.sh /arrow/ci/scripts/
-RUN /arrow/ci/scripts/install_conda.sh miniforge3 latest /opt/conda
+RUN /arrow/ci/scripts/install_conda.sh miniforge3 26.1.1-3 /opt/conda
ENV PATH=/opt/conda/bin:$PATH
# create a conda environment
diff --git a/ci/scripts/install_conda.sh b/ci/scripts/install_conda.sh
index c74b318cfa..ad0965881a 100755
--- a/ci/scripts/install_conda.sh
+++ b/ci/scripts/install_conda.sh
@@ -30,7 +30,11 @@ installer=$1
version=$2
prefix=$3
-download_url=https://github.com/conda-forge/miniforge/releases/${version}/download/${installer^}-${platform}-${arch}.sh
+if [ "$version" = "latest" ]; then
+
download_url=https://github.com/conda-forge/miniforge/releases/latest/download/${installer^}-${platform}-${arch}.sh
+else
+
download_url=https://github.com/conda-forge/miniforge/releases/download/${version}/${installer^}-${platform}-${arch}.sh
+fi
echo "Downloading Miniconda installer from ${download_url} ..."