TagBot Github Action runs successfully but a new release does not show up on github Releases

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.

Here’s the tagbot.yml file:

name: TagBot
on:
  issue_comment:
    types:
      - created
  workflow_dispatch:
    inputs:
        lookback:
          default: 3
jobs:
  TagBot:
    if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
    runs-on: ubuntu-latest
    steps:
      - uses: JuliaRegistries/TagBot@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          ssh: ${{ secrets.DOCUMENTER_KEY }}

Although the Github action is “green” and indicates success, inside it says that there was an internal error with tagbot…

Perhaps there is some setting I need to turn on? I’ve poked around for a few days, but I’ve exhausted my limited understanding of how tagbot works…

CC: @christopher-dG

Would be useful to see a link to the run as the screenshot doesn’t contain the stacktrace.

https://github.com/glwhart/Spacey.jl/runs/6353273364?check_suite_focus=true

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"}

You are not alone.

The error is completely different though

It is? The title “runs successfully but a new release does not show up …” describes my problem better than I did.

It is. Unless I can’t read

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"}

in https://github.com/glwhart/Spacey.jl/runs/6353273364?check_suite_focus=true is very much different from

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

in https://github.com/ctkelley/SIAMFANLEquations.jl/runs/6375100102?check_suite_focus=true

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.

1 Like

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.

Are there any new insights on this?

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.

I made the change to TagBot.yml and it did not seem to help.

1 Like