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 c32bd6d6089 fix ui e2e test failure not clean up containers properly 
(#62555)
c32bd6d6089 is described below

commit c32bd6d60895dd4d9a1646bac615a3b40b6f4cfc
Author: Kevin Yang <[email protected]>
AuthorDate: Sun Mar 8 17:11:57 2026 -0400

    fix ui e2e test failure not clean up containers properly (#62555)
---
 dev/breeze/src/airflow_breeze/commands/testing_commands.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/commands/testing_commands.py 
b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
index 55f1b0c49be..2386b700abf 100644
--- a/dev/breeze/src/airflow_breeze/commands/testing_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
@@ -1608,17 +1608,18 @@ def ui_e2e_tests(
         if report_path.exists():
             get_console().print(f"[info]Report: file://{report_path}[/]")
 
-        stop_docker_compose(tmp_dir)
-        shutil.rmtree(tmp_dir, ignore_errors=True)
-
         if result.returncode != 0:
             sys.exit(result.returncode)
 
+    except KeyboardInterrupt:
+        get_console().print("\n[warning]Interrupted by user.[/]")
+        sys.exit(1)
     except Exception as e:
         get_console().print(f"[error]{str(e)}[/]")
+        sys.exit(1)
+    finally:
         stop_docker_compose(tmp_dir)
         shutil.rmtree(tmp_dir, ignore_errors=True)
-        sys.exit(1)
 
 
 class TimeoutHandler:

Reply via email to