-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
gitpython sometimes fails when checking for submodules #4371
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
Comments
I didn't dig too much on this issue, but at least I can tell that your build is failing when we check for the submodules of your repo:
This seems to be a bug in I added a flag to your project to skip submodule checkouts and triggered a new build for Please, let me know if your docs require to checkout the submodules and I will re-enable it.
|
Sentry issue: READTHEDOCS-ORG-BDT |
This is because you don't have this submodule https://github.com/Chassis/Chassis/blob/master/.gitmodules#L10 https://github.com/Chassis/Chassis/tree/master/wp/wp-content/themes. That's why gitpython fails. You need to remove/update/fix that. |
@stsewd it's true that there is a problem with that submodule in particular, but I understand that submodule is not cloned by We should take some action here:
$ git submodule
3afcc85932586aaa36913b131ef6662166f3155e puppet/modules/apt (2.3.0-41-g3afcc85)
9442272f5654b10d1ce33559ebb73d45ff23a128 puppet/modules/mysql (3.10.0-20-g9442272)
b3c533a838f6e29537fff65a6201832b75451245 puppet/modules/stdlib (4.19.0)
b8c915d4e052dac4282ba1e9b1e0cce3409fe271 puppet/modules/wp (heads/master) |
@humitos this is already reported in gitpython gitpython-developers/GitPython#279 |
I guess we can check for the exception here https://github.com/rtfd/readthedocs.org/blob/09f19a4b722b872278a08d55863e31c6beee43a1/readthedocs/vcs_support/backends/git.py#L79-L87 and raise https://github.com/rtfd/readthedocs.org/blob/09f19a4b722b872278a08d55863e31c6beee43a1/readthedocs/vcs_support/backends/git.py#L217-L217 (or maybe a more descriptive message) |
@humitos Thank you so much for adding the flag to skip the submodules so the docs are building again.
We don't need the submodules for the docs thankfully! @stsewd #4371 (comment) was a great find too. I'm amazed we missed removing that so I'll do a pull request in our project to fix that up. Thanks again to you both for fixing it, finding the error and talking through a way to possibly handle the exception. Normally I'd close an issue like this seeing our docs are building again but seeing you've been discussing a way to handle the exception I'll leave it to you folks if you want to close this issue. |
@stsewd I agree with your proposed solution in #4371 (comment) . I'd just add a Another possibility that needs some QA, is to use Also, I'm commenting the upstream issue to know if they are planning to include it in the roadmap. The issue is from 2015, though :( |
I'll be implementing the solution after #4493 is merged |
The error happens inside the generator |
Just updating that I have an open to fix this gitpython-developers/GitPython#818 |
Currently we show a generic message. Related: readthedocs#4371 This can be removed when gitpython-developers/GitPython#818 gets merged.
Details
I noticed the other week that our builds have actually been failing for a few months but I'm not sure how to debug it. Locally the docs generate as expected when I run
sphinx-build -b dirhtml . _build/dirhtml
Expected Result
A successful build.
Actual Result
Thanks very much for all your work on this project!
The text was updated successfully, but these errors were encountered: