From dfbf04f9309065f2cab34b949daf61cf9fafd68e Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Thu, 3 Sep 2026 16:33:35 +0200 Subject: [PATCH] Test config fix using docker bridge for tests --- test/actions.github.com/helper.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/test/actions.github.com/helper.sh b/test/actions.github.com/helper.sh index a245fc23..1bc17a46 100644 --- a/test/actions.github.com/helper.sh +++ b/test/actions.github.com/helper.sh @@ -111,10 +111,21 @@ function create_cluster() { minikube delete || true log "Creating minikube cluster" - minikube start --driver=docker --container-runtime=docker --wait=all + minikube start --driver=docker --container-runtime=docker --network=bridge --wait=all log "Verifying ns works" - if ! minikube ssh "nslookup github.com >/dev/null 2>&1"; then + local ns_retries=5 + local ns_delay=3 + local ns_ok=false + for (( i=1; i<=ns_retries; i++ )); do + if minikube ssh "nslookup github.com >/dev/null 2>&1"; then + ns_ok=true + break + fi + log "DNS check attempt ${i}/${ns_retries} failed, retrying in ${ns_delay}s..." + sleep "${ns_delay}" + done + if [[ "${ns_ok}" != "true" ]]; then log "Nameserver configuration failed" exit 1 fi