From 3e9245769913ee12a2647d5ecf369071aeaad582 Mon Sep 17 00:00:00 2001 From: Andrei <122784628+andrei-near@users.noreply.github.com> Date: Thu, 26 Sep 2024 10:07:12 +0300 Subject: [PATCH] CI Nayduck fix (#12152) removing -e jq argument as it's causing jq to return non-null exit codes. --- .github/workflows/nayduck_ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nayduck_ci.yml b/.github/workflows/nayduck_ci.yml index ce1aac36a13..28e149bd4c7 100644 --- a/.github/workflows/nayduck_ci.yml +++ b/.github/workflows/nayduck_ci.yml @@ -35,12 +35,13 @@ jobs: # wait all the tests to finish while true; do TEST_RESULTS=$(curl -s https://nayduck.nearone.org/api/run/$RUN_ID) - TESTS_NOT_READY=$( jq -e '.tests | .[] | select(.status == "RUNNING" or .status == "PENDING" ) ' <<< ${TEST_RESULTS} ) + TESTS_NOT_READY=$(jq '.tests | .[] | select(.status == "RUNNING" or .status == "PENDING") ' <<< ${TEST_RESULTS} ) if [ -z "$TESTS_NOT_READY" ]; then break; fi - sleep 15 + echo "Tests are not ready yet. Sleeping 1 minute..." + sleep 60 done - UNSUCCESSFUL_TESTS=$(jq -e '.tests | .[] | select(.status != "PASSED" and .status != "IGNORED") ' <<< ${TEST_RESULTS} ) + UNSUCCESSFUL_TESTS=$(jq '.tests | .[] | select(.status != "PASSED" and .status != "IGNORED") ' <<< ${TEST_RESULTS} ) if [ -z "$UNSUCCESSFUL_TESTS" ]; then echo "Nayduck CI tests passed." echo "Results available at https://nayduck.nearone.org/#/run/$RUN_ID"