From 5b2a96ee72a4bd7b7fbd4925c2f8c8468f047a64 Mon Sep 17 00:00:00 2001 From: Amogh Desai Date: Fri, 22 Nov 2024 23:51:28 +0530 Subject: [PATCH] Don't exit doc preparation even if changelog is empty for any provider (#44207) --- .../airflow_breeze/commands/release_management_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 01efdb77fabe3..71d4d2a35fb17 100644 --- a/dev/breeze/src/airflow_breeze/commands/release_management_commands.py +++ b/dev/breeze/src/airflow_breeze/commands/release_management_commands.py @@ -2195,7 +2195,7 @@ class ProviderPRInfo(NamedTuple): f"[warning]Skipping provider {provider_id}. " "The changelog file doesn't contain any PRs for the release.\n" ) - return + continue provider_prs[provider_id] = [pr for pr in prs if pr not in excluded_prs] all_prs.update(provider_prs[provider_id]) g = Github(github_token) @@ -2245,6 +2245,8 @@ class ProviderPRInfo(NamedTuple): progress.advance(task) providers: dict[str, ProviderPRInfo] = {} for provider_id in prepared_package_ids: + if provider_id not in provider_prs: + continue pull_request_list = [pull_requests[pr] for pr in provider_prs[provider_id] if pr in pull_requests] provider_yaml_dict = yaml.safe_load( (