This is an automated email from the ASF dual-hosted git repository.

apitrou 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 ef3b0efc01 GH-46333: [CI] Always pass `--yes` to `mamba clean` (#46341)
ef3b0efc01 is described below

commit ef3b0efc01bdb4a5eff8c56e33b560e5a061cd0f
Author: Antoine Pitrou <[email protected]>
AuthorDate: Wed May 7 10:14:27 2025 +0200

    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 <[email protected]>
    Signed-off-by: Antoine Pitrou <[email protected]>
---
 ci/docker/conda-cpp.dockerfile                  | 2 +-
 ci/docker/conda-python-cpython-debug.dockerfile | 2 +-
 ci/docker/conda-python-hdfs.dockerfile          | 2 +-
 ci/docker/conda-python-jpype.dockerfile         | 2 +-
 ci/docker/conda-python-pandas.dockerfile        | 2 +-
 ci/docker/conda-python-spark.dockerfile         | 2 +-
 ci/docker/conda-python.dockerfile               | 2 +-
 ci/docker/conda.dockerfile                      | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ci/docker/conda-cpp.dockerfile b/ci/docker/conda-cpp.dockerfile
index a485fd8836..7564259e87 100644
--- a/ci/docker/conda-cpp.dockerfile
+++ b/ci/docker/conda-cpp.dockerfile
@@ -38,7 +38,7 @@ RUN mamba install -q -y \
         libnuma \
         python=${python} \
         valgrind && \
-    mamba clean --all
+    mamba clean --all --yes
 
 # We want to install the GCS testbench using the Conda base environment's 
Python,
 # because the test environment's Python may later change.
diff --git a/ci/docker/conda-python-cpython-debug.dockerfile 
b/ci/docker/conda-python-cpython-debug.dockerfile
index 36ba7865a8..c284a25351 100644
--- a/ci/docker/conda-python-cpython-debug.dockerfile
+++ b/ci/docker/conda-python-cpython-debug.dockerfile
@@ -23,6 +23,6 @@ FROM ${repo}:${arch}-conda-python-${python}
 # (Docker oddity: ARG needs to be repeated after FROM)
 ARG python=3.9
 RUN mamba install -y 
"conda-forge/label/python_debug::python=${python}[build=*_cpython]" && \
-    mamba clean --all
+    mamba clean --all --yes
 # Quick check that we do have a debug mode CPython
 RUN python -c "import sys; sys.gettotalrefcount()"
diff --git a/ci/docker/conda-python-hdfs.dockerfile 
b/ci/docker/conda-python-hdfs.dockerfile
index 4cf35f4b37..151136e2c3 100644
--- a/ci/docker/conda-python-hdfs.dockerfile
+++ b/ci/docker/conda-python-hdfs.dockerfile
@@ -26,7 +26,7 @@ RUN mamba install -q -y \
         maven=${maven} \
         openjdk=${jdk} \
         pandas && \
-    mamba clean --all
+    mamba clean --all --yes
 
 # installing libhdfs (JNI)
 ARG hdfs=3.2.1
diff --git a/ci/docker/conda-python-jpype.dockerfile 
b/ci/docker/conda-python-jpype.dockerfile
index c28400f026..43de45774e 100644
--- a/ci/docker/conda-python-jpype.dockerfile
+++ b/ci/docker/conda-python-jpype.dockerfile
@@ -26,4 +26,4 @@ RUN mamba install -q -y \
         maven=${maven} \
         openjdk=${jdk} \
         jpype1 && \
-    mamba clean --all
+    mamba clean --all --yes
diff --git a/ci/docker/conda-python-pandas.dockerfile 
b/ci/docker/conda-python-pandas.dockerfile
index 4a52ffa8e1..74152cc366 100644
--- a/ci/docker/conda-python-pandas.dockerfile
+++ b/ci/docker/conda-python-pandas.dockerfile
@@ -29,7 +29,7 @@ COPY ci/conda_env_sphinx.txt /arrow/ci/
 RUN mamba install -q -y --file arrow/ci/conda_env_sphinx.txt && \
     # We can't install linuxdoc by mamba. We install linuxdoc by pip here.
     pip install linuxdoc && \
-    mamba clean --all
+    mamba clean --all --yes
 
 COPY ci/scripts/install_pandas.sh /arrow/ci/scripts/
 RUN mamba uninstall -q -y numpy && \
diff --git a/ci/docker/conda-python-spark.dockerfile 
b/ci/docker/conda-python-spark.dockerfile
index a8e8250797..f4d968f724 100644
--- a/ci/docker/conda-python-spark.dockerfile
+++ b/ci/docker/conda-python-spark.dockerfile
@@ -30,7 +30,7 @@ RUN mamba install -q -y \
         openjdk=${jdk} \
         maven=${maven} \
         pandas && \
-    mamba clean --all && \
+    mamba clean --all --yes && \
     mamba uninstall -q -y numpy && \
     /arrow/ci/scripts/install_numpy.sh ${numpy}
 
diff --git a/ci/docker/conda-python.dockerfile 
b/ci/docker/conda-python.dockerfile
index c08b69e6ef..1c7ca9fb4b 100644
--- a/ci/docker/conda-python.dockerfile
+++ b/ci/docker/conda-python.dockerfile
@@ -30,7 +30,7 @@ RUN mamba install -q -y \
         $([ "$python" == $(gdb --batch --eval-command 'python import sys; 
print(f"{sys.version_info.major}.{sys.version_info.minor}")') ] && echo "gdb") \
         "python=${python}.*=*_cp*" \
         nomkl && \
-    mamba clean --all
+    mamba clean --all --yes
 
 ENV ARROW_ACERO=ON \
     ARROW_BUILD_STATIC=OFF \
diff --git a/ci/docker/conda.dockerfile b/ci/docker/conda.dockerfile
index f97be55498..4b497b4703 100644
--- a/ci/docker/conda.dockerfile
+++ b/ci/docker/conda.dockerfile
@@ -38,7 +38,7 @@ ENV PATH=/opt/conda/bin:$PATH
 # create a conda environment
 ADD ci/conda_env_unix.txt /arrow/ci/
 RUN mamba create -n arrow --file arrow/ci/conda_env_unix.txt git && \
-    mamba clean --all
+    mamba clean --all --yes
 
 # activate the created environment by default
 RUN echo "conda activate arrow" >> ~/.profile

Reply via email to