You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2025/05/23 05:43:08 UTC
(spark) 02/04: Revert "Revert "[SPARK-52276][BUILD] Make ANSWER not to be overwritten in release scripts""
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/spark.git
commit e2b0b3788b465918736477c7e28e6489d1dc2942
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Fri May 23 14:42:30 2025 +0900
Revert "Revert "[SPARK-52276][BUILD] Make ANSWER not to be overwritten in release scripts""
This reverts commit 4c7472b8a015b55b1556c3959e7225c8e74a9610.
---
dev/create-release/do-release-docker.sh | 18 +++++++++++-------
dev/create-release/release-util.sh | 19 +++++++++++--------
2 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/dev/create-release/do-release-docker.sh b/dev/create-release/do-release-docker.sh
index d3292d1dcb19..16aa857a3e8a 100755
--- a/dev/create-release/do-release-docker.sh
+++ b/dev/create-release/do-release-docker.sh
@@ -72,9 +72,11 @@ fi
if [ -d "$WORKDIR/output" ]; then
if [ -z "$ANSWER" ]; then
- read -p "Output directory already exists. Overwrite and continue? [y/n] " ANSWER
- fi
- if [ "$ANSWER" != "y" ]; then
+ read -p "Output directory already exists. Overwrite and continue? [y/n] " userinput
+ if [ "$userinput" != "y" ]; then
+ error "Exiting."
+ fi
+ elif [ "$ANSWER" != "y" ]; then
error "Exiting."
fi
fi
@@ -82,9 +84,11 @@ fi
if [ ! -z "$RELEASE_STEP" ] && [ "$RELEASE_STEP" = "finalize" ]; then
echo "THIS STEP IS IRREVERSIBLE! Make sure the vote has passed and you pick the right RC to finalize."
if [ -z "$ANSWER" ]; then
- read -p "You must be a PMC member to run this step. Continue? [y/n] " ANSWER
- fi
- if [ "$ANSWER" != "y" ]; then
+ read -p "You must be a PMC member to run this step. Continue? [y/n] " userinput
+ if [ "$userinput" != "y" ]; then
+ error "Exiting."
+ fi
+ elif [ "$ANSWER" != "y" ]; then
error "Exiting."
fi
@@ -163,7 +167,7 @@ if [ -n "$JAVA" ]; then
fi
echo "Building $RELEASE_TAG; output will be at $WORKDIR/output"
-docker $([ -z "$GITHUB_ACTIONS" ] && echo "-ti") run \
+docker run $([ -z "$GITHUB_ACTIONS" ] && echo "-ti") \
--env-file "$ENVFILE" \
--volume "$WORKDIR:/opt/spark-rm" \
$JAVA_VOL \
diff --git a/dev/create-release/release-util.sh b/dev/create-release/release-util.sh
index 531e353fe951..687ccab7e1ca 100755
--- a/dev/create-release/release-util.sh
+++ b/dev/create-release/release-util.sh
@@ -147,9 +147,11 @@ function get_release_info {
SKIP_TAG="${SKIP_TAG:-0}"
if check_for_tag "$RELEASE_TAG" && [[ $SKIP_TAG = 0 ]]; then
if [ -z "$ANSWER" ]; then
- read -p "$RELEASE_TAG already exists. Continue anyway [y/n]? " ANSWER
- fi
- if [ "$ANSWER" != "y" ]; then
+ read -p "$RELEASE_TAG already exists. Continue anyway [y/n]? " userinput
+ if [ "$userinput" != "y" ]; then
+ error "Exiting."
+ fi
+ elif [ "$ANSWER" != "y" ]; then
error "Exiting."
fi
SKIP_TAG=1
@@ -198,11 +200,12 @@ E-MAIL: $GIT_EMAIL
EOF
if [ -z "$ANSWER" ]; then
- read -p "Is this info correct [y/n]? " ANSWER
- fi
- if [ "$ANSWER" != "y" ]; then
- echo "Exiting."
- exit 1
+ read -p "Is this info correct [y/n]? " userinput
+ if [ "$userinput" != "y" ]; then
+ error "Exiting."
+ fi
+ elif [ "$ANSWER" != "y" ]; then
+ error "Exiting."
fi
if ! is_dry_run; then
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org