Skip to content

Commit 0775283

Browse files
committed
Merge #1074: ci: Retry brew update a few times to avoid random failures
e51ad3b ci: Retry `brew update` a few times to avoid random failures (Tim Ruffing) b1cb969 ci: Revert "Attempt to make macOS builds more reliable" (Tim Ruffing) Pull request description: ACKs for top commit: jonasnick: ACK e51ad3b Tree-SHA512: cb0b81ac8d81fe8ea58afa7382d3f922bd4eb713645c5d0b99f9de963c9906273f5d573a9272e8f6cdb16ffcca5e162c088cc2b0772278f68930f8cb726824be
2 parents 5dcc6f8 + e51ad3b commit 0775283

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.cirrus.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ task:
135135
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
136136
##
137137
brew_valgrind_pre_script:
138-
# Reinstall brew. We could do `brew update` instead but that often fails.
139-
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
140-
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
138+
# Retry a few times because this tends to fail randomly.
139+
- for i in {1..5}; do brew update && break || sleep 15; done
141140
- brew config
142141
- brew tap LouisBrunner/valgrind
143142
# Fetch valgrind source but don't build it yet.

0 commit comments

Comments
 (0)