You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/07/21 14:28:14 UTC

[airflow] 11/22: Stop failing image refreshing on "warm-up" failure (#25046)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit ba3434dc0cf546d402c901284d0260bd4f261c50
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Thu Jul 14 07:46:08 2022 +0200

    Stop failing image refreshing on "warm-up" failure (#25046)
    
    The "warm-up" buld for parallel images might fail when you run
    it locally, but this should be ignored, because it is really only
    needed at the CI when we want to make sure that several parallel
    builds do not try to create the same buildx container.
    
    It's safe to ignore any failure at the warm-up stage.
    
    (cherry picked from commit 5e0160fe20ef1edc34d8f0a8e17a193504e4c541)
---
 dev/breeze/src/airflow_breeze/utils/docker_command_utils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
index df540a5bb8..99d98268b2 100644
--- a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
@@ -703,11 +703,11 @@ LABEL description="test warmup image"
         dry_run=dry_run,
         cwd=AIRFLOW_SOURCES_ROOT,
         text=True,
+        check=False,
         enabled_output_group=True,
     )
     if warm_up_command_result.returncode != 0:
         get_console().print(
-            f"[error]Error {warm_up_command_result.returncode} when warming up builder:"
+            f"[warning]Warning {warm_up_command_result.returncode} when warming up builder:"
             f" {warm_up_command_result.stdout} {warm_up_command_result.stderr}"
         )
-        sys.exit(warm_up_command_result.returncode)