Skip to content

Commit 60764d6

Browse files
huydhnfacebook-github-bot
authored andcommitted
Replace wget with curl when setup macos job (#2539)
Summary: I'm seeing lots of flaky macOS job failing to download buck2 from S3 https://github.com/pytorch/executorch/actions/runs/8364218071/job/22899003145#step:9:94. Logging into the runner and run the command shows that using wget getting an invalid HTTPS certificate, but using curl is fine (weird). The runner is probably having an issue with openssl setup (https://serverfault.com/questions/922222/why-does-curl-work-with-a-specific-https-site-but-wget-has-problems-with-certif), so we can figure it out latter while this is to make macOS signal less flaky. Pull Request resolved: #2539 Reviewed By: guangy10 Differential Revision: D55147403 Pulled By: huydhn fbshipit-source-id: e42d693ba98ebe14f8fa9783f335ff2f9e06bd29
1 parent ccd2fe8 commit 60764d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/scripts/setup-macos.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ install_buck() {
2323
brew install zstd
2424
fi
2525

26-
if ! command -v wget &> /dev/null; then
27-
brew install wget
26+
if ! command -v curl &> /dev/null; then
27+
brew install curl
2828
fi
2929

3030
pushd .ci/docker
@@ -37,7 +37,7 @@ install_buck() {
3737
# --version doesn't say anything w.r.t its release version, i.e. 2024-02-15.
3838
# See D53878006 for more details.
3939
BUCK2=buck2-aarch64-apple-darwin.zst
40-
wget -q "https://ossci-macos.s3.amazonaws.com/${BUCK2}"
40+
curl -s "https://ossci-macos.s3.amazonaws.com/${BUCK2}" -o "${BUCK2}"
4141

4242
zstd -d "${BUCK2}" -o buck2
4343

0 commit comments

Comments
 (0)