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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ad6961dc447 Fix airflow/task-sdk relase PMC checks (#59164)
ad6961dc447 is described below

commit ad6961dc447001e9aa1b6080dffb0f7d51eb060e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Dec 7 19:18:17 2025 +0100

    Fix airflow/task-sdk relase PMC checks (#59164)
    
    There were few small issues with the airflow/task-sdk release-checks:
    
    * one cd was missing in the process
    * task-sdk folder was not pointing to the right sub-folder.
    * Dockerfile.pmc should use constraints and for task-sdk they
      should install also apache-airflow and apache-airflow-core
      as those are not dependencies of task-sdk and pip failed
      to find them without --pre flag.
---
 dev/README_RELEASE_AIRFLOW.md                                  |  5 +++--
 .../src/airflow_breeze/commands/release_management_commands.py | 10 +++++++---
 dev/breeze/src/airflow_breeze/utils/check_release_files.py     |  8 ++++----
 3 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/dev/README_RELEASE_AIRFLOW.md b/dev/README_RELEASE_AIRFLOW.md
index df5ee7e3317..70baa5ab08f 100644
--- a/dev/README_RELEASE_AIRFLOW.md
+++ b/dev/README_RELEASE_AIRFLOW.md
@@ -756,6 +756,7 @@ As a PMC member, you should be able to clone the SVN 
repository
 or update it if you already checked it out:
 
 ```shell script
+cd ${AIRFLOW_REPO_ROOT}
 cd ..
 [ -d asf-dist ] || svn checkout --depth=immediates 
https://dist.apache.org/repos/dist asf-dist
 svn update --set-depth=infinity asf-dist/dev/airflow
@@ -772,12 +773,12 @@ Optionally you can use the `breeze release-management 
check-release-files` comma
 present in SVN. This command may also help with verifying installation of the 
packages.
 
 ```shell script
-breeze release-management check-release-files airflow --version ${VERSION_RC} 
--path-to-airflow-svn "${PATH_TO_AIRFLOW_SVN}"
+breeze release-management check-release-files airflow --version ${VERSION_RC}
 ```
 
 
 ```shell script
-breeze release-management check-release-files task-sdk --version 
${TASK_SDK_VERSION_RC} --path-to-airflow-svn "${PATH_TO_AIRFLOW_SVN}/task-sdk"
+breeze release-management check-release-files task-sdk --version 
${TASK_SDK_VERSION_RC}
 ```
 
 ## Licence check
diff --git 
a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py 
b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
index 0d8e09f7a8c..1347125d13a 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py
@@ -4380,7 +4380,7 @@ def check_release_files(
         if release_type == "airflow":
             directory = path_to_airflow_svn / version
         elif release_type == "task-sdk":
-            directory = path_to_airflow_svn / version
+            directory = path_to_airflow_svn / "task-sdk" / version
         elif release_type == "airflow-ctl":
             directory = path_to_airflow_svn / "airflow-ctl" / version
         elif release_type == "python-client":
@@ -4412,10 +4412,14 @@ def check_release_files(
         )
     elif release_type == "airflow":
         missing_files = check_airflow_release(files, version)
-        create_docker(AIRFLOW_DOCKER.format(version), dockerfile_path)
+        create_docker(AIRFLOW_DOCKER.format(version, version), dockerfile_path)
     elif release_type == "task-sdk":
         missing_files = check_task_sdk_release(files, version)
-        create_docker(TASK_SDK_DOCKER.format(version), dockerfile_path)
+        airflow_version = version.replace("1", "3", 1)
+        create_docker(
+            TASK_SDK_DOCKER.format(version, airflow_version, airflow_version, 
airflow_version),
+            dockerfile_path,
+        )
     elif release_type == "airflow-ctl":
         missing_files = check_airflow_ctl_release(files, version)
         create_docker(AIRFLOW_CTL_DOCKER.format(version), dockerfile_path)
diff --git a/dev/breeze/src/airflow_breeze/utils/check_release_files.py 
b/dev/breeze/src/airflow_breeze/utils/check_release_files.py
index e5143e64b0e..8c64a413763 100644
--- a/dev/breeze/src/airflow_breeze/utils/check_release_files.py
+++ b/dev/breeze/src/airflow_breeze/utils/check_release_files.py
@@ -33,16 +33,16 @@ RUN cd airflow-core; uv sync --no-sources
 AIRFLOW_DOCKER = """\
 FROM python:3.10
 
-# Upgrade
-RUN pip install "apache-airflow=={}"
+RUN pip install "apache-airflow=={}" \
+    --constraint 
"https://raw.githubusercontent.com/apache/airflow/constraints-{}/constraints-3.10.txt";
 
 """
 
 TASK_SDK_DOCKER = """\
 FROM python:3.10
 
-# Upgrade
-RUN pip install "apache-airflow-task-sdk=={}"
+RUN pip install "apache-airflow-task-sdk=={}" "apache-airflow-core=={}" 
"apache-airflow=={}"\
+  --constraint 
"https://raw.githubusercontent.com/apache/airflow/constraints-{}/constraints-3.10.txt";
 
 """
 

Reply via email to