Skip to content

Code lenses with stretchr/testify/suite tests fail on windows #3172

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
hyangah opened this issue Feb 13, 2024 · 1 comment
Closed

Code lenses with stretchr/testify/suite tests fail on windows #3172

hyangah opened this issue Feb 13, 2024 · 1 comment
Assignees
Labels
chore/testing issues related to bugs in test, CI setup FrozenDueToAge
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Feb 13, 2024

The first two tests consistently fail on Windows in GH CI.
From the gopls traces, it looks like gopls was still loading the packages and couldn't return gopls.list_imports workspace/executeCommand within ~1sec. The tests require loading multiple third-party modules.

We can try to increase test timeout while investigating ways to speed tests.

https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275

Code lenses with stretchr/testify/suite test failure log ``` Code lenses with stretchr/testify/suite 1) Run test at cursor [Trace - 11:11:58.769 AM] Sending request 'initialize - (0)'. Params: {"processId":4624,"clientInfo":{"name":"Visual Studio Code - Insiders","version":"1.87.0-insider"},"locale":"en","rootPath":"d:\\a\\vscode-go\\vscode-go\\extension\\test\\testdata\\stretchrTestSuite","rootUri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"configuration":true,"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]},"resolveSupport":{"properties":["location.range"]}},"codeLens":{"refreshSupport":true},"executeCommand":{"dynamicRegistration":true},"didChangeConfiguration":{"dynamicRegistration":true},"workspaceFolders":true,"semanticTokens":{"refreshSupport":true},"fileOperations":{"dynamicRegistration":true,"didCreate":true,"didRename":true,"didDelete":true,"willCreate":true,"willRename":true,"willDelete":true},"inlineValue":{"refreshSupport":true},"inlayHint":{"refreshSupport":true},"diagnostics":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true},"insertTextMode":2,"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"honorsChangeAnnotations":false},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1,"honorsChangeAnnotations":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true,"foldingRangeKind":{"valueSet":["comment","imports","region"]},"foldingRange":{"collapsedText":false}},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}},"multilineTokenSupport":false,"overlappingTokenSupport":false,"serverCancelSupport":true,"augmentsSyntaxTokens":true},"linkedEditingRange":{"dynamicRegistration":true},"typeHierarchy":{"dynamicRegistration":true},"inlineValue":{"dynamicRegistration":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false}},"window":{"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"showDocument":{"support":true},"workDoneProgress":true},"general":{"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]},"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"]},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}}},"initializationOptions":{"ui.inlayhint.hints":{"assignVariableTypes":false,"compositeLiteralFields":false,"compositeLiteralTypes":false,"constantValues":false,"functionTypeParameters":false,"parameterNames":false,"rangeVariableTypes":false},"ui.vulncheck":"Off","linkifyShowMessage":true,"allExperiments":true},"trace":"off","workspaceFolders":null} [Trace - 11:11:58.773 AM] Received response 'initialize - (0)' in 4ms. 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":{"codeActionKinds":["quickfix","refactor.extract","refactor.inline","refactor.rewrite","source.fixAll","source.organizeImports"],"resolveProvider":true},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.add_telemetry_counters","gopls.apply_fix","gopls.change_signature","gopls.check_upgrades","gopls.diagnose_files","gopls.edit_go_directive","gopls.fetch_vulncheck_result","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.regenerate_cgo","gopls.remove_dependency","gopls.reset_go_mod_diagnostics","gopls.run_go_work_command","gopls.run_govulncheck","gopls.run_tests","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","decorator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"]},"range":true,"full":true},"inlayHintProvider":{},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{\"GoVersion\":\"go1.21.7\",\"Path\":\"golang.org/x/tools/gopls\",\"Main\":{\"Path\":\"golang.org/x/tools/gopls\",\"Version\":\"v0.15.0-pre.2\",\"Sum\":\"h1:A48ndEGf3pvzJ0k22HneSU7msCaggzcpg56ELTEuapQ=\",\"Replace\":null},\"Deps\":[{\"Path\":\"github.com/BurntSushi/toml\",\"Version\":\"v1.2.1\",\"Sum\":\"h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=\",\"Replace\":null},{\"Path\":\"github.com/google/go-cmp\",\"Version\":\"v0.6.0\",\"Sum\":\"h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=\",\"Replace\":null},{\"Path\":\"golang.org/x/exp/typeparams\",\"Version\":\"v0.0.0-20221212164502-fae10dda9338\",\"Sum\":\"h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=\",\"Replace\":null},{\"Path\":\"golang.org/x/mod\",\"Version\":\"v0.14.0\",\"Sum\":\"h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=\",\"Replace\":null},{\"Path\":\"golang.org/x/sync\",\"Version\":\"v0.6.0\",\"Sum\":\"h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=\",\"Replace\":null},{\"Path\":\"golang.org/x/sys\",\"Version\":\"v0.16.0\",\"Sum\":\"h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=\",\"Replace\":null},{\"Path\":\"golang.org/x/telemetry\",\"Version\":\"v0.0.0-20240201224847-0a1d30dda509\",\"Sum\":\"h1:Nr7eTQpQZ/ytesxDJpQgaf0t4sdLnnDtAbmtViTrSUo=\",\"Replace\":null},{\"Path\":\"golang.org/x/text\",\"Version\":\"v0.14.0\",\"Sum\":\"h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=\",\"Replace\":null},{\"Path\":\"golang.org/x/tools\",\"Version\":\"v0.17.1-0.20240206204217-56dc8684fb5a\",\"Sum\":\"h1:WL/PnseOKWuDtRbgfYKDpuAmMpy3OrX84rv7uQFZJK4=\",\"Replace\":null},{\"Path\":\"golang.org/x/vuln\",\"Version\":\"v1.0.1\",\"Sum\":\"h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=\",\"Replace\":null},{\"Path\":\"honnef.co/go/tools\",\"Version\":\"v0.4.6\",\"Sum\":\"h1:oFEHCKeID7to/3autwsWfnuv69j3NsfcXbvJKuIcep8=\",\"Replace\":null},{\"Path\":\"mvdan.cc/gofumpt\",\"Version\":\"v0.6.0\",\"Sum\":\"h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo=\",\"Replace\":null},{\"Path\":\"mvdan.cc/xurls/v2\",\"Version\":\"v2.5.0\",\"Sum\":\"h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8=\",\"Replace\":null}],\"Settings\":[{\"Key\":\"-buildmode\",\"Value\":\"exe\"},{\"Key\":\"-compiler\",\"Value\":\"gc\"},{\"Key\":\"DefaultGODEBUG\",\"Value\":\"panicnil=1\"},{\"Key\":\"CGO_ENABLED\",\"Value\":\"1\"},{\"Key\":\"CGO_CFLAGS\",\"Value\":\"\"},{\"Key\":\"CGO_CPPFLAGS\",\"Value\":\"\"},{\"Key\":\"CGO_CXXFLAGS\",\"Value\":\"\"},{\"Key\":\"CGO_LDFLAGS\",\"Value\":\"\"},{\"Key\":\"GOARCH\",\"Value\":\"amd64\"},{\"Key\":\"GOOS\",\"Value\":\"windows\"},{\"Key\":\"GOAMD64\",\"Value\":\"v1\"}],\"Version\":\"v0.15.0-pre.2\"}"}} [Trace - 11:11:58.787 AM] Sending notification 'initialized'. Params: {} [Trace - 11:11:58.787 AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens_test.go","languageId":"go","version":1,"text":"package main\r\n\r\nimport (\r\n\t\"testing\"\r\n)\r\n\r\nfunc TestSample(t *testing.T) {\r\n\tt.Run(\"sample test passing\", func(t *testing.T) {\r\n\r\n\t})\r\n\r\n\tt.Run(\"sample test failing\", func(t *testing.T) {\r\n\t\tt.FailNow()\r\n\t})\r\n\r\n\ttestName := \"dynamic test name\"\r\n\tt.Run(testName, func(t *testing.T) {\r\n\t\tt.FailNow()\r\n\t})\r\n}\r\n"}} [Trace - 11:11:58.787 AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens_benchmark_test.go","languageId":"go","version":1,"text":"package main\r\n\r\nimport (\r\n\t\"testing\"\r\n)\r\n\r\nfunc BenchmarkSample(b *testing.B) {\r\n\tb.Run(\"sample test passing\", func(t *testing.B) {\r\n\r\n\t})\r\n\r\n\tb.Run(\"sample test failing\", func(t *testing.B) {\r\n\t\tt.FailNow()\r\n\t})\r\n\r\n\ttestName := \"dynamic test name\"\r\n\tb.Run(testName, func(t *testing.B) {\r\n\t\tt.FailNow()\r\n\t})\r\n}\r\n"}} [Trace - 11:11:58.787 AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens2_test.go","languageId":"go","version":1,"text":"package main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"testing\"\r\n)\r\n\r\n// As of Go1.16, `go test codelens2_test.go -list .` returns\r\n// TestFunction\r\n// Test1Function\r\n// TestΣυνάρτηση\r\n// Test함수\r\n// Test_foobar\r\n// Test\r\n// TestMain\r\n// ExampleFunction\r\n// Example\r\n\r\nfunc TestFunction(t *testing.T) {\r\n\tt.Log(\"this is a valid test function\")\r\n}\r\n\r\nfunc Testfunction(t *testing.T) {\r\n\tt.Fatal(\"this is not a valid test function\")\r\n}\r\n\r\nfunc Test1Function(t *testing.T) {\r\n\tt.Log(\"this is an acceptable test function\")\r\n}\r\n\r\nfunc TestΣυνάρτηση(t *testing.T) {\r\n\tt.Log(\"this is a valid test function\")\r\n}\r\n\r\nfunc Testσυνάρτηση(t *testing.T) {\r\n\tt.Fatal(\"this is not a valid test function\")\r\n}\r\n\r\nfunc Test함수(t *testing.T) {\r\n\tt.Log(\"this is a valid test function\")\r\n}\r\n\r\nfunc Test_foobar(t *testing.T) {\r\n\tt.Log(\"this is an acceptable test function\")\r\n}\r\n\r\nfunc Test(t *testing.T) {\r\n\tt.Log(\"this is a valid test function\")\r\n}\r\n\r\nfunc TestMain(m *testing.T) {\r\n\tm.Log(\"this is a valid test function\")\r\n}\r\n\r\nfunc ExampleFunction() {\r\n\tfmt.Println(\"this is a valid example function\")\r\n\t// Output:\r\n\t// this is a valid example function\r\n}\r\n\r\nfunc Example() {\r\n\tfmt.Println(\"this is a valid example function\")\r\n\t// Output:\r\n\t// this is a valid example function\r\n}\r\n"}} [Trace - 11:11:58.787 AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens_go118_test.go","languageId":"go","version":1,"text":"//go:build go1.18\r\n// +build go1.18\r\n\r\npackage main\r\n\r\nimport (\r\n\t\"testing\"\r\n)\r\n\r\nfunc FuzzFunc(f *testing.F) {\r\n}\r\n\r\nfunc Fuzz(f *testing.F) {\r\n}\r\n\r\nfunc TestGo118(t *testing.T) {\r\n}\r\n"}} [Trace - 11:11:58.787 AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/testmain/testmain_test.go","languageId":"go","version":1,"text":"package main\r\n\r\nimport (\r\n\t\"testing\"\r\n)\r\n\r\nfunc TestNotMain(t *testing.T) {\r\n}\r\n\r\nfunc TestMain(m *testing.M) {\r\n}\r\n"}} [Trace - 11:11:58.788 AM] Received request 'window/workDoneProgress/create - (1)'. Params: {"token":"3042289352852386774"} [Trace - 11:11:58.789 AM] Sending response 'window/workDoneProgress/create - (1)' in 1ms. Result: [Trace - 11:11:58.789 AM] Received notification '$/progress'. Params: {"token":"3042289352852386774","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}} [Trace - 11:11:58.790 AM] Received request 'workspace/configuration - (2)'. Params: {"items":[{"scopeUri":"file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite","section":"gopls"}]} [Trace - 11:11:58.791 AM] Sending response 'workspace/configuration - (2)' in 1ms. Result: [{"ui.inlayhint.hints":{"assignVariableTypes":false,"compositeLiteralFields":false,"compositeLiteralTypes":false,"constantValues":false,"functionTypeParameters":false,"parameterNames":false,"rangeVariableTypes":false},"ui.vulncheck":"Off","linkifyShowMessage":true,"allExperiments":true}] [Trace - 11:11:58.999 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2024/02/13 11:11:58 go info for D:\\a\\vscode-go\\vscode-go\\extension\\test\\testdata\\stretchrTestSuite\n(view type GoModView)\n(root dir D:\\a\\vscode-go\\vscode-go\\extension\\test\\testdata\\stretchrTestSuite)\n(go version go version go1.21.7 windows/amd64)\n(build flags: [])\n(go env: {GOOS:windows GOARCH:amd64 GOCACHE:C:\\Users\\runneradmin\\AppData\\Local\\go-build GOMODCACHE:C:\\Users\\runneradmin\\go\\pkg\\mod GOPATH:C:\\Users\\runneradmin\\go GOPRIVATE: GOFLAGS: GO111MODULE: GoVersion:21 GoVersionOutput:go version go1.21.7 windows/amd64\n GOWORK: GOPACKAGESDRIVER:})\n(env overlay: map[])\n\n"} [Info - 11:11:59 AM] 2024/02/13 11:11:58 go info for D:\a\vscode-go\vscode-go\extension\test\testdata\stretchrTestSuite (view type GoModView) (root dir D:\a\vscode-go\vscode-go\extension\test\testdata\stretchrTestSuite) (go version go version go1.21.7 windows/amd64) (build flags: []) (go env: {GOOS:windows GOARCH:amd64 GOCACHE:C:\Users\runneradmin\AppData\Local\go-build GOMODCACHE:C:\Users\runneradmin\go\pkg\mod GOPATH:C:\Users\runneradmin\go GOPRIVATE: GOFLAGS: GO111MODULE: GoVersion:21 GoVersionOutput:go version go1.21.7 windows/amd64 GOWORK: GOPACKAGESDRIVER:}) (env overlay: map[]) [Trace - 11:11:59.665 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2024/02/13 11:11:59 go/packages.Load #1\n\tsnapshot=0\n\tdirectory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite\n\tquery=[D:\\a\\vscode-go\\vscode-go\\extension\\test\\testdata\\stretchrTestSuite\\... builtin]\n\tpackages=5\n"} [Info - 11:11:59 AM] 2024/02/13 11:11:59 go/packages.Load #1 snapshot=0 directory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite query=[D:\a\vscode-go\vscode-go\extension\test\testdata\stretchrTestSuite\... builtin] packages=5 [Trace - 11:11:59.668 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2024/02/13 11:11:59 go/packages.Load #1: updating metadata for 146 packages\n"} [Info - 11:11:59 AM] 2024/02/13 11:11:59 go/packages.Load #1: updating metadata for 146 packages [Trace - 11:11:59.725 AM] Received notification '$/progress'. Params: {"token":"3042289352852386774","value":{"kind":"end","message":"Finished loading packages."}} [Trace - 11:11:59.726 AM] Received request 'client/registerCapability - (3)'. Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.{mod,work}","kind":7},{"globPattern":{"baseUri":"file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite","pattern":"**/*.{go,mod,sum,work}"},"kind":7}]}}]} [Trace - 11:11:59.[728](https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275#step:10:729) AM] Sending response 'client/registerCapability - (3)' in 2ms. Result: [Trace - 11:11:59.728 AM] Received request 'client/registerCapability - (4)'. Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"}]} [Trace - 11:11:59.[730](https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275#step:10:731) AM] Sending response 'client/registerCapability - (4)' in 1ms. Result: [Trace - 11:11:59.[751](https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275#step:10:752) AM] Sending notification 'textDocument/didOpen'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go","languageId":"go","version":1,"text":"package main_test\r\n\r\nimport (\r\n\t\"testing\"\r\n\r\n\t\"github.com/stretchr/testify/suite\"\r\n)\r\n\r\n// Define the suite, and absorb the built-in basic suite\r\n// functionality from testify - including a T() method which\r\n// returns the current testing context\r\ntype ExampleTestSuite struct {\r\n\tsuite.Suite\r\n\tVariableThatShouldStartAtFive int\r\n}\r\n\r\n// Make sure that VariableThatShouldStartAtFive is set to five\r\n// before each test\r\nfunc (suite *ExampleTestSuite) SetupTest() {\r\n\tsuite.VariableThatShouldStartAtFive = 5\r\n}\r\n\r\n// All methods that begin with \"Test\" are run as tests within a\r\n// suite.\r\nfunc (suite *ExampleTestSuite) TestExample() {\r\n\tif suite.VariableThatShouldStartAtFive != 5 {\r\n\t\tsuite.T().Fatalf(\"%d != %d\", 5, suite.VariableThatShouldStartAtFive)\r\n\t}\r\n}\r\n\r\n// In order for 'go test' to run this suite, we need to create\r\n// a normal test function and pass our suite to suite.Run\r\nfunc TestExampleTestSuite(t *testing.T) {\r\n\tsuite.Run(t, new(ExampleTestSuite))\r\n}\r\n"}} [Trace - 11:11:59.[776](https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275#step:10:777) AM] Sending request 'textDocument/documentHighlight - (1)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens_test.go"},"position":{"line":0,"character":0}} [Trace - 11:11:59.[777](https://github.com/golang/vscode-go/actions/runs/7885510004/job/21516805275#step:10:778) AM] Sending request 'textDocument/codeAction - (2)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[],"triggerKind":2}} [Trace - 11:11:59.777 AM] Sending request 'textDocument/documentSymbol - (3)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Trace - 11:11:59.796 AM] Sending request 'textDocument/documentSymbol - (4)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Trace - 11:11:59.828 AM] Sending request 'textDocument/documentLink - (5)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Trace - 11:11:59.828 AM] Sending request 'textDocument/inlayHint - (6)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":35,"character":0}}} [Trace - 11:11:59.836 AM] Sending notification '$/cancelRequest'. Params: {"id":1} [Trace - 11:11:59.908 AM] Sending request 'textDocument/semanticTokens/range - (7)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":35,"character":0}}} [Trace - 11:11:59.999 AM] Sending request 'textDocument/foldingRange - (8)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Error - Received] 11:12:00.009 AM #1 JSON RPC cancelled [Trace - 11:12:00.046 AM] Sending request 'textDocument/codeLens - (9)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Trace - 11:12:00.086 AM] Sending request 'textDocument/codeAction - (10)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"},"range":{"start":{"line":25,"character":4},"end":{"line":25,"character":4}},"context":{"diagnostics":[],"triggerKind":2}} [Trace - 11:12:00.086 AM] Sending notification '$/cancelRequest'. Params: {"id":2} [Trace - 11:12:00.304 AM] Sending request 'textDocument/semanticTokens/full - (11)'. Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}} [Error - Received] 11:12:00.501 AM #2 context canceled [Error - 11:12:00 AM] Request textDocument/codeAction failed. Message: context canceled Code: 0 [Trace - 11:12:00.501 AM] Received response 'textDocument/documentSymbol - (3)' in 724ms. Result: [{"name":"ExampleTestSuite","detail":"struct{...}","kind":23,"range":{"start":{"line":11,"character":5},"end":{"line":14,"character":1}},"selectionRange":{"start":{"line":11,"character":5},"end":{"line":11,"character":21}},"children":[{"name":"Suite","detail":"suite.Suite","kind":8,"range":{"start":{"line":12,"character":1},"end":{"line":12,"character":12}},"selectionRange":{"start":{"line":12,"character":7},"end":{"line":12,"character":12}}},{"name":"VariableThatShouldStartAtFive","detail":"int","kind":8,"range":{"start":{"line":13,"character":1},"end":{"line":13,"character":34}},"selectionRange":{"start":{"line":13,"character":1},"end":{"line":13,"character":30}}}]},{"name":"(*ExampleTestSuite).SetupTest","detail":"func()","kind":6,"range":{"start":{"line":18,"character":0},"end":{"line":20,"character":1}},"selectionRange":{"start":{"line":18,"character":31},"end":{"line":18,"character":40}}},{"name":"(*ExampleTestSuite).TestExample","detail":"func()","kind":6,"range":{"start":{"line":24,"character":0},"end":{"line":28,"character":1}},"selectionRange":{"start":{"line":24,"character":31},"end":{"line":24,"character":42}}},{"name":"TestExampleTestSuite","detail":"func(t *testing.T)","kind":12,"range":{"start":{"line":32,"character":0},"end":{"line":34,"character":1}},"selectionRange":{"start":{"line":32,"character":5},"end":{"line":32,"character":25}}}]

[Trace - 11:12:00.502 AM] Received response 'textDocument/documentSymbol - (4)' in 706ms.
Result: [{"name":"ExampleTestSuite","detail":"struct{...}","kind":23,"range":{"start":{"line":11,"character":5},"end":{"line":14,"character":1}},"selectionRange":{"start":{"line":11,"character":5},"end":{"line":11,"character":21}},"children":[{"name":"Suite","detail":"suite.Suite","kind":8,"range":{"start":{"line":12,"character":1},"end":{"line":12,"character":12}},"selectionRange":{"start":{"line":12,"character":7},"end":{"line":12,"character":12}}},{"name":"VariableThatShouldStartAtFive","detail":"int","kind":8,"range":{"start":{"line":13,"character":1},"end":{"line":13,"character":34}},"selectionRange":{"start":{"line":13,"character":1},"end":{"line":13,"character":30}}}]},{"name":"(*ExampleTestSuite).SetupTest","detail":"func()","kind":6,"range":{"start":{"line":18,"character":0},"end":{"line":20,"character":1}},"selectionRange":{"start":{"line":18,"character":31},"end":{"line":18,"character":40}}},{"name":"(*ExampleTestSuite).TestExample","detail":"func()","kind":6,"range":{"start":{"line":24,"character":0},"end":{"line":28,"character":1}},"selectionRange":{"start":{"line":24,"character":31},"end":{"line":24,"character":42}}},{"name":"TestExampleTestSuite","detail":"func(t *testing.T)","kind":12,"range":{"start":{"line":32,"character":0},"end":{"line":34,"character":1}},"selectionRange":{"start":{"line":32,"character":5},"end":{"line":32,"character":25}}}]
[Trace - 11:12:00.503 AM] Sending request 'workspace/executeCommand - (12)'.
Params: {"command":"gopls.list_imports","arguments":[{"URI":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/suite_test.go"}]}
[Trace - 11:12:00.504 AM] Received response 'textDocument/documentLink - (5)' in 676ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":9}},"target":"https://pkg.go.dev/testing"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":35}},"target":"https://pkg.go.dev/github.com/stretchr/[email protected]/suite"},{"range":{"start":{"line":31,"character":48},"end":{"line":31,"character":57}},"target":"https://suite.run/"}]
2) Run test at cursor in different file than test suite definition
[Trace - 11:12:01.735 AM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go","languageId":"go","version":1,"text":"package main_test\r\n\r\nfunc (suite *ExampleTestSuite) TestExampleInAnotherFile() {\r\n\tif suite.VariableThatShouldStartAtFive != 5 {\r\n\t\tsuite.T().Fatalf("%d != %d", 5, suite.VariableThatShouldStartAtFive)\r\n\t}\r\n}\r\n"}}
[Trace - 11:12:01.744 AM] Sending notification '$/cancelRequest'.
Params: {"id":8}
[Trace - 11:12:01.744 AM] Sending notification '$/cancelRequest'.
Params: {"id":7}
[Trace - 11:12:01.745 AM] Sending notification '$/cancelRequest'.
Params: {"id":9}
[Trace - 11:12:01.745 AM] Sending notification '$/cancelRequest'.
Params: {"id":6}
[Trace - 11:12:01.745 AM] Sending notification '$/cancelRequest'.
Params: {"id":10}
[Error - Received] 11:12:01.746 AM #6 getting file for InlayHint: context canceled
[Error - 11:12:01 AM] Request textDocument/inlayHint failed.
Message: getting file for InlayHint: context canceled
Code: 0
[Error - Received] 11:12:01.747 AM #7 JSON RPC cancelled
[Error - Received] 11:12:01.747 AM #8 JSON RPC cancelled
[Error - Received] 11:12:01.747 AM #9 JSON RPC cancelled
[Error - Received] 11:12:01.747 AM #10 JSON RPC cancelled
[Trace - 11:12:01.762 AM] Sending request 'textDocument/documentHighlight - (13)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/codelens/codelens_test.go"},"position":{"line":0,"character":0}}
[Trace - 11:12:01.763 AM] Sending request 'textDocument/codeAction - (14)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 11:12:01.763 AM] Sending request 'textDocument/documentSymbol - (15)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:01.772 AM] Sending request 'textDocument/documentSymbol - (16)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:01.822 AM] Sending request 'textDocument/documentLink - (17)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:01.836 AM] Sending request 'textDocument/inlayHint - (18)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":7,"character":0}}}
[Trace - 11:12:01.836 AM] Sending notification '$/cancelRequest'.
Params: {"id":13}
[Trace - 11:12:01.864 AM] Sending request 'textDocument/semanticTokens/range - (19)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":7,"character":0}}}
[Trace - 11:12:01.984 AM] Sending request 'textDocument/foldingRange - (20)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:02.015 AM] Sending request 'textDocument/codeLens - (21)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:02.062 AM] Sending request 'textDocument/codeAction - (22)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"},"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 11:12:02.063 AM] Sending notification '$/cancelRequest'.
Params: {"id":14}
[Trace - 11:12:02.159 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #2\n\tsnapshot=6\n\tdirectory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite\n\tquery=[file=D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens2_test.go]\n\tpackages=1\n"}
[Trace - 11:12:02.159 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #2\n\tsnapshot=6\n\tdirectory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite\n\tpackage="command-line-arguments [command-line-arguments.test]"\n\tfiles=[D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens2_test.go]\n"}
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #2
snapshot=6
directory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite
query=[file=D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens2_test.go]
packages=1
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #2
snapshot=6
directory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite
package="command-line-arguments [command-line-arguments.test]"
files=[D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens2_test.go]
[Trace - 11:12:02.161 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #2: updating metadata for 1 packages\n"}
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #2: updating metadata for 1 packages
[Trace - 11:12:02.297 AM] Sending request 'textDocument/semanticTokens/full - (23)'.
Params: {"textDocument":{"uri":"file:///d%3A/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite/another_suite_test.go"}}
[Trace - 11:12:02.970 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #3\n\tsnapshot=6\n\tdirectory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite\n\tquery=[file=D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens_benchmark_test.go]\n\tpackages=1\n"}
[Trace - 11:12:02.970 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #3\n\tsnapshot=6\n\tdirectory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite\n\tpackage="command-line-arguments [command-line-arguments.test]"\n\tfiles=[D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens_benchmark_test.go]\n"}
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #3
snapshot=6
directory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite
query=[file=D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens_benchmark_test.go]
packages=1
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #3
snapshot=6
directory=file:///D:/a/vscode-go/vscode-go/extension/test/testdata/stretchrTestSuite
package="command-line-arguments [command-line-arguments.test]"
files=[D:\a\vscode-go\vscode-go\extension\test\testdata\codelens\codelens_benchmark_test.go]
[Trace - 11:12:02.972 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2024/02/13 11:12:02 go/packages.Load #3: updating metadata for 1 packages\n"}
[Info - 11:12:02 AM] 2024/02/13 11:12:02 go/packages.Load #3: updating metadata for 1 packages
✔ Debug test at cursor (1942ms)
✔ Debug test at cursor in different file than test suite definition (72ms)

</details>
@hyangah hyangah added the chore/testing issues related to bugs in test, CI setup label Feb 13, 2024
@gopherbot gopherbot added this to the Untriaged milestone Feb 13, 2024
@gopherbot
Copy link
Collaborator

Change https://go.dev/cl/563695 mentions this issue: extension/test/gopls: allow more time for testify tests

@findleyr findleyr modified the milestones: Untriaged, v0.42.0 Feb 14, 2024
@golang golang locked and limited conversation to collaborators Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chore/testing issues related to bugs in test, CI setup FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants