summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2020-07-23 16:46:46 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2020-07-30 13:18:54 +0200
commit3120b4dcd301b3eb6c9d119b41417f91dc5d0b1d (patch)
treecb297fe25824b4bc0b86da768357fb1caee3fbe1 /.gitlab-ci
parentbea34a085346ee01dd6669a0849c466f69719e74 (diff)
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@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6113>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/tracie/tracie.py8
1 files changed, 8 insertions, 0 deletions
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]