Skip to content

Build has begun failing (ID: 7552524) #4440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
urschrei opened this issue Jul 27, 2018 · 1 comment
Closed

Build has begun failing (ID: 7552524) #4440

urschrei opened this issue Jul 27, 2018 · 1 comment
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@urschrei
Copy link

Details

I've just noticed that the build has been failing for a while – it began failing following this commit: urschrei/pyzotero@bb5c7ac, which is odd, as it has no obvious effect on the build. Wiping the build environment hasn't had any effect, and there's nothing obvious in the raw build logs either.

@humitos humitos added this to the Build stability milestone Jul 27, 2018
@humitos humitos added Bug A bug Accepted Accepted issue on our roadmap labels Jul 27, 2018
@humitos
Copy link
Member

humitos commented Jul 27, 2018

@urschrei thanks for reporting this.

I found the issue. It's a bug on our side and it's because the library we use to get some information from git repositories: gitpython.

There is a problem when reading the tags:

Traceback (most recent call last):
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 412, in run_setup
    self.setup_vcs()
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 540, in setup_vcs
    self.sync_repo()
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/projects/tasks.py", line 133, in sync_repo
    } for v in version_repo.tags
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/vcs_support/backends/git.py", line 129, in tags
    for tag in repo.tags
  File "/home/humitos/rtfd/code/readthedocs.org/readthedocs/vcs_support/backends/git.py", line 129, in <listcomp>
    for tag in repo.tags
  File "/home/humitos/.pyenv/versions/3.6.6/envs/readthedocs.org/lib/python3.6/site-packages/git/refs/tag.py", line 35, in commit
    "use the `.object` property instead to access it") % (self, obj.type))
ValueError: Cannot resolve commit as tag maintainer-gpg-pub points to a blob object - use the `.object` property instead to access it

I followed what the error message says but I'm not sure if that's what we want to do yet:

In [25]: repo.tags[0]
Out[25]: <git.TagReference "refs/tags/maintainer-gpg-pub">

In [26]: _.object.hexsha
Out[26]: 'af1bfa70250df34409c086ea993779989f800fa1'

As a workaround, you can remove the tag maintainer-gpg-pub from your repo and your build will start running properly.

I'll try to propose a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

No branches or pull requests

2 participants