-
Notifications
You must be signed in to change notification settings - Fork 200
Doc builder occassionally silently fails due to missing target #543
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've been noticing a fair number of Hackage packages lacking documentation due to apparently transient issues (e.g. somehow a package entering the build queue despite having no entry in the package index, see haskell#543). Here we add a simple retry policy; attempting to build a failing package up to a given number of attempts. The number of failures is now persisted in the failure file.
Ok, so if I understand this right, the doc-builder polls http://hackage.haskell.org/packages/docs to figure out what to do next, ...and that list can easily contain packages which have not yet entered the 01-index.tar.gz (which is obviously needs some time to be computed and can easily lag behind several seconds; I've seen this myself after package uploads or edits that it takes several seconds). I think the doc-builder should simply filter out packages from the doc-index for which there isn't a 01-index.tar entry yet. This is easily accomplished. |
Herbert Valerio Riedel [email protected] writes:
Regardless, I still suspect that having some sort of retry policy could |
@bgamari you don't need to link into
the retry policy is useful in addition of course... |
Herbert Valerio Riedel [email protected] writes:
|
@bgamari no (because
so all you have to do is apply |
This strikes me as terribly ugly, but I'll do it. This is precisely the reason why I think it would be helpful if |
I've been noticing a fair number of Hackage packages lacking documentation due to apparently transient issues (e.g. somehow a package entering the build queue despite having no entry in the package index, see haskell#543). Here we add a simple retry policy; attempting to build a failing package up to a given number of attempts. The number of failures is now persisted in the failure file.
Due to caching sometimes the package repository state may lag behind the documentation index. Consequently, we make sure that the packages we are going to build actually appear in the repository before building. See Issue haskell#543.
Due to caching sometimes the package repository state may lag behind the documentation index. Consequently, we make sure that the packages we are going to build actually appear in the repository before building. See Issue haskell#543.
Due to caching sometimes the package repository state may lag behind the documentation index. Consequently, we make sure that the packages we are going to build actually appear in the repository before building. See Issue haskell#543.
Due to caching sometimes the package repository state may lag behind the documentation index. Consequently, we make sure that the packages we are going to build actually appear in the repository before building. See Issue haskell#543.
@bgamari I think the linked commits fixed this issue, no? closing for now, lmk if i'm mistaken. |
Much of the missing documentation on Hackage appears to be due to
cabal
failing to find an install plan, due to the target package apparently being missing from the package index. For instance,clock-0.7.2
failed with,To make matters worse, the package is stuck in "docs pending" state indefinitely after this happens.
The text was updated successfully, but these errors were encountered: