Skip to content

Commit 2984d23

Browse files
authored
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 <adreeve@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent f3336ba commit 2984d23

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

ci/docker/conda.dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
3030
apt-get clean && \
3131
rm -rf /var/lib/apt/lists/*
3232

33-
# install conda and mamba via miniforge
33+
# Install conda and mamba via miniforge.
34+
# Temporarily pin to an old version of miniforge due to a regression in the mamba solver.
35+
# See https://github.com/apache/arrow/issues/49998.
3436
COPY ci/scripts/install_conda.sh /arrow/ci/scripts/
35-
RUN /arrow/ci/scripts/install_conda.sh miniforge3 latest /opt/conda
37+
RUN /arrow/ci/scripts/install_conda.sh miniforge3 26.1.1-3 /opt/conda
3638
ENV PATH=/opt/conda/bin:$PATH
3739

3840
# create a conda environment

ci/scripts/install_conda.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ installer=$1
3030
version=$2
3131
prefix=$3
3232

33-
download_url=https://github.com/conda-forge/miniforge/releases/${version}/download/${installer^}-${platform}-${arch}.sh
33+
if [ "$version" = "latest" ]; then
34+
download_url=https://github.com/conda-forge/miniforge/releases/latest/download/${installer^}-${platform}-${arch}.sh
35+
else
36+
download_url=https://github.com/conda-forge/miniforge/releases/download/${version}/${installer^}-${platform}-${arch}.sh
37+
fi
3438

3539
echo "Downloading Miniconda installer from ${download_url} ..."
3640

0 commit comments

Comments
 (0)