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 198423ed43d GH-50253: [CI] Manually install aws-sdk-cpp with brew in 
order to avoid lock (#50254)
198423ed43d is described below

commit 198423ed43d4c04dc82db1c1aa52a587944fdfdc
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Jun 30 11:43:12 2026 +0200

    GH-50253: [CI] Manually install aws-sdk-cpp with brew in order to avoid 
lock (#50254)
    
    ### Rationale for this change
    
    A change of behavior on the default number of threads used when installing 
via brew bundle is causing some CI jobs to fail because aws-sdk-cpp is locking 
`/usr/local/Cellar/cmake`.
    
    ### What changes are included in this PR?
    
    Manually install `aws-sdk-cpp` before brew install `cpp/Brewfile`
    
    ### Are these changes tested?
    
    Yes via CI and archery jobs that were failing.
    
    ### Are there any user-facing changes?
    No.
    
    * GitHub Issue: #50253
    
    Authored-by: Raúl Cumplido <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 .github/workflows/cpp.yml            |  5 +++++
 .github/workflows/cpp_extra.yml      | 10 ++++++++++
 .github/workflows/python.yml         |  5 +++++
 .github/workflows/ruby.yml           |  5 +++++
 dev/tasks/verify-rc/github.macos.yml |  6 +++++-
 5 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index 4764b661d97..5ea9083ff44 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -242,6 +242,11 @@ jobs:
           # Workaround for https://github.com/grpc/grpc/issues/41755
           # Remove once the runner ships a newer Homebrew.
           brew update
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=cpp/Brewfile
       - name: Install MinIO
         run: |
diff --git a/.github/workflows/cpp_extra.yml b/.github/workflows/cpp_extra.yml
index 575dccee6e9..9a863d2a5ff 100644
--- a/.github/workflows/cpp_extra.yml
+++ b/.github/workflows/cpp_extra.yml
@@ -278,6 +278,11 @@ jobs:
           submodules: recursive
       - name: Install dependencies
         run: |
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=cpp/Brewfile
           # We want to link aws-sdk-cpp statically but Homebrew's
           # aws-sdk-cpp provides only shared library. If we have
@@ -448,6 +453,11 @@ jobs:
           submodules: recursive
       - name: Install Dependencies
         run: |
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=cpp/Brewfile
 
           # We want to use bundled RE2 for static linking. If
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 4f5bd1490fe..4ca1db9bbaa 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -203,6 +203,11 @@ jobs:
           # Workaround for https://github.com/grpc/grpc/issues/41755
           # Remove once the runner ships a newer Homebrew.
           brew update
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=cpp/Brewfile
           python -m pip install \
             -r python/requirements-build.txt \
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index f075f1bc108..7953eb3f1bf 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -163,6 +163,11 @@ jobs:
           # We can remove this once GitHub hosted runners include
           # Meson 1.8.4 or later by default.
           brew update
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=cpp/Brewfile
           brew bundle --file=c_glib/Brewfile
           # For Meson.
diff --git a/dev/tasks/verify-rc/github.macos.yml 
b/dev/tasks/verify-rc/github.macos.yml
index 460d5f71832..1237b172d05 100644
--- a/dev/tasks/verify-rc/github.macos.yml
+++ b/dev/tasks/verify-rc/github.macos.yml
@@ -45,7 +45,11 @@ jobs:
           # Workaround for https://github.com/grpc/grpc/issues/41755
           # Remove once the runner ships a newer Homebrew.
           brew update
-
+          # Install aws-sdk-cpp manually to avoid issues with the new default
+          # `brew --jobs auto` causing a lock.
+          # Remove once the upstream issue is solved:
+          # https://github.com/Homebrew/brew/issues/22899
+          brew install aws-sdk-cpp
           brew bundle --file=arrow/cpp/Brewfile
           brew bundle --file=arrow/c_glib/Brewfile
 

Reply via email to