Skip to content

Commit 393d5a9

Browse files
authored
chore: make kokoro/macos CI more resilient (#15621)
1 parent 0e5f996 commit 393d5a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/kokoro/macos/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,13 @@ printf "%10s %s\n" "brew:" "$(brew --version 2>&1 | head -1)"
8181
printf "%10s %s\n" "branch:" "${BRANCH}"
8282

8383
io::log_h2 "Brew packages"
84+
export HOMEBREW_CURL_RETRIES=3
8485
export HOMEBREW_NO_AUTO_UPDATE=1
8586
export HOMEBREW_NO_INSTALL_CLEANUP=1
86-
brew list --versions --formula
87-
brew list --versions --cask
87+
brew list --versions --formula || io::log_yellow \
88+
"brew list --formula failed. Trusting Homebrew's fallback and continuing."
89+
brew list --versions --cask || io::log_yellow \
90+
"brew list --cask failed. Trusting Homebrew's fallback and continuing."
8891
brew list --versions coreutils || brew install coreutils
8992
if [[ "${RUNNING_CI:-}" = "yes" ]]; then
9093
# We use `gcloud alpha storage` as it significantly improves the

0 commit comments

Comments
 (0)