This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 424b8ca97a8 [v3-0-test] Dev: Fix validation on dry-run with
'start-rc-process' (#55047) (#55048)
424b8ca97a8 is described below
commit 424b8ca97a8daabf3626fe1db2ca60c0a77d394f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Aug 29 02:32:59 2025 +0100
[v3-0-test] Dev: Fix validation on dry-run with 'start-rc-process' (#55047)
(#55048)
(cherry picked from commit 67c61fbadb3d4fb1b0f1a44bf3acb7b3ba1724b9)
Co-authored-by: Kaxil Naik <[email protected]>
---
.../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()