Fix nightly benchmark reports (#2392)

This commit is contained in:
Alexander Bayandin
2022-09-05 14:30:37 +01:00
committed by GitHub
parent 772078eb5c
commit ee0071e90d

View File

@@ -80,14 +80,14 @@ runs:
env:
NEON_BIN: /tmp/neon/bin
TEST_OUTPUT: /tmp/test_output
# this variable will be embedded in perf test report
# and is needed to distinguish different environments
PLATFORM: github-actions-selfhosted
BUILD_TYPE: ${{ inputs.build_type }}
AWS_ACCESS_KEY_ID: ${{ inputs.real_s3_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.real_s3_secret_access_key }}
shell: bash -euxo pipefail {0}
run: |
# PLATFORM will be embedded in the perf test report
# and it is needed to distinguish different environments
export PLATFORM=${PLATFORM:-github-actions-selfhosted}
export POSTGRES_DISTRIB_DIR=${POSTGRES_DISTRIB_DIR:-/tmp/neon/pg_install}
if [ "${BUILD_TYPE}" = "remote" ]; then
@@ -155,7 +155,7 @@ runs:
if [[ "${{ inputs.save_perf_report }}" == "true" ]]; then
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
export REPORT_FROM="$PERF_REPORT_DIR"
export REPORT_TO=local
export REPORT_TO="$PLATFORM"
scripts/generate_and_push_perf_report.sh
fi
fi