From b07636d5a79fe90986d4516794d291f52ef26cfb Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 6 May 2022 11:58:15 -0600 Subject: [PATCH] devops: fix flakiness dashboard (#13997) These fields are crucial for report processing. --- utils/upload_flakiness_dashboard.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/upload_flakiness_dashboard.sh b/utils/upload_flakiness_dashboard.sh index 93059002cf..caf6d6fee7 100755 --- a/utils/upload_flakiness_dashboard.sh +++ b/utils/upload_flakiness_dashboard.sh @@ -50,6 +50,13 @@ if [[ $# == 0 ]]; then exit 1 fi +export BUILD_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" +export COMMIT_SHA=$(git rev-parse HEAD) +export COMMIT_TITLE=$(git show -s --format=%s HEAD) +export COMMIT_AUTHOR_NAME=$(git show -s --format=%an HEAD) +export COMMIT_AUTHOR_EMAIL=$(git show -s --format=%ae HEAD) +export COMMIT_TIMESTAMP=$(git show -s --format=%ct HEAD) + export HOST_OS_NAME="$(uname)" export HOST_ARCH="$(uname -m)" export HOST_OS_VERSION="" @@ -60,12 +67,19 @@ elif [[ "$HOST_OS_NAME" == "Linux" ]]; then HOST_OS_VERSION="$(bash -c 'source /etc/os-release && echo $VERSION_ID')" fi + EMBED_METADATA_SCRIPT=$(cat <