From 48c662813101c75851f126ce9ecb86669cd8b06a Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Thu, 19 Sep 2024 09:12:41 -0700 Subject: [PATCH] Fix CI adapters test (#11038) Summary: Minio download broke in this PR: https://github.com/facebookincubator/velox/pull/10920 Resolves: https://github.com/facebookincubator/velox/issues/11035 Pull Request resolved: https://github.com/facebookincubator/velox/pull/11038 Reviewed By: Yuhta Differential Revision: D63030598 Pulled By: pedroerp fbshipit-source-id: 1e884813e4a88e5d33196dd4b0bb172558d979a2 --- .github/workflows/linux-build.yml | 9 +++++++++ scripts/setup-adapters.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 4c3fb9ade1ff..1ca5cce9c7ec 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -79,6 +79,15 @@ jobs: install_cuda ${CUDA_VERSION} fi + - name: Install Minio + run: | + MINIO_BINARY="minio-2022-05-26" + if [ ! -f /usr/local/bin/${MINIO_BINARY} ]; then + wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.RELEASE.2022-05-26T05-48-41Z -O ${MINIO_BINARY} + chmod +x ./${MINIO_BINARY} + mv ./${MINIO_BINARY} /usr/local/bin/ + fi + - uses: assignUser/stash/restore@v1 with: path: '${{ env.CCACHE_DIR }}' diff --git a/scripts/setup-adapters.sh b/scripts/setup-adapters.sh index b2b0e5a1170d..4fed3cdced9a 100755 --- a/scripts/setup-adapters.sh +++ b/scripts/setup-adapters.sh @@ -44,7 +44,7 @@ function install_aws_deps { MINIO_ARCH="amd64" fi local MINIO_BINARY="minio-2022-05-26" - if [[! -f /usr/local/bin/${MINIO_BINARY} ]]; then + if [ ! -f /usr/local/bin/${MINIO_BINARY} ]; then local MINIO_OS="linux" if [[ "$OSTYPE" == darwin* ]]; then # minio will have to approved under the Privacy & Security on MacOS on first use.