You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yu...@apache.org on 2026/04/23 03:44:00 UTC
(polaris) branch main updated: Regtests: harden MinIO client download and fail fast when setup breaks (#4279)
This is an automated email from the ASF dual-hosted git repository.
flyrain pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 676c04db57 Regtests: harden MinIO client download and fail fast when setup breaks (#4279)
676c04db57 is described below
commit 676c04db57da2677ef068abb439ce42d5287e8d6
Author: Yufei Gu <yu...@apache.org>
AuthorDate: Wed Apr 22 20:43:55 2026 -0700
Regtests: harden MinIO client download and fail fast when setup breaks (#4279)
---
regtests/Dockerfile | 6 ++++--
regtests/run.sh | 5 ++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/regtests/Dockerfile b/regtests/Dockerfile
index 7911c7161a..318d5a54d1 100644
--- a/regtests/Dockerfile
+++ b/regtests/Dockerfile
@@ -32,8 +32,10 @@ RUN apt-get update && \
mkdir -p /home/spark /tmp/polaris-regtests /opt/spark/conf && \
chown -R spark:spark /home/spark /tmp/polaris-regtests && \
chmod -R 777 /opt/spark/conf && \
- curl -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
- chmod +x /usr/local/bin/mc
+ curl -fL --retry 5 --retry-delay 2 --retry-connrefused \
+ -o /usr/local/bin/mc https://dl.min.io/client/mc/release/linux-amd64/mc && \
+ chmod +x /usr/local/bin/mc && \
+ /usr/local/bin/mc --version
COPY --chown=spark:spark ./regtests/setup.sh ./regtests/pyspark-setup.sh ./regtests/requirements.txt /home/spark/polaris/regtests/
COPY --chown=spark:spark ./client/python /home/spark/polaris/client/python
diff --git a/regtests/run.sh b/regtests/run.sh
index 83afe162e1..30f097cf74 100755
--- a/regtests/run.sh
+++ b/regtests/run.sh
@@ -81,7 +81,10 @@ fi
# Run MinIO setup if in MinIO mode
if [ "${MINIO_TEST_ENABLED}" == "true" ]; then
loginfo "Setting up MinIO for tests"
- ${REGTEST_HOME}/minio-setup.sh
+ if ! ${REGTEST_HOME}/minio-setup.sh; then
+ logred "MinIO setup failed; aborting regression tests"
+ exit 1
+ fi
loginfo "MinIO mode enabled"
else
loginfo "AWS mode enabled"