Skip to content

Commit 198423e

Browse files
authored
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 <raulcumplido@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 681ef42 commit 198423e

5 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/cpp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ jobs:
242242
# Workaround for https://github.com/grpc/grpc/issues/41755
243243
# Remove once the runner ships a newer Homebrew.
244244
brew update
245+
# Install aws-sdk-cpp manually to avoid issues with the new default
246+
# `brew --jobs auto` causing a lock.
247+
# Remove once the upstream issue is solved:
248+
# https://github.com/Homebrew/brew/issues/22899
249+
brew install aws-sdk-cpp
245250
brew bundle --file=cpp/Brewfile
246251
- name: Install MinIO
247252
run: |

.github/workflows/cpp_extra.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ jobs:
278278
submodules: recursive
279279
- name: Install dependencies
280280
run: |
281+
# Install aws-sdk-cpp manually to avoid issues with the new default
282+
# `brew --jobs auto` causing a lock.
283+
# Remove once the upstream issue is solved:
284+
# https://github.com/Homebrew/brew/issues/22899
285+
brew install aws-sdk-cpp
281286
brew bundle --file=cpp/Brewfile
282287
# We want to link aws-sdk-cpp statically but Homebrew's
283288
# aws-sdk-cpp provides only shared library. If we have
@@ -448,6 +453,11 @@ jobs:
448453
submodules: recursive
449454
- name: Install Dependencies
450455
run: |
456+
# Install aws-sdk-cpp manually to avoid issues with the new default
457+
# `brew --jobs auto` causing a lock.
458+
# Remove once the upstream issue is solved:
459+
# https://github.com/Homebrew/brew/issues/22899
460+
brew install aws-sdk-cpp
451461
brew bundle --file=cpp/Brewfile
452462
453463
# We want to use bundled RE2 for static linking. If

.github/workflows/python.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ jobs:
203203
# Workaround for https://github.com/grpc/grpc/issues/41755
204204
# Remove once the runner ships a newer Homebrew.
205205
brew update
206+
# Install aws-sdk-cpp manually to avoid issues with the new default
207+
# `brew --jobs auto` causing a lock.
208+
# Remove once the upstream issue is solved:
209+
# https://github.com/Homebrew/brew/issues/22899
210+
brew install aws-sdk-cpp
206211
brew bundle --file=cpp/Brewfile
207212
python -m pip install \
208213
-r python/requirements-build.txt \

.github/workflows/ruby.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ jobs:
163163
# We can remove this once GitHub hosted runners include
164164
# Meson 1.8.4 or later by default.
165165
brew update
166+
# Install aws-sdk-cpp manually to avoid issues with the new default
167+
# `brew --jobs auto` causing a lock.
168+
# Remove once the upstream issue is solved:
169+
# https://github.com/Homebrew/brew/issues/22899
170+
brew install aws-sdk-cpp
166171
brew bundle --file=cpp/Brewfile
167172
brew bundle --file=c_glib/Brewfile
168173
# For Meson.

dev/tasks/verify-rc/github.macos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ jobs:
4545
# Workaround for https://github.com/grpc/grpc/issues/41755
4646
# Remove once the runner ships a newer Homebrew.
4747
brew update
48-
48+
# Install aws-sdk-cpp manually to avoid issues with the new default
49+
# `brew --jobs auto` causing a lock.
50+
# Remove once the upstream issue is solved:
51+
# https://github.com/Homebrew/brew/issues/22899
52+
brew install aws-sdk-cpp
4953
brew bundle --file=arrow/cpp/Brewfile
5054
brew bundle --file=arrow/c_glib/Brewfile
5155

0 commit comments

Comments
 (0)