This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new f5cc97ac367 [v3-1-test] Update release candidate commands (#59186) 
(#59187)
f5cc97ac367 is described below

commit f5cc97ac3676a7941a0a4410a84e06746e590b0f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Dec 8 10:27:56 2025 +0100

    [v3-1-test] Update release candidate commands (#59186) (#59187)
    
    Moving artifacts from the dist folder to svn was not working for both
    airflow and task sdk
    (cherry picked from commit 501f724b64f0d64736f1cffef7648eba485bb472)
    
    Co-authored-by: Ephraim Anierobi <[email protected]>
---
 dev/README_RELEASE_AIRFLOW.md                      |  2 +-
 .../commands/release_candidate_command.py          | 29 ++++++++++++++++------
 2 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md
index 76033be52b3..598cc4e9096 100644
--- a/dev/README_RELEASE_AIRFLOW.md
+++ b/dev/README_RELEASE_AIRFLOW.md
@@ -274,7 +274,7 @@ export GPG_TTY=$(tty)
 # Set Version
 export VERSION=3.1.3
 export VERSION_SUFFIX=rc1
-export VERSION_RC=${VERSION}${VERSION_RC}
+export VERSION_RC=${VERSION}${VERSION_SUFFIX}
 export VERSION_BRANCH=3-1
 export TASK_SDK_VERSION=1.1.3
 export TASK_SDK_VERSION_RC=${TASK_SDK_VERSION}${VERSION_SUFFIX}
diff --git 
a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py 
b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
index 1f3da43717c..e993209fe3b 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
@@ -456,13 +456,18 @@ def clone_asf_repo(version, repo_root):
         console_print("[success]Cloned ASF repo successfully")
 
 
-def move_artifacts_to_svn(version, task_sdk_version, repo_root):
+def move_artifacts_to_svn(
+    version, version_without_rc, task_sdk_version, 
task_sdk_version_without_rc, repo_root
+):
     if confirm_action("Do you want to move artifacts to SVN?"):
         os.chdir(f"{repo_root}/asf-dist/dev/airflow")
         run_command(["svn", "mkdir", f"{version}"], check=True)
-        run_command(f"mv {repo_root}/dist/*{version}* {version}/", check=True, 
shell=True)
+        run_command(f"mv {repo_root}/dist/*{version_without_rc}* {version}/", 
check=True, shell=True)
+        run_command(["svn", "mkdir", f"task-sdk/{task_sdk_version}"])
         run_command(
-            f"mv {repo_root}/dist/*{task_sdk_version}* 
task-sdk/{task_sdk_version}/", check=True, shell=True
+            f"mv {repo_root}/dist/*{task_sdk_version_without_rc}* 
task-sdk/{task_sdk_version}/",
+            check=True,
+            shell=True,
         )
         console_print("[success]Moved artifacts to SVN:")
         run_command(["ls"])
@@ -470,16 +475,22 @@ def move_artifacts_to_svn(version, task_sdk_version, 
repo_root):
         run_command([f"ls task-sdk/{task_sdk_version}"])
 
 
-def push_artifacts_to_asf_repo(version, repo_root):
+def push_artifacts_to_asf_repo(version, task_sdk_version, repo_root):
     if confirm_action("Do you want to push artifacts to ASF repo?"):
-        console_print("Files to push to svn:")
+        console_print("Airflow Version Files to push to svn:")
         if not get_dry_run():
             os.chdir(f"{repo_root}/asf-dist/dev/airflow/{version}")
         run_command(["ls"])
         confirm_action("Do you want to continue?", abort=True)
         run_command("svn add *", check=True, shell=True)
+        console_print("Task SDK Version Files to push to svn:")
+        if not get_dry_run():
+            
os.chdir(f"{repo_root}/asf-dist/dev/airflow/task-sdk/{task_sdk_version}")
+        run_command(["ls"])
+        confirm_action("Do you want to continue?", abort=True)
+        run_command("svn add *", check=True, shell=True)
         run_command(
-            ["svn", "commit", "-m", f"Add artifacts for Airflow {version}"],
+            ["svn", "commit", "-m", f"Add artifacts for Airflow {version} and 
Task SDK {task_sdk_version}"],
             check=True,
         )
         console_print("[success]Files pushed to svn")
@@ -738,9 +749,11 @@ def publish_release_candidate(
     # Clone the asf repo
     clone_asf_repo(version, airflow_repo_root)
     # Move artifacts to SVN
-    move_artifacts_to_svn(version, task_sdk_version, airflow_repo_root)
+    move_artifacts_to_svn(
+        version, version_without_rc, task_sdk_version, 
task_sdk_version_without_rc, airflow_repo_root
+    )
     # Push the artifacts to the asf repo
-    push_artifacts_to_asf_repo(version, airflow_repo_root)
+    push_artifacts_to_asf_repo(version, task_sdk_version, airflow_repo_root)
 
     # Remove old releases
     remove_old_releases(version, airflow_repo_root)

Reply via email to