This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 67c61fbadb3 Dev: Fix validation on dry-run with 'start-rc-process'
(#55047)
67c61fbadb3 is described below
commit 67c61fbadb3d4fb1b0f1a44bf3acb7b3ba1724b9
Author: Kaxil Naik <[email protected]>
AuthorDate: Fri Aug 29 02:16:11 2025 +0100
Dev: Fix validation on dry-run with 'start-rc-process' (#55047)
---
.../airflow_breeze/commands/release_candidate_command.py | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
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 8afeb09a465..b793a4478b7 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
@@ -583,11 +583,13 @@ def publish_release_candidate(version, previous_version,
task_sdk_version, githu
os.chdir(AIRFLOW_ROOT_PATH)
airflow_repo_root = os.getcwd()
- validate_remote_tracks_apache_airflow(remote_name)
- validate_git_status()
- validate_version_branches_exist(version_branch, remote_name)
- validate_tag_does_not_exist(version, remote_name)
- validate_tag_does_not_exist(f"task-sdk/{task_sdk_version}", remote_name)
+ if not get_dry_run():
+ console_print("[info]Skipping validations in dry-run mode")
+ validate_remote_tracks_apache_airflow(remote_name)
+ validate_git_status()
+ validate_version_branches_exist(version_branch, remote_name)
+ validate_tag_does_not_exist(version, remote_name)
+ validate_tag_does_not_exist(f"task-sdk/{task_sdk_version}",
remote_name)
# List the above variables and ask for confirmation
console_print()
@@ -610,7 +612,8 @@ def publish_release_candidate(version, previous_version,
task_sdk_version, githu
#
# # Tag & clean the repo
# Validate we're on the correct branch before tagging
- validate_on_correct_branch_for_tagging(version_branch)
+ if not get_dry_run():
+ validate_on_correct_branch_for_tagging(version_branch)
git_tag(version, f"Apache Airflow {version}")
git_tag(f"task-sdk/{task_sdk_version}", f"Airflow Task SDK
{task_sdk_version}")
git_clean()