-
Notifications
You must be signed in to change notification settings - Fork 25
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
surf-client hangs up because surf-server is taking too long #24
Comments
Yeah, we have to pull every ref right now, which can take forever long on the first run. After that though, surf-server should be pretty fast. I really wish GitHub would allow you to request commit info more than a single SHA at a time |
Unfortunately the client times out and then surf-server starts all over again on the next connection, so it never gets there. :) Gonna delete some refs. |
@cjb Our goal is to monitor changes to every ref, but I might have to fall back to monitoring changes to open PRs :( |
I actually exceeded the API rate-limit too. Wonder if surf-server should have some inbuilt protection against that. |
Oh weird, deleting branches from now-merged pull requests doesn't seem to remove those PRs from the API refs endpoint. So I'm not sure how I could cut down on the number of refs in this project to avoid timing out the client. |
We probably need to drop the "Give me all refs" code and replace it with "Give me all open PRs" code and concede trying to build branches that aren't PRs and aren't the default branch (i.e. master) |
Alternatively, perhaps you could do this spidering when surf-server starts up, rather than when surf-client first connects to surf-server? The problem is trying to get it all done while surf-client's sitting there waiting for a response, I think? |
Yeah, this is a good short-term fix though it won't solve the "I literally have so many refs that I can't read them all without exhausting a token" problem |
@cjb I've done some work to make us only poll open PRs, the perf issues on startup should be for the most part completely solved |
In one terminal:
In another:
The surf-server logs show:
followed by what looks like hundreds of:
at a rate of a few every second.
Does Surf have a problem scaling with large repos? I wonder why it's pulling down so many commits.
The text was updated successfully, but these errors were encountered: