Skip to content

Commit ef3b0ef

Browse files
authored
GH-46333: [CI] Always pass --yes to mamba clean (#46341)
### Rationale for this change Some CI builds can get stuck before `mamba clean` is asking for confirmation. See example here: https://github.com/apache/arrow/actions/runs/14855669693/job/41708331720?pr=46332 This might depend on the Mamba version and whether it implements TTY detection reliably. ### What changes are included in this PR? Always pass `--yes` to `mamba clean`. ### Are these changes tested? Yes, by definition. ### Are there any user-facing changes? No. * GitHub Issue: #46333 Authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 5652af6 commit ef3b0ef

8 files changed

+8
-8
lines changed

ci/docker/conda-cpp.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN mamba install -q -y \
3838
libnuma \
3939
python=${python} \
4040
valgrind && \
41-
mamba clean --all
41+
mamba clean --all --yes
4242

4343
# We want to install the GCS testbench using the Conda base environment's Python,
4444
# because the test environment's Python may later change.

ci/docker/conda-python-cpython-debug.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ FROM ${repo}:${arch}-conda-python-${python}
2323
# (Docker oddity: ARG needs to be repeated after FROM)
2424
ARG python=3.9
2525
RUN mamba install -y "conda-forge/label/python_debug::python=${python}[build=*_cpython]" && \
26-
mamba clean --all
26+
mamba clean --all --yes
2727
# Quick check that we do have a debug mode CPython
2828
RUN python -c "import sys; sys.gettotalrefcount()"

ci/docker/conda-python-hdfs.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN mamba install -q -y \
2626
maven=${maven} \
2727
openjdk=${jdk} \
2828
pandas && \
29-
mamba clean --all
29+
mamba clean --all --yes
3030

3131
# installing libhdfs (JNI)
3232
ARG hdfs=3.2.1

ci/docker/conda-python-jpype.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ RUN mamba install -q -y \
2626
maven=${maven} \
2727
openjdk=${jdk} \
2828
jpype1 && \
29-
mamba clean --all
29+
mamba clean --all --yes

ci/docker/conda-python-pandas.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COPY ci/conda_env_sphinx.txt /arrow/ci/
2929
RUN mamba install -q -y --file arrow/ci/conda_env_sphinx.txt && \
3030
# We can't install linuxdoc by mamba. We install linuxdoc by pip here.
3131
pip install linuxdoc && \
32-
mamba clean --all
32+
mamba clean --all --yes
3333

3434
COPY ci/scripts/install_pandas.sh /arrow/ci/scripts/
3535
RUN mamba uninstall -q -y numpy && \

ci/docker/conda-python-spark.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN mamba install -q -y \
3030
openjdk=${jdk} \
3131
maven=${maven} \
3232
pandas && \
33-
mamba clean --all && \
33+
mamba clean --all --yes && \
3434
mamba uninstall -q -y numpy && \
3535
/arrow/ci/scripts/install_numpy.sh ${numpy}
3636

ci/docker/conda-python.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN mamba install -q -y \
3030
$([ "$python" == $(gdb --batch --eval-command 'python import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') ] && echo "gdb") \
3131
"python=${python}.*=*_cp*" \
3232
nomkl && \
33-
mamba clean --all
33+
mamba clean --all --yes
3434

3535
ENV ARROW_ACERO=ON \
3636
ARROW_BUILD_STATIC=OFF \

ci/docker/conda.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ENV PATH=/opt/conda/bin:$PATH
3838
# create a conda environment
3939
ADD ci/conda_env_unix.txt /arrow/ci/
4040
RUN mamba create -n arrow --file arrow/ci/conda_env_unix.txt git && \
41-
mamba clean --all
41+
mamba clean --all --yes
4242

4343
# activate the created environment by default
4444
RUN echo "conda activate arrow" >> ~/.profile

0 commit comments

Comments
 (0)