Mesa (main): ci/lava: Improve error reporting in lava_job_submitter.py

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 10 22:48:32 UTC 2021


Module: Mesa
Branch: main
Commit: eddd2d332c441c706aa3b22d26d389edb6417c85
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eddd2d332c441c706aa3b22d26d389edb6417c85

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Thu Jun 10 10:45:54 2021 +0200

ci/lava: Improve error reporting in lava_job_submitter.py

I'm having trouble figuring out why this is breaking.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11293>

---

 .gitlab-ci/lava_job_submitter.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci/lava_job_submitter.py b/.gitlab-ci/lava_job_submitter.py
index ecaa5d142a4..19cdb74c409 100755
--- a/.gitlab-ci/lava_job_submitter.py
+++ b/.gitlab-ci/lava_job_submitter.py
@@ -30,6 +30,7 @@ import lavacli
 import os
 import sys
 import time
+import traceback
 import urllib.parse
 import xmlrpc
 import yaml
@@ -97,11 +98,13 @@ def _call_proxy(fn, *args):
             return fn(*args)
         except xmlrpc.client.ProtocolError as err:
             if n == retries:
+                traceback.print_exc()
                 sys.exit(log_msg("A protocol error occurred (Err {} {})".format(err.errcode, err.errmsg)))
             else:
                 time.sleep(15)
                 pass
         except xmlrpc.client.Fault as err:
+            traceback.print_exc()
             sys.exit(log_msg("FATAL: Fault: {} (code: {})".format(err.faultString, err.faultCode)))
 
 



More information about the mesa-commit mailing list