From 3120b4dcd301b3eb6c9d119b41417f91dc5d0b1d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 23 Jul 2020 16:46:46 +0200 Subject: [PATCH] ci: Print URL to image diff when a trace replay fails Developers can see how the rendering differed from the executed value. Signed-off-by: Tomeu Vizoso Reviewed-by: Daniel Stone Part-of: --- .gitlab-ci/tracie/tracie.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci/tracie/tracie.py b/.gitlab-ci/tracie/tracie.py index 9344a64f563..0a2c12332d7 100644 --- a/.gitlab-ci/tracie/tracie.py +++ b/.gitlab-ci/tracie/tracie.py @@ -24,6 +24,7 @@ import dump_trace_images TRACES_DB_PATH = "./traces-db/" RESULTS_PATH = "./results/" MINIO_HOST = "minio-packet.freedesktop.org" +DASHBOARD_URL = "https://tracie.freedesktop.org/dashboard" def replay(trace_path, device_name): success = dump_trace_images.dump_from_trace(trace_path, [], device_name) @@ -128,6 +129,13 @@ def gitlab_check_trace(project_url, device_name, trace, expectation): (trace['path'], expectation['checksum'], checksum)) print("[check_image] For more information see " "https://gitlab.freedesktop.org/mesa/mesa/blob/master/.gitlab-ci/tracie/README.md") + image_diff_url = "%s/imagediff/%s/%s/%s/%s/%s" % (DASHBOARD_URL, + os.environ['CI_PROJECT_PATH'], + os.environ['CI_PIPELINE_ID'], + os.environ['CI_JOB_ID'], + expectation['checksum'], + checksum) + print("[check_image] %s" % image_diff_url) ok = False trace_dir = os.path.split(trace['path'])[0] -- 2.30.2