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/test: TestMissingImportDiagsClearOnFirstFile failures #57871

Closed
gopherbot opened this issue Jan 18, 2023 · 3 comments
Closed

x/tools/gopls/test: TestMissingImportDiagsClearOnFirstFile failures #57871

gopherbot opened this issue Jan 18, 2023 · 3 comments
Labels
FrozenDueToAge 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
post <- pkg == "golang.org/x/tools/gopls/test" && test == "TestMissingImportDiagsClearOnFirstFile"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.72s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.72s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/17 22:25:16 go info for /ramdisk8GB/workdi...
...

[Trace - 22:34:43.384 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3061496503/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 22:34:43.385 PM] Received notification '$/progress'.
Params: {"token":"7699472376470142314","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"

watchflakes

@gopherbot gopherbot added 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. gopls Issues related to the Go language server, gopls. labels Jan 18, 2023
@gopherbot gopherbot added this to the Unreleased milestone Jan 18, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/test" && test == "TestMissingImportDiagsClearOnFirstFile"
2023-01-18 02:12 aix-ppc64 tools@5bedd861 go@7026a8a1 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.72s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.72s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/17 22:25:16 go info for /ramdisk8GB/workdi...
...

[Trace - 22:34:43.384 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3061496503/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 22:34:43.385 PM] Received notification '$/progress'.
Params: {"token":"7699472376470142314","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"

watchflakes

@findleyr
Copy link
Contributor

Dupe of #57900.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
@gopherbot gopherbot reopened this Jan 25, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/test" && test == "TestMissingImportDiagsClearOnFirstFile"
2023-01-17 18:50 aix-ppc64 tools@d958e854 go@dbe327a6 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.52s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.52s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/18 03:00:32 go info for /ramdisk8GB/workdi...
...

[Trace - 03:09:59.227 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3531648703/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 03:09:59.227 AM] Received notification '$/progress'.
Params: {"token":"7017120845108224384","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"
2023-01-17 18:50 aix-ppc64 tools@d958e854 go@f773bef9 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.51s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.51s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/18 04:31:22 go info for /ramdisk8GB/workdi...
...

[Trace - 04:40:48.837 AM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/01/18 04:40:48 warning: analyzing package: internal error updating shared cache: mkdir /.cache/gopls/d1c26719/analysis/7c: no space left on device\n\tsnapshot=1\n\tdirectory=file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3701121941/TestDiagnosticErrorInNewFile/default/work\n\tpackage=\"command-line-arguments:file=/ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3701121941/TestDiagnosticErrorInNewFile/default/work/broken.go\"\n"}


[Trace - 04:40:48.838 AM] Received notification '$/progress'.
Params: {"token":"2592412728876384647","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"
2023-01-18 02:12 aix-ppc64 tools@5bedd861 go@581603cb x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (563.72s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (563.72s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/17 22:10:24 go info for /ramdisk8GB/workdi...
...

[Trace - 22:19:49.465 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-1750675161/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 22:19:49.466 PM] Received notification '$/progress'.
Params: {"token":"9118489255308003715","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"
2023-01-18 14:54 aix-ppc64 tools@f0e2d5c5 go@7026a8a1 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.83s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.83s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/18 09:52:02 go info for /ramdisk8GB/workdi...
...

[Trace - 10:01:29.328 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-1475082788/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 10:01:29.328 AM] Received notification '$/progress'.
Params: {"token":"7113848532790883259","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"
2023-01-18 14:59 aix-ppc64 tools@957bec5a go@7026a8a1 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.60s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.59s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/18 10:06:57 go info for /ramdisk8GB/workdi...
...

[Trace - 10:16:24.093 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-2561222185/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 10:16:24.094 AM] Received notification '$/progress'.
Params: {"token":"1607809334734298282","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"
2023-01-18 15:15 aix-ppc64 tools@2fa6ca1e go@7026a8a1 x/tools/gopls/test.TestMissingImportDiagsClearOnFirstFile (log)
--- FAIL: TestMissingImportDiagsClearOnFirstFile (565.82s)
    --- FAIL: TestMissingImportDiagsClearOnFirstFile/default (565.82s)
        diagnostics_test.go:76: waiting on:
            Unmet: any diagnostics at the first position matching `log` in "main.go"

            err:context deadline exceeded

            state:
            #### log messages (see RPC logs for full text):
            	Info: "2023/01/18 10:21:48 go info for /ramdisk8GB/workdi...
...

[Trace - 10:31:15.677 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/gopls-regtest-3091441259/TestDiagnosticErrorInNewFile/default/work/broken.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":12}},"severity":1,"source":"go list","message":"gopls was not able to find modules in your workspace.\nWhen outside of GOPATH, gopls needs to know which modules you are working on.\nYou can fix this by opening your workspace to a folder inside a Go module, or\nby using a go.work file to specify multiple modules.\nSee the documentation for more information on setting up your workspace:\nhttps://github.com/golang/tools/blob/master/gopls/doc/workspace.md."}]}


[Trace - 10:31:15.678 AM] Received notification '$/progress'.
Params: {"token":"4205971927830037752","value":{"kind":"end","message":"Done."}}


#### End Gopls Test Logs for "TestDiagnosticErrorInNewFile/default"

watchflakes

@golang golang locked and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge 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
Status: Done
Development

No branches or pull requests

2 participants