From fea9c0597a8d4c01602a8936d92ab0a39b84086c Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Thu, 19 Sep 2024 07:27:03 -0400 Subject: [PATCH 1/2] Fix CI adapters test --- .github/workflows/linux-build.yml | 7 +++++++ scripts/setup-adapters.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 4c3fb9ade1ff..14ff621f9ed7 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -79,6 +79,13 @@ jobs: install_cuda ${CUDA_VERSION} fi + - name: Install Minio + run: | + MINIO_BINARY="minio-2022-05-26" + 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/ + - uses: assignUser/stash/restore@v1 with: path: '${{ env.CCACHE_DIR }}' diff --git a/scripts/setup-adapters.sh b/scripts/setup-adapters.sh index b2b0e5a1170d..26f377c66ea6 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. From dfbc4d47c60a2dc635a2654ac854b485a2cd000d Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Thu, 19 Sep 2024 07:32:44 -0400 Subject: [PATCH 2/2] check for minio binary on CI job --- .github/workflows/linux-build.yml | 8 +++++--- scripts/setup-adapters.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 14ff621f9ed7..1ca5cce9c7ec 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -82,9 +82,11 @@ jobs: - name: Install Minio run: | MINIO_BINARY="minio-2022-05-26" - 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/ + 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: diff --git a/scripts/setup-adapters.sh b/scripts/setup-adapters.sh index 26f377c66ea6..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.