Skip to content

x/tools/gopls/internal/cmd: TestCodeLens failures #69666

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

Closed
gopherbot opened this issue Sep 27, 2024 · 2 comments
Closed

x/tools/gopls/internal/cmd: TestCodeLens failures #69666

gopherbot opened this issue Sep 27, 2024 · 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
Contributor

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

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestCodeLens
=== PAUSE TestCodeLens
=== CONT  TestCodeLens
    integration_test.go:236: gopls codelens -exec ./a/a_test.go:4 run test: stderr does not match [FAIL	example.com/a]; got <<2024/09/22 23:29:05 Error:2024/09/22 23:29:05 go/packages.Load #1: err: exit status 2: stderr: fatal error: runtime: cannot allocate memory
        
        runtime stack:
        runtime.throw({0x7ff78be01328?, 0x0?})
        	runtime/panic.go:1067 +0x38 fp=0x28a7bff970 sp=0x28a7bff940 pc=0x7ff78b7dfc18
        runtime.persistentalloc1(0x10d0, 0x4000057008?, 0x7ff78c319b78)
        	runtime/malloc.go:1609 +0x284 fp=0x28a7bff9c0 sp=0x28a7bff970 pc=0x7ff78b77f5b4
...
        cmd/go/internal/par.(*Queue).Add.func1()
        	cmd/go/internal/par/queue.go:56 fp=0x40001a3fd0 sp=0x40001a3fd0 pc=0x7ff78b9493f0
        runtime.goexit({})
        	runtime/asm_arm64.s:1223 +0x4 fp=0x40001a3fd0 sp=0x40001a3fd0 pc=0x7ff78b7e8284
        created by cmd/go/internal/par.(*Queue).Add in goroutine 7
        	cmd/go/internal/par/queue.go:56 +0x198
        
        gopls: no code lens at .\a\a_test.go:4 with title "run test"
        >>
--- FAIL: TestCodeLens (46.74s)

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 Sep 27, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/cmd" && test == "TestCodeLens"
2024-09-22 20:55 x_tools-go1.22-windows-arm64 tools@f8ce0052 release-branch.go1.22@b4086b7c x/tools/gopls/internal/cmd.TestCodeLens (log)
=== RUN   TestCodeLens
=== PAUSE TestCodeLens
=== CONT  TestCodeLens
    integration_test.go:236: gopls codelens -exec ./a/a_test.go:4 run test: stderr does not match [FAIL	example.com/a]; got <<2024/09/22 23:29:05 Error:2024/09/22 23:29:05 go/packages.Load #1: err: exit status 2: stderr: fatal error: runtime: cannot allocate memory
        
        runtime stack:
        runtime.throw({0x7ff78be01328?, 0x0?})
        	runtime/panic.go:1067 +0x38 fp=0x28a7bff970 sp=0x28a7bff940 pc=0x7ff78b7dfc18
        runtime.persistentalloc1(0x10d0, 0x4000057008?, 0x7ff78c319b78)
        	runtime/malloc.go:1609 +0x284 fp=0x28a7bff9c0 sp=0x28a7bff970 pc=0x7ff78b77f5b4
...
        cmd/go/internal/par.(*Queue).Add.func1()
        	cmd/go/internal/par/queue.go:56 fp=0x40001a3fd0 sp=0x40001a3fd0 pc=0x7ff78b9493f0
        runtime.goexit({})
        	runtime/asm_arm64.s:1223 +0x4 fp=0x40001a3fd0 sp=0x40001a3fd0 pc=0x7ff78b7e8284
        created by cmd/go/internal/par.(*Queue).Add in goroutine 7
        	cmd/go/internal/par/queue.go:56 +0x198
        
        gopls: no code lens at .\a\a_test.go:4 with title "run test"
        >>
--- FAIL: TestCodeLens (46.74s)

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 Sep 27, 2024
@gopherbot gopherbot added this to the Unreleased milestone Sep 27, 2024
@adonovan
Copy link
Member

Dup of #69664

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
Archived in project
Development

No branches or pull requests

2 participants