mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-10 07:44:57 +08:00
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@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11293>
This commit is contained in:
parent
d5204e0657
commit
eddd2d332c
@ -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)))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user