-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
proxy.golang.org: slow resolution of commit already pulled through the proxy #54977
Comments
To add a bit more detail on rough timings of when this commit was pulled through the proxy via
It's the last of these But then I should be clear that my expectations are not grounded in any form of reality of what the proxy does with respect to commit queries and caching. I couldn't find any docs at https://proxy.golang.org/ talking about caching of commit queries. Depending on the resolution if this issue it might make sense to add an FAQ there. |
CC @golang/tools-team |
FWIW https://proxy.golang.org/cuelang.org/go/@v/748a68589747fed6273d6338eb7e275a4fb116c6.info just took 16s for me... Without looking in too much detail, I'd assume that the proxy doesn't know which non-canonical versions are stable: it doesn't know that this version is a commit hash and not a branch. You should get cache hits for |
As the
Caching behavior when $version is non-canonical is unspecified. |
That's a good point re branches, I hadn't considered that. Thanks!
Just in regular development, debugging an issue. I happened to restart my machine between these two debugging sessions, so used command history to re-run the
Thanks for confirming. It might not warrant an FAQ if this is the first time the question has been asked, so I'll leave to you to decide! I'll close this as @findleyr confirmed things are working as intended here. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A quick resolution via the proxy, as that commit has already been pulled through the proxy.
What did you see instead?
Note the 6.7s for returning a 200.
This delay appears to happen "some hours" after previously running the
go get
command. i.e. almost feels like a cache goes cold, that commit gets evicted, which then makes a subsequentgo get
run more slowly.The text was updated successfully, but these errors were encountered: