manifest: Build useful error message

This helps detecting issue with optional steps like cerbero deps
lookup.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/348>
This commit is contained in:
Nicolas Dufresne 2020-09-21 11:57:26 -04:00
parent 705e375893
commit 808fc283f3

5
gitlab/build_manifest.py Executable file → Normal file
View file

@ -57,7 +57,10 @@ def get_cerbero_last_build_info (branch : str):
req = urllib.request.Request(url)
resp = urllib.request.urlopen(req);
deps = json.loads(resp.read())
except urllib.error.URLError:
except urllib.error.URLError as e:
print(f'Failed to get from URL {url}')
print('WARNING: Could not find a revision with build cache ready: ' + str(e))
print('Checking cerbero:', end=' ')
return None
return deps[0]['commit']