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

snuyanzin pushed a commit to branch release-2.2
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-2.2 by this push:
     new b8b4ae76f55 [FLINK-40451][ci] E2E test timeout keeps CI running until 
the timeout ends, even after the test passes
b8b4ae76f55 is described below

commit b8b4ae76f556259d0c0fe8ca0e5cf38b9a8cc328
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Thu Sep 3 19:13:40 2026 +0200

    [FLINK-40451][ci] E2E test timeout keeps CI running until the timeout ends, 
even after the test passes
---
 flink-end-to-end-tests/test-scripts/common.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/flink-end-to-end-tests/test-scripts/common.sh 
b/flink-end-to-end-tests/test-scripts/common.sh
index ab13b7e57ed..7bff0254f8c 100755
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -981,7 +981,11 @@ internal_run_with_timeout() {
 
   (
       command_pid=$BASHPID
-      (sleep "${timeout_in_seconds}" # set a timeout for this command
+      (
+      # Kill the sleep on teardown so it doesn't keep the CI stdout pipe open 
until timeout.
+      trap 'kill $sleep_pid 2>/dev/null; exit 0' TERM
+      sleep "${timeout_in_seconds}" & sleep_pid=$! # set a timeout for this 
command
+      wait $sleep_pid
       echo "${command_label:-"The command '${command}'"} (pid: $command_pid) 
did not finish after $timeout_in_seconds seconds."
       eval "${on_failure}"
       kill "$command_pid") & watchdog_pid=$!

Reply via email to