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 1832d014fa65 [SPARK-52707][BUILD] Remove preview postfix when looking 
up the JIRA versions
1832d014fa65 is described below

commit 1832d014fa6589d05c2cd73937f34e954fecdd82
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Tue Jul 8 18:08:00 2025 +0900

    [SPARK-52707][BUILD] Remove preview postfix when looking up the JIRA 
versions
    
    ### What changes were proposed in this pull request?
    
    This PR proposes to remove preview postfix when looking up the JIRA versions
    
    ### Why are the changes needed?
    
    Otherwise, preview builds fail.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #51399 from HyukjinKwon/SPARK-52707.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 51bbae091885647e1b835fdd7dcef760194e3bf0)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 dev/create-release/release-build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev/create-release/release-build.sh 
b/dev/create-release/release-build.sh
index 3b19786e562b..cd2c42645fd5 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -931,11 +931,12 @@ if [[ "$1" == "publish-release" ]]; then
     DEADLINE=$(TZ=America/Los_Angeles date -d "+4 days" "+%a, %d %b %Y 
%H:%M:%S %Z")
 
     
JIRA_API_URL="https://issues.apache.org/jira/rest/api/2/project/SPARK/versions";
+    SPARK_VERSION_BASE=$(echo "$SPARK_VERSION" | sed 's/-preview[0-9]*//')
     JIRA_VERSION_ID=$(curl -s "$JIRA_API_URL" | \
       # Split JSON objects by replacing '},{' with a newline-separated pattern
       tr '}' '\n' | \
       # Find the block containing the exact version name
-      grep -F "\"name\":\"$SPARK_VERSION\"" -A 5 | \
+      grep -F "\"name\":\"$SPARK_VERSION_BASE\"" -A 5 | \
       # Extract the line with "id"
       grep '"id"' | \
       # Extract the numeric id value (assuming "id":"123456")


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

Reply via email to