403 permission denied when querying GitLab API for newly created pipeline in `axii self maintain release`
Stacktrace:
Pushing changes on 'stable ...
Traceback (most recent call last):
File "/home/chris/code/axii/axii", line 7, in <module>
entry_point()
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1134, in __call__
return self.main(*args, **kwargs)
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1059, in main
rv = self.invoke(ctx)
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1665, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1665, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1665, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 1401, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/click/core.py", line 767, in invoke
return __callback(*args, **kwargs)
File "/home/chris/code/axii/armarx_setup/cli/self/commands.py", line 66, in self_maintain_release
integration.release(**kwargs)
File "/home/chris/code/axii/armarx_setup/cli/self/integration.py", line 520, in release
release_wizard.run()
File "/home/chris/code/axii/armarx_setup/cli/self/integration.py", line 111, in run
self._merge_unstable_to_stable_and_push()
File "/home/chris/code/axii/armarx_setup/cli/self/integration.py", line 361, in _merge_unstable_to_stable_and_push
self._wait_for_pipeline_to_succeed(self.axii_stable_ref)
File "/home/chris/code/axii/armarx_setup/cli/self/integration.py", line 506, in _wait_for_pipeline_to_succeed
pipeline = self.api.http_get(f"/projects/{pid}/pipelines/latest", ref=ref)
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/gitlab/client.py", line 663, in http_get
"get", path, query_data=query_data, streamed=streamed, **kwargs
File "/home/chris/code/axii/.venv/lib/python3.6/site-packages/gitlab/client.py", line 631, in http_request
response_body=result.content,
gitlab.exceptions.GitlabHttpError: 403: 403 Forbidden
This seems to be a GitLab issue in my opinion. We could just wrap the query with a try-catch and just try for a few minutes before escalating. Usually re-triggering axii self maintain release
works just fine, but it's difficult since it is technically not idempotent.