This morning a GitLab update was deployed, leading to a few moments
where the API returned an error.
python-gitlab is actually able to handle a number of those and retry
automatically, so let's enable that:
https://python-gitlab.readthedocs.io/en/stable/api-usage-advanced.html#transient-errors
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20094>
token = read_token(args.token)
- gl = gitlab.Gitlab(url="https://gitlab.freedesktop.org", private_token=token)
+ gl = gitlab.Gitlab(url="https://gitlab.freedesktop.org",
+ private_token=token,
+ retry_transient_errors=True)
cur_project = get_gitlab_project(gl, "mesa")