This is an automated email from the ASF dual-hosted git repository.
kaxilnaik 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 c6322b686fa Remove unused code from ci-image-commands (#51643)
c6322b686fa is described below
commit c6322b686fa76e14b58803d34ed298682df52a22
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jun 12 11:49:00 2025 +0200
Remove unused code from ci-image-commands (#51643)
---
.../src/airflow_breeze/commands/ci_image_commands.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
index 34ecbe2d54f..64f652ff3cf 100644
--- a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
@@ -21,7 +21,6 @@ import os
import signal
import subprocess
import sys
-import time
from copy import deepcopy
from pathlib import Path
from typing import TYPE_CHECKING
@@ -189,19 +188,6 @@ def prepare_for_building_ci_image(params: BuildCiParams):
make_sure_builder_configured(params=params)
-def build_timout_handler(build_process_group_id: int, signum, frame):
- # Kill the forked process group - it will kill the build even if it is
running in parallel
- # with multiple processes and docker build sessions
- os.killpg(build_process_group_id, signal.SIGTERM)
- os.waitpid(build_process_group_id, 0)
- # give the output a little time to flush so that the helpful error message
is not hidden
- time.sleep(5)
- if os.environ.get("GITHUB_ACTIONS", "false") != "true":
- get_console().print("::endgroup::")
- get_console().print()
- sys.exit(1)
-
-
def kill_process_group(build_process_group_id: int):
with contextlib.suppress(OSError):
os.killpg(build_process_group_id, signal.SIGTERM)