From 86d5ab22f6197330236514d1e897c4b4e8730a4f Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:31:30 +0200 Subject: [PATCH] Remove timestamp from Release tests logs (#111) --- .github/workflows/run-release-tests.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-release-tests.yaml b/.github/workflows/run-release-tests.yaml index 32d4c26a..bd5add9e 100644 --- a/.github/workflows/run-release-tests.yaml +++ b/.github/workflows/run-release-tests.yaml @@ -92,14 +92,9 @@ jobs: sleep=1 while (( SECONDS < WAIT )); do phase=$(kubectl get pod ${pod} -n ${namespace} -o jsonpath="{.status.phase}") - [[ "${phase}" == "Running" ]] && { echo "Pod $pod is in $phase state - Get the logs"; break; } || { echo "Pod $pod is in $phase state - Retry in $sleep seconds / $((WAIT - SECONDS))"; } + [[ "${phase}" == "Running" ]] && { echo "Pod $pod is in the $phase state - Get the logs"; break; } || { echo "Pod $pod is in the $phase state - Retry in $sleep second(s) / $((WAIT - SECONDS))"; } sleep $sleep done # Get logs - timeout $duration \ - kubectl logs $pod \ - -n $namespace \ - -f \ - --tail=-1 \ - --timestamps || true + timeout $duration kubectl logs $pod -n $namespace -f || true