diff --git a/.github/actions/allure-report/action.yml b/.github/actions/allure-report/action.yml index e35cbb20fd..9a1037064a 100644 --- a/.github/actions/allure-report/action.yml +++ b/.github/actions/allure-report/action.yml @@ -45,12 +45,12 @@ runs: shell: bash -euxo pipefail {0} run: | if [ "${{ inputs.action }}" != "store" ] && [ "${{ inputs.action }}" != "generate" ]; then - echo 2>&1 "Unknown inputs.action type '${{ inputs.action }}'; allowed 'generate' or 'store' only" + echo >&2 "Unknown inputs.action type '${{ inputs.action }}'; allowed 'generate' or 'store' only" exit 1 fi if [ -z "${{ inputs.test_selection }}" ] && [ "${{ inputs.action }}" == "store" ]; then - echo 2>&1 "inputs.test_selection must be set for 'store' action" + echo >&2 "inputs.test_selection must be set for 'store' action" exit 2 fi diff --git a/.github/actions/download/action.yml b/.github/actions/download/action.yml index eb34d4206a..d3f9bc0414 100644 --- a/.github/actions/download/action.yml +++ b/.github/actions/download/action.yml @@ -37,7 +37,7 @@ runs: echo 'SKIPPED=true' >> $GITHUB_OUTPUT exit 0 else - echo 2>&1 "Neither s3://${BUCKET}/${PREFIX}/${FILENAME} nor its version from previous attempts exist" + echo >&2 "Neither s3://${BUCKET}/${PREFIX}/${FILENAME} nor its version from previous attempts exist" exit 1 fi fi diff --git a/.github/actions/neon-branch-create/action.yml b/.github/actions/neon-branch-create/action.yml index 7ee43a3587..f1eea34ab9 100644 --- a/.github/actions/neon-branch-create/action.yml +++ b/.github/actions/neon-branch-create/action.yml @@ -58,7 +58,7 @@ runs: done if [ -z "${branch_id}" ] || [ "${branch_id}" == "null" ]; then - echo 2>&1 "Failed to create branch after 10 attempts, the latest response was: ${branch}" + echo >&2 "Failed to create branch after 10 attempts, the latest response was: ${branch}" exit 1 fi @@ -122,7 +122,7 @@ runs: done if [ -z "${password}" ] || [ "${password}" == "null" ]; then - echo 2>&1 "Failed to reset password after 10 attempts, the latest response was: ${reset_password}" + echo >&2 "Failed to reset password after 10 attempts, the latest response was: ${reset_password}" exit 1 fi diff --git a/.github/actions/neon-branch-delete/action.yml b/.github/actions/neon-branch-delete/action.yml index 5689093e2e..f8cd351dd9 100644 --- a/.github/actions/neon-branch-delete/action.yml +++ b/.github/actions/neon-branch-delete/action.yml @@ -48,7 +48,7 @@ runs: done if [ -z "${branch_id}" ] || [ "${branch_id}" == "null" ]; then - echo 2>&1 "Failed to delete branch after 10 attempts, the latest response was: ${deleted_branch}" + echo >&2 "Failed to delete branch after 10 attempts, the latest response was: ${deleted_branch}" exit 1 fi env: diff --git a/.github/actions/upload/action.yml b/.github/actions/upload/action.yml index 291a2cf3b0..63973dfbe7 100644 --- a/.github/actions/upload/action.yml +++ b/.github/actions/upload/action.yml @@ -23,7 +23,7 @@ runs: mkdir -p $(dirname $ARCHIVE) if [ -f ${ARCHIVE} ]; then - echo 2>&1 "File ${ARCHIVE} already exist. Something went wrong before" + echo >&2 "File ${ARCHIVE} already exist. Something went wrong before" exit 1 fi @@ -33,10 +33,10 @@ runs: elif [ -f ${SOURCE} ]; then time tar -cf ${ARCHIVE} --zstd ${SOURCE} elif ! ls ${SOURCE} > /dev/null 2>&1; then - echo 2>&1 "${SOURCE} does not exist" + echo >&2 "${SOURCE} does not exist" exit 2 else - echo 2>&1 "${SOURCE} is neither a directory nor a file, do not know how to handle it" + echo >&2 "${SOURCE} is neither a directory nor a file, do not know how to handle it" exit 3 fi diff --git a/.github/workflows/benchmarking.yml b/.github/workflows/benchmarking.yml index 4f3ff15364..8471d802bb 100644 --- a/.github/workflows/benchmarking.yml +++ b/.github/workflows/benchmarking.yml @@ -226,7 +226,7 @@ jobs: CONNSTR=${{ secrets.BENCHMARK_RDS_POSTGRES_CONNSTR }} ;; *) - echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'neon-captest-new', 'neon-captest-freetier', 'rds-aurora', or 'rds-postgres'" + echo >&2 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'neon-captest-new', 'neon-captest-freetier', 'rds-aurora', or 'rds-postgres'" exit 1 ;; esac @@ -356,7 +356,7 @@ jobs: CONNSTR=${{ secrets.BENCHMARK_RDS_POSTGRES_CLICKBENCH_10M_CONNSTR }} ;; *) - echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" + echo >&2 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" exit 1 ;; esac @@ -452,7 +452,7 @@ jobs: CONNSTR=${{ secrets.BENCHMARK_RDS_POSTGRES_TPCH_S10_CONNSTR }} ;; *) - echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" + echo >&2 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" exit 1 ;; esac @@ -542,7 +542,7 @@ jobs: CONNSTR=${{ secrets.BENCHMARK_USER_EXAMPLE_RDS_POSTGRES_CONNSTR }} ;; *) - echo 2>&1 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" + echo >&2 "Unknown PLATFORM=${PLATFORM}. Allowed only 'neon-captest-reuse', 'rds-aurora', or 'rds-postgres'" exit 1 ;; esac diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 691320324e..3212b76731 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1007,7 +1007,7 @@ jobs: S3_KEY=$(aws s3api list-objects-v2 --bucket ${BUCKET} --prefix ${OLD_PREFIX} | jq -r '.Contents[].Key' | grep ${FILENAME} | sort --version-sort | tail -1 || true) if [ -z "${S3_KEY}" ]; then - echo 2>&1 "Neither s3://${BUCKET}/${OLD_PREFIX}/${FILENAME} nor its version from previous attempts exist" + echo >&2 "Neither s3://${BUCKET}/${OLD_PREFIX}/${FILENAME} nor its version from previous attempts exist" exit 1 fi