vandonr-amz commented on code in PR #29705: URL: https://github.com/apache/airflow/pull/29705#discussion_r1114893673
########## dev/breeze/src/airflow_breeze/commands/ci_image_commands.py: ########## @@ -504,24 +504,29 @@ def run_build_ci_image( check=False, output=output, ) - if ( - build_command_result.returncode != 0 - and ci_image_params.upgrade_on_failure - and not ci_image_params.upgrade_to_newer_dependencies - ): - ci_image_params.upgrade_to_newer_dependencies = True - get_console().print( - "[warning]Attempting to build with upgrade_to_newer_dependencies on failure" - ) - build_command_result = run_command( - prepare_docker_build_command( - image_params=ci_image_params, - ), - cwd=AIRFLOW_SOURCES_ROOT, - text=True, - check=False, - output=output, - ) + if build_command_result.returncode != 0 and not ci_image_params.upgrade_to_newer_dependencies: + if ci_image_params.upgrade_on_failure: + ci_image_params.upgrade_to_newer_dependencies = True + get_console().print( + "[warning]Attempting to build with upgrade_to_newer_dependencies on failure" + ) + build_command_result = run_command( + prepare_docker_build_command( + image_params=ci_image_params, + ), + cwd=AIRFLOW_SOURCES_ROOT, + text=True, + check=False, + output=output, + ) + else: + get_console().print( + "[warning]Your image build failure. It could be caused by conflicting dependencies." Review Comment: ```suggestion "[warning]Your image build failed. It could be caused by conflicting dependencies." ``` ########## dev/breeze/src/airflow_breeze/commands/ci_image_commands.py: ########## @@ -504,24 +504,29 @@ def run_build_ci_image( check=False, output=output, ) - if ( - build_command_result.returncode != 0 - and ci_image_params.upgrade_on_failure - and not ci_image_params.upgrade_to_newer_dependencies - ): - ci_image_params.upgrade_to_newer_dependencies = True - get_console().print( - "[warning]Attempting to build with upgrade_to_newer_dependencies on failure" - ) - build_command_result = run_command( - prepare_docker_build_command( - image_params=ci_image_params, - ), - cwd=AIRFLOW_SOURCES_ROOT, - text=True, - check=False, - output=output, - ) + if build_command_result.returncode != 0 and not ci_image_params.upgrade_to_newer_dependencies: + if ci_image_params.upgrade_on_failure: + ci_image_params.upgrade_to_newer_dependencies = True + get_console().print( + "[warning]Attempting to build with upgrade_to_newer_dependencies on failure" + ) + build_command_result = run_command( + prepare_docker_build_command( + image_params=ci_image_params, + ), + cwd=AIRFLOW_SOURCES_ROOT, + text=True, + check=False, + output=output, + ) + else: + get_console().print( + "[warning]Your image build failure. It could be caused by conflicting dependencies." + ) + get_console().print( + "[info]Run " + "`breeze ci-image build --upgrade-to-newer-dependencies` to upgrade them.\n." Review Comment: ```suggestion "`breeze ci-image build --upgrade-to-newer-dependencies` to upgrade them.\n" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org