From 27f8c466486b6e25d301681d3610fbe57ad8c032 Mon Sep 17 00:00:00 2001 From: Andres Gomez Date: Sat, 16 Jan 2021 00:04:41 +0200 Subject: [PATCH] ci: recover tracie dashboard URLs for failing traces Tracie was including a direct link to the diff page in the resulting JUnit XML file and the migration to piglit's replayer didn't, causing a regression. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4027 Fixes: 09429fa85b6 ("ci: add piglit replay jobs and remove tracie ones") Signed-off-by: Andres Gomez Reviewed-by: Eric Anholt Part-of: --- .gitlab-ci/piglit/run.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/piglit/run.sh b/.gitlab-ci/piglit/run.sh index d8cdb361bf4..e320541a485 100755 --- a/.gitlab-ci/piglit/run.sh +++ b/.gitlab-ci/piglit/run.sh @@ -154,8 +154,6 @@ if [ "x$PIGLIT_PROFILES" = "xreplay" ] \ __MINIO_PATH="$PIGLIT_REPLAY_ARTIFACTS_BASE_URL" __MINIO_TRACES_PREFIX="traces" - ci-fairy minio cp "$RESULTS"/junit.xml \ - "minio://${MINIO_HOST}${__MINIO_PATH}/${__MINIO_TRACES_PREFIX}/junit.xml" ci-fairy minio cp "$RESULTS"/results.json.bz2 \ "minio://${MINIO_HOST}${__MINIO_PATH}/${__MINIO_TRACES_PREFIX}/results.json.bz2" @@ -175,11 +173,21 @@ if [ "x$PIGLIT_PROFILES" = "xreplay" ] \ else __MINIO_PATH="$PIGLIT_REPLAY_ARTIFACTS_BASE_URL" __DESTINATION_FILE_PATH="$__MINIO_TRACES_PREFIX/${line##*-}" + # Adding to the JUnit the direct link to the diff page in + # the dashboard + __PIGLIT_TESTCASE_CLASSNAME="piglit\.trace\.$PIGLIT_REPLAY_DEVICE_NAME\.$(dirname $__TRACE | sed 's%/%\\.%g;s@%@\\%@')" + __PIGLIT_TESTCASE_NAME="$(basename $__TRACE | sed 's%\.%_%g;s@%@\\%@')" + __DASHBOARD_URL="https://tracie.freedesktop.org/dashboard/imagediff/${CI_PROJECT_PATH}/${CI_JOB_ID}/${__TRACE}" + sed '\%%{s%%To view the image differences visit: '"${__DASHBOARD_URL}"'%}' \ + -i "$RESULTS"/junit.xml fi ci-fairy minio cp "$RESULTS/$__PREFIX/$line" \ "minio://${MINIO_HOST}${__MINIO_PATH}/${__DESTINATION_FILE_PATH}" done + + ci-fairy minio cp "$RESULTS"/junit.xml \ + "minio://${MINIO_HOST}${__MINIO_PATH}/${__MINIO_TRACES_PREFIX}/junit.xml" fi cp "$INSTALL/piglit/$PIGLIT_RESULTS.txt" \