Approval & set to merge do not work for new gl instance
Was using mrhlpr to merge pmaports!5700 (merged),
when running the final mrhlpr finish
step: this backtrace was generated:
$ mrhlpr finish
Provide a thank you comment (can be empty — discouraged): Thanks!
Pushing changes...
Everything up-to-date
Approving MR...
Traceback (most recent call last):
File "/home/robby/builds/pmos/mrhlpr/mrhlpr/mr.py", line 550, in finish
mr.approve(git.sha())
File "/usr/lib/python3.12/site-packages/gitlab/cli.py", line 70, in wrapped_f
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/exceptions.py", line 344, in wrapped_f
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/v4/objects/merge_requests.py", line 323, in approve
server_data = self.manager.gitlab.http_post(path, post_data=data, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/client.py", line 994, in http_post
result = self.http_request(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/client.py", line 767, in http_request
raise gitlab.exceptions.GitlabAuthenticationError(
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/gitlab/exceptions.py", line 344, in wrapped_f
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/mixins.py", line 155, in get
server_data = self.gitlab.http_get(self.path, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/client.py", line 807, in http_get
result = self.http_request(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/client.py", line 773, in http_request
raise gitlab.exceptions.GitlabHttpError(
gitlab.exceptions.GitlabHttpError: 404: 404 Not Found
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/robby/.local/bin/mrhlpr", line 9, in <module>
mrhlpr.frontend.main()
File "/home/robby/builds/pmos/mrhlpr/mrhlpr/frontend.py", line 280, in main
mr.finish(mr_id, comment, args.no_cache, args.skip_approve)
File "/home/robby/builds/pmos/mrhlpr/mrhlpr/mr.py", line 553, in finish
approved_by_ids = [ap["id"] for ap in mr.approval_state.get().rules[0]["approved_by"]]
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/v4/objects/merge_request_approvals.py", line 181, in get
return cast(ProjectMergeRequestApprovalState, super().get(**kwargs))
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/gitlab/exceptions.py", line 346, in wrapped_f
raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabGetError: 404: 404 Not Found
Is this a configuration issue with glab or an issue with the gitlab instance?