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

amoghdesai 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 0f47180066d Fix Apache Tinkerpop integration test in CI (#50326)
0f47180066d is described below

commit 0f47180066d5651053fad1417cca2128d6d71bc2
Author: Bugra Ozturk <bugrao...@users.noreply.github.com>
AuthorDate: Thu May 8 10:38:25 2025 +0200

    Fix Apache Tinkerpop integration test in CI (#50326)
---
 scripts/in_container/check_environment.sh | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/scripts/in_container/check_environment.sh 
b/scripts/in_container/check_environment.sh
index b6ee390577a..8d2652f437d 100755
--- a/scripts/in_container/check_environment.sh
+++ b/scripts/in_container/check_environment.sh
@@ -31,13 +31,21 @@ EXIT_CODE=0
 
 . "$( dirname "${BASH_SOURCE[0]}" )/check_connectivity.sh"
 
+export COLOR_YELLOW=$'\e[33m'
+export COLOR_RESET=$'\e[0m'
+
 function check_service {
     local label=$1
     local call=$2
     local max_check=${3:=1}
+    local sleep_time=${4:=0}
 
-   check_service_connection "${label}" "${call}" "${max_check}"
-   EXIT_CODE=$?
+    if [[ ${sleep_time} != 0 ]]; then
+        echo "${COLOR_YELLOW}Waiting ${sleep_time} seconds before checking 
${label}${COLOR_RESET}"
+        sleep "${sleep_time}"
+    fi
+    check_service_connection "${label}" "${call}" "${max_check}"
+    EXIT_CODE=$?
 }
 
 function check_db_backend {
@@ -175,7 +183,7 @@ if [[ ${INTEGRATION_YDB} == "true" ]]; then
 fi
 
 if [[ ${INTEGRATION_GREMLIN} == "true" ]]; then
-    check_service "gremlin" "run_nc gremlin 8182" 50
+    check_service "gremlin" "run_nc gremlin 8182" 100 30
 fi
 
 if [[ ${EXIT_CODE} != 0 ]]; then

Reply via email to