-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
is_rev_in_remote timesout on large repos #34
Comments
I see how this can be an issue. IMO, better than configurable timeouts would be default "sane" timeouts for every Another mitigation I can do it to prioritize I will try to put a PR today. |
Sorry for the delay, I think #37 should address the performance impact of repos with a lot of blobs since now the remote tracking branch is checked first. You should only have this issue if no remote tracking branch is set for the current branch, which forces a search in the configured remote, commit by commit. Let me know if the issue persists. |
Is your feature request related to a problem? Please describe.
require'gitlinker'.get_buf_range_url('n')
timesout after 5 secondsDescribe the solution you'd like
A quick-ish short term solution would be to have an option to easily change the timeouts. This isn't the "desired" solution but it seems like it's the most likely "solution" to the problem.
Describe alternatives you've considered
Alternative solutions would be to either have an option or something that removes the need to make this call. Or, if the call is necessary if there is a way to cache the response. I wish my git skills/knowledge was greater but it isn't so I don't really know what this information is being used for.
Additional context
Currently, I am working in a fairly large monorepo.
A
git branch --remotes | wc -l
shows roughly 2525 remote branches.I'm assuming that if I clean up remote branches, that this will be a non-problem, but I don't know how realistic that is to do.
So, the problem is that the default plenary job timeout appears to be 5s. The command from
is_rev_in_remote
(git branch --remotes --contains HEAD
) takes almost 30 seconds to complete in the monorepo mentioned above. The culprit is the--contains HEAD
portion of the command. I mean, the real problem is this gigantic monorepo with so many "dangling" branches.The text was updated successfully, but these errors were encountered: