This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 47a2b18658 ARROW-16722: [CI][C++] Fix Minio failures specifying the
Minio version to use (#13299)
47a2b18658 is described below
commit 47a2b1865862bbf3304fdd8170f2cd13dedb0680
Author: Raúl Cumplido <[email protected]>
AuthorDate: Fri Jun 3 01:11:20 2022 +0200
ARROW-16722: [CI][C++] Fix Minio failures specifying the Minio version to
use (#13299)
Lead-authored-by: Raúl Cumplido <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
.github/workflows/cpp.yml | 2 +-
ci/appveyor-cpp-setup.bat | 2 +-
ci/scripts/install_minio.sh | 12 ++++++++----
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index 4a42c67aea..82e99160c3 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -341,7 +341,7 @@ jobs:
mkdir -p /usr/local/bin
wget \
--output-document /usr/local/bin/minio.exe \
- https://dl.min.io/server/minio/release/windows-amd64/minio.exe
+
https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2022-05-26T05-48-41Z
chmod +x /usr/local/bin/minio.exe
- name: Test
shell: msys2 {0}
diff --git a/ci/appveyor-cpp-setup.bat b/ci/appveyor-cpp-setup.bat
index 358a3e8c1e..1fa126cb0d 100644
--- a/ci/appveyor-cpp-setup.bat
+++ b/ci/appveyor-cpp-setup.bat
@@ -109,7 +109,7 @@ powershell.exe -Command "Start-Process clcache-server" ||
exit /B
@rem Download Minio somewhere on PATH, for unit tests
@rem
if "%ARROW_S3%" == "ON" (
- appveyor DownloadFile
https://dl.min.io/server/minio/release/windows-amd64/minio.exe -FileName
C:\Windows\Minio.exe || exit /B
+ appveyor DownloadFile
https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2022-05-26T05-48-41Z
-FileName C:\Windows\Minio.exe || exit /B
)
diff --git a/ci/scripts/install_minio.sh b/ci/scripts/install_minio.sh
index af99f96666..6ea8e1a095 100755
--- a/ci/scripts/install_minio.sh
+++ b/ci/scripts/install_minio.sh
@@ -51,15 +51,19 @@ fi
arch=${archs[$arch]}
platform=${platforms[$platform]}
+# Use specific versions for minio server and client to avoid CI failures on
new releases.
+minio_version="minio.RELEASE.2022-05-26T05-48-41Z"
+mc_version="mc.RELEASE.2022-05-09T04-08-26Z"
+
if [[ ! -x ${prefix}/bin/minio ]]; then
- url="https://dl.min.io/server/minio/release/${platform}-${arch}/minio"
+
url="https://dl.min.io/server/minio/release/${platform}-${arch}/archive/${minio_version}"
echo "Fetching ${url}..."
- wget -nv -P ${prefix}/bin ${url}
+ wget -nv --output-document ${prefix}/bin/minio ${url}
chmod +x ${prefix}/bin/minio
fi
if [[ ! -x ${prefix}/bin/mc ]]; then
- url="https://dl.min.io/client/mc/release/${platform}-${arch}/mc"
+
url="https://dl.min.io/client/mc/release/${platform}-${arch}/archive/${mc_version}"
echo "Fetching ${url}..."
- wget -nv -P ${prefix}/bin ${url}
+ wget -nv --output-document ${prefix}/bin/mc ${url}
chmod +x ${prefix}/bin/mc
fi