I’m developing a new package Spacey.jl. Unit tests and coverage tests are running fine as Github Actions. I copied a Tagbot.yml from another registered packaged I have on github (MinkowksiReduction.jl) where it works fine. But on this repo, new releases are not getting tagged, even though the github action report claims Tagbot ran fine.
I’ve released v0.1.0 which I tagged by hand because tagbot didn’t work. I just released v0.2.0 and it hasn’t been tagged.
Error: TagBot experienced an unexpected internal failure
Traceback (most recent call last):
File "/root/tagbot/action/__main__.py", line 94, in <module>
repo.create_release(version, sha)
File "/root/tagbot/action/repo.py", line 536, in create_release
tag = self._repo.create_git_tag(
File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1093, in create_git_tag
headers, data = self._requester.requestJsonAndCheck(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
return self.__check(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-tag-object"}
Error: TagBot experienced an unexpected internal failure
Traceback (most recent call last):
File "/root/tagbot/action/__main__.py", line 94, in <module>
repo.create_release(version, sha)
File "/root/tagbot/action/repo.py", line 536, in create_release
tag = self._repo.create_git_tag(
File "/usr/local/lib/python3.8/site-packages/github/Repository.py", line 1093, in create_git_tag
headers, data = self._requester.requestJsonAndCheck(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
return self.__check(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 403 {"message": "Resource not accessible by integration", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-tag-object"}
Warning: GitHub returned a 5xx error code
Traceback (most recent call last):
File "/root/tagbot/action/__main__.py", line 74, in <module>
versions = repo.new_versions()
File "/root/tagbot/action/repo.py", line 432, in new_versions
return self._filter_map_versions(versions)
File "/root/tagbot/action/repo.py", line 271, in _filter_map_versions
expected = self._commit_sha_from_registry_pr(version, tree)
File "/root/tagbot/action/repo.py", line 205, in _commit_sha_from_registry_pr
pr = self._registry_pr(version)
File "/root/tagbot/action/repo.py", line 196, in _registry_pr
for pr in prs:
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 56, in __iter__
newElements = self._grow()
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 67, in _grow
newElements = self._fetchNextPage()
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 199, in _fetchNextPage
headers, data = self.__requester.requestJsonAndCheck(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
return self.__check(
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 500 null
I’m seeing a similar error in a couple of different repositories. Published a new version of a package to juliahub and same tagbot configuration that has worked for previous versions failed with 502 “Server Error”:
Warning: GitHub returned a 5xx error code
41
Traceback (most recent call last):
42
File "/root/tagbot/action/__main__.py", line 74, in <module>
43
versions = repo.new_versions()
44
File "/root/tagbot/action/repo.py", line 432, in new_versions
45
return self._filter_map_versions(versions)
46
File "/root/tagbot/action/repo.py", line 271, in _filter_map_versions
47
expected = self._commit_sha_from_registry_pr(version, tree)
48
File "/root/tagbot/action/repo.py", line 205, in _commit_sha_from_registry_pr
49
pr = self._registry_pr(version)
50
File "/root/tagbot/action/repo.py", line 196, in _registry_pr
51
for pr in prs:
52
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 56, in __iter__
53
newElements = self._grow()
54
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 67, in _grow
55
newElements = self._fetchNextPage()
56
File "/usr/local/lib/python3.8/site-packages/github/PaginatedList.py", line 199, in _fetchNextPage
57
headers, data = self.__requester.requestJsonAndCheck(
58
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 315, in requestJsonAndCheck
59
return self.__check(
60
File "/usr/local/lib/python3.8/site-packages/github/Requester.py", line 340, in __check
61
raise self.__createException(status, responseHeaders, output)
62
github.GithubException.GithubException: 502 {"message": "Server Error"}
63
You’re seeing a similar error to what was reported in Slow TagBot. No repo update after 16 hours, not this thread. Unless someone can prove they’re ultimately caused by the same problem, please let’s keep the threads separate to avoid confusion.
For now, I’m tagging releases by hand until TagBot gets fixed. (@christopher-dG do you need any more information to debug this?) Mose gave a link (above) so you can see the full output.
Since this started occurring around the same time, the cause of this may actually be the same as in the other linked thread:
even though the error message is different here. You could try giving the contents: write permission in the tag bot YAML and see if it fixes the issue.