-
Notifications
You must be signed in to change notification settings - Fork 18k
x/pkgsite: search for stdlib packages doesn't work #47555
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 also observed some breakage on stdlib packages a few hours ago. Everyone of them had:
but if you clicked on it it would show thousands of importers (as you would expect for a stdlib package). Now it seems to be fixed. |
I am experiencing the exact same thing as @cespare. I can only get to stdlib stuff if i give it the exact name of the package, like |
It's working for me now, but I guess before closing it it would be good to hear confirmation of a fix from the team since it apparently has been toggling between these states over time. |
I can confirm that https://pkg.go.dev/search?q=x509 works fine now (the problem reported in #47561, which was duped to this one) |
Change https://golang.org/cl/341249 mentions this issue: |
Change https://golang.org/cl/341269 mentions this issue: |
Change https://golang.org/cl/341270 mentions this issue: |
When updating imported-by counts, only look at changed counts for packages in search_documents. For golang/go#47555 Change-Id: If9a03a747d11bf715de126248aa74e30098b13aa Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341270 Trust: Jonathan Amsterdam <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> Reviewed-by: Julie Qiu <[email protected]>
Instead of deleting the entire module from search_documents on insert, just delete packages that are not in the current version. That will avoid resetting imported-by counts to zero when we reprocess the latest version of a module. For golang/go#47555 Change-Id: Ie2aedc920f0e840c20f4487ed10bf7801b43a3f8 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341269 Trust: Jonathan Amsterdam <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Julie Qiu <[email protected]>
Change https://golang.org/cl/341429 mentions this issue: |
For golang/go#47555 Change-Id: I9e90de83d441748e70b0992f3a31a02f46f1bce9 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341429 Trust: Jonathan Amsterdam <[email protected]> Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> TryBot-Result: kokoro <[email protected]>
This should be permanently fixed. |
If too many rows change imported-by counts, then the /update-imported-by-count endpoint times out after 30 minutes, and nothing gets inserted because it runs as one transaction. Instead, break it into multiple smaller transactions. Since we only update changed counts, then as long as one transaction completes we have made some counts identical, so we will make progress. For golang/go#47555 Change-Id: I546aaabcc5e0f99d71efe38748475274871382c4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/341249 Reviewed-by: Jamal Carvalho <[email protected]> Reviewed-by: Julie Qiu <[email protected]> Trust: Julie Qiu <[email protected]> Trust: Jonathan Amsterdam <[email protected]> Run-TryBot: Julie Qiu <[email protected]>
What is the URL of the page with the issue?
https://pkg.go.dev/search?q=os
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Screenshot
What did you do?
Search for a standard library package.
What did you expect to see?
The standard library package as the top result.
What did you see instead?
Some other random packages that don't even have the name
os
.Update: it seems to be working again now. But the above makes me feel like I can't trust it. Here are the new results:
The text was updated successfully, but these errors were encountered: