Skip to content

Commit 205eae1

Browse files
authored
Stop dumping full Click context dict in update-breeze-cmd-output (#65667)
The update-breeze-cmd-output prek hook called `breeze setup regenerate-command-images`, which printed the entire Click context dict (60K+ lines) when VERBOSE was set. CI runs prek with VERBOSE=true, so a failure of this hook drowned the actual error message under the dump (e.g. https://github.com/apache/airflow/actions/runs/24765956624/job/72462411984?pr=65660). The dump was a leftover developer debug print and provided no actionable information.
1 parent c43c778 commit 205eae1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

dev/breeze/src/airflow_breeze/commands/setup_commands.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from airflow_breeze.utils.cache import check_if_cache_exists, delete_cache, touch_cache_file
4949
from airflow_breeze.utils.click_utils import BreezeGroup
5050
from airflow_breeze.utils.confirm import STANDARD_TIMEOUT, Answer, user_confirm
51-
from airflow_breeze.utils.console import console_print, get_stderr_console
51+
from airflow_breeze.utils.console import console_print
5252
from airflow_breeze.utils.custom_param_types import BetterChoice
5353
from airflow_breeze.utils.docker_command_utils import VOLUMES_FOR_SELECTED_MOUNTS
5454
from airflow_breeze.utils.path_utils import (
@@ -352,8 +352,6 @@ def get_command_hash_dict() -> dict[str, str]:
352352
hashes: dict[str, str] = {}
353353
with Context(main) as ctx:
354354
the_context_dict = ctx.to_info_dict()
355-
if get_verbose():
356-
get_stderr_console().print(the_context_dict)
357355
commands_dict = the_context_dict["command"]["commands"]
358356
options = rich_click.rich_click.OPTION_GROUPS
359357
for command in sorted(commands_dict.keys()):

0 commit comments

Comments
 (0)