Skip to content

x/tools/gopls/internal/cmd: TestWorkspaceSymbol failures [consistent failure] #71884

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
gopherbot opened this issue Feb 21, 2025 · 5 comments
Closed
Assignees
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
Contributor

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

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c520, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cb5c, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2905470421/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2905470421/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473998)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49

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 Feb 21, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestWorkspaceSymbol"
2025-02-21 15:31 x_tools-go1.23-js-wasm tools@8b85edcc release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c520, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cb5c, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2905470421/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2905470421/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473998)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49
2025-02-21 18:18 x_tools-go1.23-js-wasm tools@23211ff4 release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c520, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x49}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cb5c, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2003550856/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2003550856/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473998)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49
2025-02-21 18:26 x_tools-go1.23-js-wasm tools@f2beb33b release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c540, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1ad012e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cb7c, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo285859018/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo285859018/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473a48)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49
2025-02-21 18:51 x_tools-go1.23-js-wasm tools@7347766e release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c540, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cc15, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo3453834609/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo3453834609/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473ac8)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49
2025-02-21 19:15 x_tools-go1.23-js-wasm tools@4e0c888d release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c560, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cc39, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2533098912/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2533098912/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473ae8)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49

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 Feb 21, 2025
@gopherbot gopherbot added this to the Unreleased milestone Feb 21, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestWorkspaceSymbol"
2025-02-21 15:23 x_tools-go1.23-js-wasm tools@f95771e6 release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c520, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1ad012e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cb5c, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2352761625/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2352761625/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473998)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestWorkspaceSymbol"
2025-02-21 21:16 x_tools-go1.23-js-wasm tools@1c52ccd3 release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c6e0, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34d081, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo30943227/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo30943227/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473f48)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49
2025-02-21 21:16 x_tools-go1.23-js-wasm tools@6e3d8bca release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c660, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x49}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34cfa1, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2443135392/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2443135392/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473e68)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestWorkspaceSymbol"
2025-02-21 21:47 x_tools-go1.23-js-wasm tools@3d7c2e28 release-branch.go1.23@22fdd35c x/tools/gopls/internal/cmd.TestWorkspaceSymbol (log)
=== RUN   TestWorkspaceSymbol
=== PAUSE TestWorkspaceSymbol
=== CONT  TestWorkspaceSymbol
--- FAIL: TestWorkspaceSymbol (0.01s)
panic: syscall/js: call of Value.Call on undefined
	panic: syscall/js: call of Value.Call on undefined [recovered]
	panic: syscall/js: call of Value.Call on undefined

goroutine 114 [running]:
testing.tRunner.func1.2({0x14c6e0, 0x1b31e00})
...
os.WriteFile({0x1b406e0, 0x4a}, {0x1acc12e, 0x1c, 0x52}, 0x1b6)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/os/file.go:850 +0x2
golang.org/x/tools/gopls/internal/cmd_test.writeTree(0x7b58380, {0x34d021, 0x57})
	/home/swarming/.swarming/w/ir/x/w/targetrepo2430739653/gopls/internal/cmd/integration_test.go:1115 +0x1f
golang.org/x/tools/gopls/internal/cmd_test.TestWorkspaceSymbol(0x7b58380)
	/home/swarming/.swarming/w/ir/x/w/targetrepo2430739653/gopls/internal/cmd/integration_test.go:1049 +0x3
testing.tRunner(0x7b58380, 0x473ee8)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1792 +0x12
created by testing.(*T).Run in goroutine 1
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.0.linux-amd64/src/testing/testing.go:1851 +0x49

watchflakes

@findleyr findleyr self-assigned this Feb 21, 2025
@findleyr
Copy link
Member

Moral duplicate of #7184

# for free to join this conversation on GitHub. Already have an account? # 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
Archived in project
Development

No branches or pull requests

2 participants