Mesa (master): ci: Print URL to image diff when a trace replay fails

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 30 11:41:02 UTC 2020


Module: Mesa
Branch: master
Commit: 3120b4dcd301b3eb6c9d119b41417f91dc5d0b1d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3120b4dcd301b3eb6c9d119b41417f91dc5d0b1d

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Thu Jul 23 16:46:46 2020 +0200

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 <tomeu.vizoso at collabora.com>
Reviewed-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6113>

---

 .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]



More information about the mesa-commit mailing list