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

raulcd pushed a commit to branch maint-14.0.x
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit 44238dd794733e9287d507954159f3006997d17d
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Dec 1 10:52:20 2023 +0900

    GH-39003: [CI][macOS] Don't update Homebrew (#39016)
    
    ### Rationale for this change
    
    It's better that we always use the latest Homebrew to check with the latest 
Homebrew that are used by most users. But it's difficult to maintain.
    
    ### What changes are included in this PR?
    
    We don't update Homebrew manually. GitHub hosted GitHub Actions Runners 
update Homebrew periodically. We depend on it instead of manual `brew update`.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * Closes: #39003
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 .github/workflows/cpp.yml                  | 6 ------
 .github/workflows/python.yml               | 8 --------
 .github/workflows/ruby.yml                 | 7 -------
 dev/tasks/verify-rc/github.macos.amd64.yml | 6 ------
 4 files changed, 27 deletions(-)

diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index a9361f9f51..f0627b7ee5 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -193,12 +193,6 @@ jobs:
           submodules: recursive
       - name: Install Dependencies
         run: |
-          rm -f /usr/local/bin/2to3* || :
-          rm -f /usr/local/bin/idle3* || :
-          rm -f /usr/local/bin/pydoc3* || :
-          rm -f /usr/local/bin/python3* || :
-          rm -f /usr/local/bin/python3-config || :
-          brew update --preinstall || :
           brew bundle --file=cpp/Brewfile
       - name: Install MinIO
         run: |
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 7a8fd8d10c..ceea1e9236 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -167,15 +167,7 @@ jobs:
       - name: Install Dependencies
         shell: bash
         run: |
-          rm -f /usr/local/bin/2to3* || :
-          rm -f /usr/local/bin/idle3* || :
-          rm -f /usr/local/bin/pydoc3* || :
-          rm -f /usr/local/bin/python3* || :
-          rm -f /usr/local/bin/python3-config || :
-          brew update --preinstall || :
-          brew install --overwrite git
           brew bundle --file=cpp/Brewfile
-          brew install coreutils
           python -m pip install \
             -r python/requirements-build.txt \
             -r python/requirements-test.txt
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index 2e4b98c242..932ce0f931 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -149,13 +149,6 @@ jobs:
       - name: Install Homebrew Dependencies
         shell: bash
         run: |
-          rm -f /usr/local/bin/2to3* || :
-          rm -f /usr/local/bin/idle3* || :
-          rm -f /usr/local/bin/pydoc3* || :
-          rm -f /usr/local/bin/python3* || :
-          rm -f /usr/local/bin/python3-config || :
-          brew update --preinstall || :
-          brew install --overwrite git
           brew bundle --file=cpp/Brewfile
           brew bundle --file=c_glib/Brewfile
       - name: Install Ruby Dependencies
diff --git a/dev/tasks/verify-rc/github.macos.amd64.yml 
b/dev/tasks/verify-rc/github.macos.amd64.yml
index 12dfb7d90f..4efed5c73a 100644
--- a/dev/tasks/verify-rc/github.macos.amd64.yml
+++ b/dev/tasks/verify-rc/github.macos.amd64.yml
@@ -43,12 +43,6 @@ jobs:
       - name: Install System Dependencies
         shell: bash
         run: |
-          rm -f /usr/local/bin/2to3*
-          rm -f /usr/local/bin/idle*
-          rm -f /usr/local/bin/pydoc3*
-          rm -f /usr/local/bin/python3*
-          brew update || echo "brew update did not finish successfully"
-          brew install --overwrite git
           brew bundle --file=arrow/cpp/Brewfile
           brew bundle --file=arrow/c_glib/Brewfile
       {% endif %}

Reply via email to