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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5e0160fe20 Stop failing image refreshing on "warm-up" failure (#25046)
5e0160fe20 is described below

commit 5e0160fe20ef1edc34d8f0a8e17a193504e4c541
Author: Jarek Potiuk <[email protected]>
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.
---
 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)

Reply via email to