-
Notifications
You must be signed in to change notification settings - Fork 18k
x/build/cmd/gitmirror: Go repo mirroring hung #35124
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
Log from its /debug/watcher/go endpoint:
It seems to be stuck on the I'll add a generous timeout. |
Change https://golang.org/cl/203057 mentions this issue: |
Change https://golang.org/cl/205860 mentions this issue: |
Also increase its timeout and terminate it with a friendlier signal and add some logging of how long git operations took. Updates golang/go#35293 Updates golang/go#35124 Change-Id: I1ed466d872a11f60751953ef5274be96cea0294b Reviewed-on: https://go-review.googlesource.com/c/build/+/205860 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
The Repo.fetch method tries to execute "git fetch" up to 3 times with linear back-off. We don't expect the git fetch process to take more than a few minutes unless something is very wrong. At that point, it's better to abort and try again. So, add a 10 minute timeout. This should help prevent fetch from being stuck and never retrying. Fixes golang/go#35124 Change-Id: Ic06a552378f8bff1bea314288a3637548663a3ef Reviewed-on: https://go-review.googlesource.com/c/build/+/203057 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Also increase its timeout and terminate it with a friendlier signal and add some logging of how long git operations took. Updates golang/go#35293 Updates golang/go#35124 Change-Id: I1ed466d872a11f60751953ef5274be96cea0294b Reviewed-on: https://go-review.googlesource.com/c/build/+/205860 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org>
Change https://golang.org/cl/227858 mentions this issue: |
The timeout added in CL 35124 doesn't seem to be working as intended. Update to a supported version of Go before investigating further. Also remove the explicit GOPROXY override, since the default behavior as of Go 1.13 uses the Go module mirror¹. ¹ https://golang.org/doc/go1.13#introduction For golang/go#35124. Change-Id: Ia01abc530f0284791fe6e57ce5700c0ebc75268e Reviewed-on: https://go-review.googlesource.com/c/build/+/227858 Reviewed-by: Alexander Rakoczy <alex@golang.org>
From https://farmer.golang.org/#health:
6 hours is abnormal.
The last Go commit on https://build.golang.org is currently f91e895 ("syscall: reenable sysctl on iOS"), same as on the GitHub repo mirror. So this is affecting post-submit builders too, not just GitHub repo mirroring.
The text was updated successfully, but these errors were encountered: