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


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new b326b846a360 [SPARK-52255][BUILD] Adds a new environment variable 
SPARK_RC_COUNT in release script
b326b846a360 is described below

commit b326b846a360117226d674b029f2e6932b8356dc
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Thu May 22 13:04:13 2025 +0900

    [SPARK-52255][BUILD] Adds a new environment variable SPARK_RC_COUNT in 
release script
    
    ### What changes were proposed in this pull request?
    
    This PR proposes to add `SPARK_RC_COUNT` environment variable to specify 
the RC count.
    
    ### Why are the changes needed?
    
    To make the Spark release fully without developer interaction.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually tested.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #50975 from HyukjinKwon/SPARK-52255.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 2004f333173b6b98cb47b6c0d4922bc94bceb24d)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 dev/create-release/do-release-docker.sh | 1 +
 dev/create-release/release-util.sh      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/dev/create-release/do-release-docker.sh 
b/dev/create-release/do-release-docker.sh
index ff9cce0879bc..b175dfc44637 100755
--- a/dev/create-release/do-release-docker.sh
+++ b/dev/create-release/do-release-docker.sh
@@ -153,6 +153,7 @@ USER=$USER
 DEBUG_MODE=$DEBUG_MODE
 ANSWER=$ANSWER
 GITHUB_ACTIONS=$GITHUB_ACTIONS
+SPARK_RC_COUNT=$SPARK_RC_COUNT
 EOF
 
 JAVA_VOL=
diff --git a/dev/create-release/release-util.sh 
b/dev/create-release/release-util.sh
index dcef8e8c2260..531e353fe951 100755
--- a/dev/create-release/release-util.sh
+++ b/dev/create-release/release-util.sh
@@ -138,6 +138,9 @@ function get_release_info {
   export RELEASE_VERSION=$(read_config "Release" "$RELEASE_VERSION")
 
   RC_COUNT=$(read_config "RC #" "$RC_COUNT")
+  if [ -n "$SPARK_RC_COUNT" ]; then
+    RC_COUNT=$SPARK_RC_COUNT
+  fi
 
   # Check if the RC already exists, and if re-creating the RC, skip tag 
creation.
   RELEASE_TAG="v${RELEASE_VERSION}-rc${RC_COUNT}"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to