golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.04k stars 17.67k forks source link

x/tools/gopls/internal/test/integration/completion: TestPackageCompletion/package_completion_without_terminal_newline/default failures #69675

Closed gopherbot closed 1 month ago

gopherbot commented 1 month ago
#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/completion" && test == "TestPackageCompletion/package_completion_without_terminal_newline/default"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestPackageCompletion/package_completion_without_terminal_newline/default
    completion_test.go:184: no views
#### Start Gopls Test Logs for "TestPackageCompletion/package_completion_without_terminal_newline/default"
[Trace - 23:53:54.600 PM] Sending request 'initialize - (1)'.
Params: {"processId":0,"clientInfo":{"name":"fake.Editor","version":"v1.0.0"},"rootUri":"","capabilities":{"workspace":{"workspaceEdit":{"resourceOperations":["rename"]},"didChangeConfiguration":{},"didChangeWatchedFiles":{"dynamicRegistration":true},"configuration":true},"textDocument":{"completion":{"completionItem":{"snippetSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true}},"documentSymbol":{"hierarchicalDocumentSymbolSupport":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":null}}},"publishDiagnostics":{},"semanticTokens":{"requests":{"full":true},"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","label"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","interface","struct","signature","pointer","array","map","slice","chan","string","number","bool","invalid"],"formats":null}},"window":{"workDoneProgress":true}},"initializationOptions":{"completionBudget":"0s","diagnosticsDelay":"10ms","env":{"GO111MODULE":"","GOMODCACHE":"","GOPACKAGESDRIVER":"off","GOPATH":"C:\\Users\\swarming\\.swarming\\w\\ir\\x\\t\\gopls-test-518245704\\TestPackageCompletion\\package_completion_without_terminal_newline\\default\\gopath","GOPROXY":"file:///C:/Users/swarming/.swarming/w/ir/x/t/gopls-test-518245704/TestPackageCompletion/package_completion_without_terminal_newline/default/proxy","GOSUMDB":"off"},"verboseWorkDoneProgress":true},"trace":"messages","workspaceFolders":[{"uri":"file:///C:/Users/swarming/.swarming/w/ir/x/t/gopls-test-518245704/TestPackageCompletion/package_completion_without_terminal_newline/default/work","name":"work"}]}

[Trace - 23:53:54.600 PM] Received response 'initialize - (1)' in 0ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"renameProvider":true,"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.add_telemetry_counters","gopls.apply_fix","gopls.assembly","gopls.change_signature","gopls.check_upgrades","gopls.client_open_url","gopls.diagnose_files","gopls.doc","gopls.edit_go_directive","gopls.extract_to_new_file","gopls.fetch_vulncheck_result","gopls.free_symbols","gopls.gc_details","gopls.generate","gopls.go_get_package","gopls.list_imports","gopls.list_known_packages","gopls.maybe_prompt_for_telemetry","gopls.mem_stats","gopls.modules","gopls.packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.reset_go_mod_diagnostics","gopls.run_go_work_command","gopls.run_govulncheck","gopls.run_tests","gopls.scan_imports","gopls.start_debugging","gopls.start_profile","gopls.stop_profile","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor","gopls.views","gopls.workspace_stats"]},"callHierarchyProvider":true,"semanticTokensProvider":{"legend":{"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","label"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","interface","struct","signature","pointer","array","map","slice","chan","string","number","bool","invalid"]},"range":true,"full":true},"inlayHintProvider":{},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{\"GoVersion\":\"go1.23.1-devel_c8c6f9abfbbd2f949285a527036a3d0dbd991e74\",\"Path\":\"\",\"Main\":{\"Path\":\"\",\"Version\":\"\",\"Sum\":\"\",\"Replace\":null},\"Deps\":null,\"Settings\":null,\"Version\":\"(unknown)\"}"}}

...
        runtime.(*mheap).init(0x7ff7df3f4000)
            runtime/mheap.go:767 +0x1b0 fp=0xd227dff860 sp=0xd227dff820 pc=0x7ff7de8b8420
        runtime.mallocinit()
            runtime/malloc.go:451 +0xb4 fp=0xd227dff8a0 sp=0xd227dff860 pc=0x7ff7de89e234
        runtime.schedinit()
            runtime/proc.go:818 +0xe0 fp=0xd227dff900 sp=0xd227dff8a0 pc=0x7ff7de8cc950
        runtime.rt0_go()
            runtime/asm_arm64.s:86 +0xac fp=0xd227dff930 sp=0xd227dff900 pc=0x7ff7de905d3c
        ): exit status 2; removing files: <nil>
--- FAIL: TestPackageCompletion/package_completion_without_terminal_newline/default (0.21s)

watchflakes

gopherbot commented 1 month ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/completion" && test == "TestPackageCompletion/package_completion_without_terminal_newline/default"
2024-09-22 20:55 x_tools-go1.23-windows-arm64 tools@d2c1642d release-branch.go1.23@c8c6f9ab x/tools/gopls/internal/test/integration/completion.TestPackageCompletion/package_completion_without_terminal_newline/default (log) === RUN TestPackageCompletion/package_completion_without_terminal_newline/default completion_test.go:184: no views #### Start Gopls Test Logs for "TestPackageCompletion/package_completion_without_terminal_newline/default" [Trace - 23:53:54.600 PM] Sending request 'initialize - (1)'. Params: {"processId":0,"clientInfo":{"name":"fake.Editor","version":"v1.0.0"},"rootUri":"","capabilities":{"workspace":{"workspaceEdit":{"resourceOperations":["rename"]},"didChangeConfiguration":{},"didChangeWatchedFiles":{"dynamicRegistration":true},"configuration":true},"textDocument":{"completion":{"completionItem":{"snippetSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true}},"documentSymbol":{"hierarchicalDocumentSymbolSupport":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":null}}},"publishDiagnostics":{},"semanticTokens":{"requests":{"full":true},"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","label"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","interface","struct","signature","pointer","array","map","slice","chan","string","number","bool","invalid"],"formats":null}},"window":{"workDoneProgress":true}},"initializationOptions":{"completionBudget":"0s","diagnosticsDelay":"10ms","env":{"GO111MODULE":"","GOMODCACHE":"","GOPACKAGESDRIVER":"off","GOPATH":"C:\\Users\\swarming\\.swarming\\w\\ir\\x\\t\\gopls-test-518245704\\TestPackageCompletion\\package_completion_without_terminal_newline\\default\\gopath","GOPROXY":"file:///C:/Users/swarming/.swarming/w/ir/x/t/gopls-test-518245704/TestPackageCompletion/package_completion_without_terminal_newline/default/proxy","GOSUMDB":"off"},"verboseWorkDoneProgress":true},"trace":"messages","workspaceFolders":[{"uri":"file:///C:/Users/swarming/.swarming/w/ir/x/t/gopls-test-518245704/TestPackageCompletion/package_completion_without_terminal_newline/default/work","name":"work"}]} [Trace - 23:53:54.600 PM] Received response 'initialize - (1)' in 0ms. Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"renameProvider":true,"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.add_telemetry_counters","gopls.apply_fix","gopls.assembly","gopls.change_signature","gopls.check_upgrades","gopls.client_open_url","gopls.diagnose_files","gopls.doc","gopls.edit_go_directive","gopls.extract_to_new_file","gopls.fetch_vulncheck_result","gopls.free_symbols","gopls.gc_details","gopls.generate","gopls.go_get_package","gopls.list_imports","gopls.list_known_packages","gopls.maybe_prompt_for_telemetry","gopls.mem_stats","gopls.modules","gopls.packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.reset_go_mod_diagnostics","gopls.run_go_work_command","gopls.run_govulncheck","gopls.run_tests","gopls.scan_imports","gopls.start_debugging","gopls.start_profile","gopls.stop_profile","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor","gopls.views","gopls.workspace_stats"]},"callHierarchyProvider":true,"semanticTokensProvider":{"legend":{"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","label"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","interface","struct","signature","pointer","array","map","slice","chan","string","number","bool","invalid"]},"range":true,"full":true},"inlayHintProvider":{},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{\"GoVersion\":\"go1.23.1-devel_c8c6f9abfbbd2f949285a527036a3d0dbd991e74\",\"Path\":\"\",\"Main\":{\"Path\":\"\",\"Version\":\"\",\"Sum\":\"\",\"Replace\":null},\"Deps\":null,\"Settings\":null,\"Version\":\"(unknown)\"}"}} ... runtime.(*mheap).init(0x7ff7df3f4000) runtime/mheap.go:767 +0x1b0 fp=0xd227dff860 sp=0xd227dff820 pc=0x7ff7de8b8420 runtime.mallocinit() runtime/malloc.go:451 +0xb4 fp=0xd227dff8a0 sp=0xd227dff860 pc=0x7ff7de89e234 runtime.schedinit() runtime/proc.go:818 +0xe0 fp=0xd227dff900 sp=0xd227dff8a0 pc=0x7ff7de8cc950 runtime.rt0_go() runtime/asm_arm64.s:86 +0xac fp=0xd227dff930 sp=0xd227dff900 pc=0x7ff7de905d3c ): exit status 2; removing files: --- FAIL: TestPackageCompletion/package_completion_without_terminal_newline/default (0.21s)

watchflakes

adonovan commented 1 month ago

Dup of https://github.com/golang/go/issues/69664