Skip to content
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/gopls/internal/regtest/diagnostics: unrecognized failures #61267

Closed
gopherbot opened this issue Jul 10, 2023 · 2 comments
Closed

x/tools/gopls/internal/regtest/diagnostics: unrecognized failures #61267

gopherbot opened this issue Jul 10, 2023 · 2 comments
Labels
gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gopherbot
Copy link

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/regtest/diagnostics" && test == ""

Issue created automatically to collect these failures.

Example (log):

DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
   PPID     PID COMMAND
...
panic: running lsof: exec: "lsof": executable file not found in $PATH

goroutine 27798 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0063c7590)
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:436 +0x48a
golang.org/x/tools/internal/gocommand.runCmdContext({0xfe6700, 0xc002f3b6e0}, 0xc001701080)
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:372 +0x486
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0005339b8, {0xfe6700, 0xc002f3b6e0}, {0xfde620, 0xc002f3b830}, {0xfde620, 0xc002f3b860})
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:267 +0x12da
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0005339b8, {0xfe6700, 0xc002f3b6e0}, {0xfde620, 0xc002f3b830}, {0xfde620, 0xc002f3b860})
...
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc000d62000, {0xfe6700, 0xc002f3ade0})
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/snapshot.go:1508 +0x14a
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).awaitLoaded(...)
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/snapshot.go:1380
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).resolveImportGraph(0xc000d62000)
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:196 +0xce
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getImportGraph.func1()
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:162 +0x7a
created by golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getImportGraph in goroutine 27770
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:160 +0x1c2

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jul 10, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/regtest/diagnostics" && test == ""
2023-06-10 16:55 linux-s390x-ibm tools@db6a81ed go@ee46f0b5 x/tools/gopls/internal/regtest/diagnostics (log)
DETECTED A HANGING GO COMMAND

The gopls test runner has detected a hanging go command. In order to debug
this, the output of ps and lsof/fstat is printed below.

See golang/go#54461 for more details.

ps axo ppid,pid,command:
-------------------------
   PPID     PID COMMAND
...
panic: running lsof: exec: "lsof": executable file not found in $PATH

goroutine 27798 [running]:
golang.org/x/tools/internal/gocommand.HandleHangingGoCommand(0xc0063c7590)
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:436 +0x48a
golang.org/x/tools/internal/gocommand.runCmdContext({0xfe6700, 0xc002f3b6e0}, 0xc001701080)
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:372 +0x486
golang.org/x/tools/internal/gocommand.(*Invocation).run(0xc0005339b8, {0xfe6700, 0xc002f3b6e0}, {0xfde620, 0xc002f3b830}, {0xfde620, 0xc002f3b860})
	/data/golang/workdir/gopath/src/golang.org/x/tools/internal/gocommand/invoke.go:267 +0x12da
golang.org/x/tools/internal/gocommand.(*Invocation).runWithFriendlyError(0xc0005339b8, {0xfe6700, 0xc002f3b6e0}, {0xfde620, 0xc002f3b830}, {0xfde620, 0xc002f3b860})
...
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc000d62000, {0xfe6700, 0xc002f3ade0})
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/snapshot.go:1508 +0x14a
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).awaitLoaded(...)
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/snapshot.go:1380
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).resolveImportGraph(0xc000d62000)
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:196 +0xce
golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getImportGraph.func1()
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:162 +0x7a
created by golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getImportGraph in goroutine 27770
	/data/golang/workdir/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:160 +0x1c2

watchflakes

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jul 10, 2023
@gopherbot gopherbot added this to the Unreleased milestone Jul 10, 2023
@bcmills
Copy link
Contributor

bcmills commented Jul 11, 2023

Duplicate of #58901

@bcmills bcmills marked this as a duplicate of #58901 Jul 11, 2023
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls Issues related to the Go language server, gopls. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

2 participants