-
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
x/tools/cmd/godoc: TestWebIndex test fails with timeout #24504
Comments
The test expects that unsetting GOPATH for godoc (godocEnv function) would work, so that godoc would not include GOPATH. But it is not true:
It happens b/c godoc uses build.Default.GOPATH which returns default GOPATH set to ~/go if GOPATH was not set in env:
|
Change https://golang.org/cl/102295 mentions this issue: |
Change https://golang.org/cl/102796 mentions this issue: |
The godoc in the test was indexing sources in the default GOPATH. If the default GOPATH pointed to local workspace, test would timeout. The fix is to supply GOPATH set to non-existing path. Fixes golang/go#24504 Change-Id: Iedf044cdec78d5c5642105650ad8ec17aa10a5ba Reviewed-on: https://go-review.googlesource.com/102295 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> (cherry picked from commit 77106db) Reviewed-on: https://go-review.googlesource.com/102796 Run-TryBot: Andrew Bonventre <andybons@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
What version of Go are you using (
go version
)?tip
Does this issue reproduce with the latest release?
yes, x/tools tip
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/thornLibrary/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/thorn/go"
GORACE=""
GOROOT="/Users/thorn/golang"
GOTMPDIR=""
GOTOOLDIR="/Users/thorn/golang/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/km/50gy6_q557v6_7vxbf9b29v00000gn/T/go-build042238440=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Indexing takes too much time on my machine. Running this test with hacked
args = append(args, "-index", "-index_interval=-1s", "-v")
gives:Testing of cmd/godoc should not depend on the local tree of sources in GOPATH.
The text was updated successfully, but these errors were encountered: