Skip to content

x/tools/gopls/internal/lsp/cmd/test: TestSignature failures #59895

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 Apr 29, 2023 · 6 comments
Closed

x/tools/gopls/internal/lsp/cmd/test: TestSignature failures #59895

gopherbot opened this issue Apr 29, 2023 · 6 comments
Assignees
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
Contributor

gopherbot commented Apr 29, 2023

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/internal/lsp/cmd/test" && test == "TestSignature" && date < "2023-06-01"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestSignature (12.26s)
    integration_test.go:521: gopls signature a.go:4:15: exited with code 2, want success: true (gopls signature a.go:4:15: exit=2 stdout=<<>> stderr=<<panic: /tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:82: internal error in filecache.Get("export", 776512d931aa3852849cbce8f48f3e56d775c2d86076f95b905cbe57f0a47846): invalid checksum at end of 2418-byte file /Users/gopher/Library/Caches/gopls/b795e6b4/export/77/776512d931aa3852849cbce8f48f3e56d775c2d86076f95b905cbe57f0a47846:
        "f\t\x00\x00\x00\x00\x00\x00\x02\xd6\x06\xe4\x01\a\x00\x85\x01\x97\x01\xa7\x01\xb6\x01\xc6\x01\xd5\x01\xf1\b\x00\x04Info\bFileInfo\x05IsDir\x04Name\x04Type\bFileMode\x04Open\x04name\x04File\x05Close\x04Read\x04Stat\aModTime\x04Time\x04time\x04Mode\x04Size\x03Sys\x04info\bDirEntry\x06String\x01m\tIsRegular\x04Perm\x04fsys\x02FS\apattern\amatches\x03err\x04Glob\x02Op\x04Path\x03Err\x05Error\x01e\tPathError\x06Unwrap\aTimeout\aReadDir\x01n\bReadFile\x03dir\x03Sub\x04root\x02fn\vWalkDirFunc\x04path\x01d /tmp/buildlet/go/src/io/fs/fs.go%/tmp/buildlet/go/src/io/fs/readdir.go\"/tmp/buildlet/go/src/io/fs/glob.go&/tmp/buildlet/go/src/io/fs/readfile.go\"/tmp/buildlet/go/src/io/fs/walk.go\"/tmp/buildlet/go/src/io/fs/stat.go!/tmp/buildlet/go/src/io/fs/sub.go\x02fs\tErrClosed\bErrExist\nErrInvalid\vErrNotExist\rErrPermission\x12FileInfoToDirEntry\x06GlobFS\nModeAppend\x0eModeCharDevice\nModeDevice\aModeDir\rModeExclusive\rModeIrregular\rModeNamedPipe\bModePerm\nModeSetgid\nModeSetuid\nModeSocket\nModeSticky\vModeSymlink\rModeTemporary\bModeType\tReadDirFS\vReadDirFile\nReadFileFS\aSkipDir\x06StatFS\x05SubFS\tValidPath\aWalkDir\x91\x02\xb3I\x82\x026\x14\x83\x05\n\x87\x03\x10\xf7\x05\x1f\xa1\x05\x01\x16\x01\x1a\x01\x1b\x05\x85\x01\x04\x8e\x02\x03K\x04\xa4\x01\b\xdd\x03\a\xb0\x02\x12\xfb\x06\a\xa6\x01\x017\x018\x01:\x01:\n\x94\x03\x01\x1a\x01.\x01W\x01'\x01*\x018\b\xe4\x02\n\xd9\x03\x01E\x01B\x01D\x01R\x01D\x01B\x01H\x01I\x01=\x01=\x01d\x01=\x03\xb0\x01\x02n\x035\x1c\x81\x04\x06\xa9\x01\x05~\x05k\x05\x8a\x01\x01\x18\x01\r\x01\r\x03\x0f\x02Z\x03q\xb2\x02\xad\x0eM\x04\r\xbe\x02\x05\x86\x01\t\xa4\x02,\xcf\a\xd8\x02\x89\x19\x81\x01\x03\v\xf1\x01\x06\x9b\x01\x0f\xd8\x04\xfb\x02\xa0\x0eB\x03\n\xaf\x02\n\x95\x03\v\xc6\x03\xa2\x03\x99$\x81\x01\x03\x0e\xfa\x02.\xf4\x110\xd8\n\xc5\x03\x9d\x06\x1f\x03\a\xdd\x01\x05\x89\x01\a\xd4\x01\xe8\x03\xf5\x1c\x8a\x01\x03\f\xf9\x01\x04^\x11\xea\x06\x00\x06\x00\x00\x1f\x00\b\x00\x00\x04\x01\xcd\x1c\x01\x00\x02\x01\xd5\x1c\x00 \x01\xdf\x1c\x00\x13\x01\xcc\x17\x0f\x00\x01\x01\xd4\x17\x00\x00\x01\x81\x17\x15\x00\x01\x01\x88\x17\x00\x10\x01\xf0\x18\x1a\x00\x01\x01\xf7\x18\x00#T\x01\xf7\x14&V\x01\x81)\x13V\x01\x8d(\x13V\x01\x9e'\x13V\x01\xc7(\x13V\x01\xd5'\x13\x002\x00\b\x00\x00\x01\x01\x8b\b(\x01\x01\x90\b-\x10\x02\x01\x9e\b\x00y\x01\xa4\b\x00\x13\x00T\x01\x88\x05|\x02\x11\b\x00\x00\x03\x01\xee\x137\x00\x01\x01\xf6\x13\x00\x13\x01\xd3\x13=\x01\x01\xd8\x13\x00\x9b\x01\x02\x01\xe1\x13\x00\x01\x01\xe6\x13\x00\x13\x00\x01\xb9\x13B\x00\x02\x01\xc1\x13\x00 \x01\xcb\x13\x00\x13T\x01\xa7\x13\x9d\x01\x00OT\b\x00\x00\x06\x01\x85.\x0f\x00\x01\x01\x8d.\x00\x00\x01\xdb-G\x00\x01\x01\xe5-\x00\xd9\x01\x01\xb4-Y\x00\x01\x01\xbb-\x00#\x01\xaf,\x15\x00\x01\x01\xb6,\x00\x10\x01\xdd,^\x00\x01\x01\xe4,\x00\x05\x01\xbd.c\x00\x01\x01\xc3.\x00\x1fT\x01\x99,\xdc\x01\x00l\x00F\x02\xbc\r\x01\x02\xcf\rg \x01\x02\xde\r\x00\xa9\x02\x00T\x01\xa51\t\x05\x01\xad>u\x01\xa1>|#\x00\x01\x01\xb6>\x00\x10\x01\xaeB\x0f\x01\xa2B|#\x00\x01\x01\xb6B\x00\x00\x01\xd7C~\x01\xcbC|#\x00\x01\x01\xe3C\x00\x00\x01\xd5D\x88\x01\x01\xc9D|#\x00\x01\x01\xdcD\x00#\x01\xc0E\x1a\x01\xb4E|#\x00\x01\x01\xc7E\x00#\x00\x92\x01\x00\x02\x10F\x03\xe9\a\x02\x03\xee\a\x8d\x01\x95\x03\x03\xf7\a\x95\x01\x10\x02\x03\x88\b\x9d\x01\x99\x03\x03\x9a\b\xa5\x01\x13\x00\x02\x10\b\x00\x01\x01\x88\x05\x95\x03\x01\x03\x8d\x03\xa9\x01\x01\x03\x92\x03\x95\x01\x10\x02\x03\xa3\x03\x00\xbc\x03\x03\xad\x03\x00\x13\x00T\x03\xf6\x01\xbe\x03C\x01\xbf5#\x06\xfc@\x00\x00\x00C\x01\xa8:#\x06\xfd \x00\x00C\x01\xdb7#\x06\xfc\x04\x00\x00\x00C\x01\xfa4#\x06\xfc\x80\x00\x00\x00C\x01\x816#\x06\xfc \x00\x00\x00C\x01\xc9;#\x06\xfd\b\x00\x00C\x01\x9d8#\x06\xfc\x02\x00\x00\x00C\x01\xe7=#\x06\xfe\x01\xffC\x01\xeb9#\x06\xfd@\x00\x00C\x01\xae9#\x06\xfd\x80\x00\x00C\x01\xe58#\x06\xfc\x01\x00\x00\x00C\x01\x8c;#\x06\xfd\x10\x00\x00C\x01\x977#\x06\xfc\b\x00\x00\x00C\x01\xc56#\x06\xfc\x10\x00\x00\x00C\x01\xf9<#\x06\xfc\x8f(\x00\x00\a\x00\x03\x01\xd1F\xae\x01\x10\x00\x00\x01\xdeF\xb1\x01\x10\x00\x00\x01\xebF\xb6\x01\x13\x00\x00\x00\xc2\x01\x00\x01\x9f\x05\x01\x9f\x05\x01\x9f\x05T\x01\xbdF\x84\x05\x03\x01\x8dG\xba\x01\x01\xffF\xc0\x01\xa3\x05\x00\x01\x01\x95G\x00\x10\x01\xe7G\xcc\x01\x01\xd9G\xc0\x01\xa6\x05\x00\x01\x01\xf0G\x00\x13\x01\xd8H\xd3\x01\x01\xcaH\xc0\x01\xa9\x05\x00\x01\x01\xe2H\x00\x00\x02\xa9\x02F\x02\xed\x05\x02\x02\xf5\x05\x8d\x01\x95\x03\x02\xfe\x05-\x10\x02\x02\x8c\x06\x00\xec\x05\x02\x98\x06\x00\x13\x00\x02\xa9\x02\b\x00\x01\x01\x88\x05\x95\x03\x01\x02\xc5\x03\xdb\x01\x01\x02\xcd\x03-\x10\x02\x02\xdb\x03\x00\x8d\x06\x02\xe7\x03\x00\x13\x00T\x02\xc3\x02\x90\x06\x02\xa9\x02\b\x00\x01\x01\xa7\x13y\x01\x01\xf8%\xdb\x01\x01\x01\x80&\xe3\x01\x01\x02\x01\x88&\x00\xb7\x06\x01\x94&\x00\x13\x00T\x01\x81\x1f\xba\x06\x02\x11F\x04\x8f\t\x02\x04\x98\t\x8d\x01\x95\x03\x04\xa1\t-\x10\x02\x04\xaf\t\x00\xe1\x06\x04\xb7\t\x00\x13\x00\x02\x11\b\x00\x01\x01\x88\x05\x95\x03\x01\x04\xc5\x05\xe5\x01\x01\x04\xce\x05-\x10\x02\x04\xdc\x05\x00\x81\a\x04\xe4\x05\x00\x13\x00T\x04\xb4\x02\x83\aV\x05\xfe\x02\x13F\x06\xbf\x04\x02\x06\xc4\x04\x8d\x01\x95\x03\x06\xcd\x04-\x10\x02\x06\xdb\x04\x00 \x06\xe5\x04\x00\x13\x00\b\x00\x01\x01\x88\x05\x95\x03\x01\x06\xe7\x02B\x01\x06\xec\x02-\x10\x02\x06\xfa\x02\x00 \x06\x84\x03\x00\x13\x00T\x06\xe2\x01\xcc\aF\a\xc6\t\x02\a\xca\t\x8d\x01\x95\x03\a\xd3\t\xee\x01\x10\x02\a\xe0\t\x00\x95\x03\a\xe4\t\x00\x13\x00\b\x00\x01\x01\x88\x05\x95\x03\x01\a\xd8\x02\xf2\x01\x01\a\xdc\x02\xee\x01\x10\x02\a\xe9\x02\x00\x95\x03\a\xed\x02\x00\x13\x00T\a\xfe\x01\x90\bF\x01\x86\x0e\x01\x01\x90\x0e-\x10\x01\x01\x9d\x0e\x00\x00\x00\x00\xfe\x01\x00F\x05\xcb\x1f\x03\x05\xd3\x1f\x8d\x01\x95\x03\x05\xdc\x1f\xf6\x01\x10\x05\xe9\x1f\xfb\x01\xc9\b\x01\x05\xf9\x1f\x00\x13\x00\x06\x00\x03\x05\x84\x15\x8a\x02\x10\x05\x91\x15\x8f\x02\xa9\x02\x05\x9d\x15\xa5\x01\x13\x01\x05\xa8\x15\x00\x13\x00T\x05\xf3\x14\xed\b\x00\x02\x00\x8a\x04\x00*l;\x8d\x04@\x97\x04E\xa0\x04J\xab\x04O\xb7\x04T\x92\x01v2\xb3\x01\x06\x83\x02\xc5\x04\x8c\x02\x1f\x9e\x02\xa9\x01\xfb\x02\xd8\x04\xc0\x03\xdf\x04\xc6\x03\xea\x04\xd1\x03\xf9\x04\xdb\x03\x84\x05\xe6\x03\x8c\x05\xf1\x03\x9a\x05\xfc\x03\xa8\x05\x86\x04\xb6\x05\x91\x04\xbf\x05\x9a\x04\xca\x05\xa4\x04\xd5\x05\xae\x04\xe0\x05\xb9\x04\xeb\x05\xc3\x04\xf7\x05\xce\x04\x85\x06\xd9\x04\xc2\x01\x8c\x05\xdb\x01\xcf\x05\x8e\x06\x91\x06\x98\x06\xbb\x06\xe5\x01\xc3\x06\xa4\x06\x84\a\xaf\x06\x8a\aB\x8f\a\xb7\x06\xcb\a\xf2\x01\xd1\a\xbe\x06\x92\b\xc4\x06\x98\b\xce\x06\xad\b\xfe\x01\xea\bTT\x00\x00\x00\x00\x00\x00"

        goroutine 747 [running]:
        golang.org/x/tools/gopls/internal/bug.report({0xc002195a80, 0x1a32})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:71 +0x479
        golang.org/x/tools/gopls/internal/bug.Errorf({0x100b77a49?, 0x972?}, {0xc001001db0?, 0x4678a4f057be5c90?, 0x100b154e5?})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:52 +0x3d
        golang.org/x/tools/gopls/internal/lsp/filecache.Get({0x100b154e5, 0x6}, {0x77, 0x65, 0x12, 0xd9, 0x31, 0xaa, 0x38, 0x52, ...})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:82 +0x305
        golang.org/x/tools/gopls/internal/lsp/cache.(*typeCheckBatch).getImportPackage(0xc00013c320, {0x100dbfde0, 0xc0008b2210}, {0xc00090ea77, 0x5})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:456 +0x4b4
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).forEachPackageInternal.func1()
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:393 +0x2d
        golang.org/x/sync/errgroup.(*Group).Go.func1()
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
        created by golang.org/x/sync/errgroup.(*Group).Go
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
        >>)
    integration_test.go:522: gopls signature a.go:4:15: stdout does not match [Println\(a ...]; got <<>>
    integration_test.go:523: gopls signature a.go:4:15: stdout does not match [Println formats using the default formats...]; got <<>>

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 Apr 29, 2023
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/internal/lsp/cmd/test" && test == "TestSignature"
2023-04-28 17:21 darwin-amd64-12_0 tools@ab24b7b9 go@c3c53a2c x/tools/gopls/internal/lsp/cmd/test.TestSignature (log)
--- FAIL: TestSignature (12.26s)
    integration_test.go:521: gopls signature a.go:4:15: exited with code 2, want success: true (gopls signature a.go:4:15: exit=2 stdout=<<>> stderr=<<panic: /tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:82: internal error in filecache.Get("export", 776512d931aa3852849cbce8f48f3e56d775c2d86076f95b905cbe57f0a47846): invalid checksum at end of 2418-byte file /Users/gopher/Library/Caches/gopls/b795e6b4/export/77/776512d931aa3852849cbce8f48f3e56d775c2d86076f95b905cbe57f0a47846:
        "f\t\x00\x00\x00\x00\x00\x00\x02\xd6\x06\xe4\x01\a\x00\x85\x01\x97\x01\xa7\x01\xb6\x01\xc6\x01\xd5\x01\xf1\b\x00\x04Info\bFileInfo\x05IsDir\x04Name\x04Type\bFileMode\x04Open\x04name\x04File\x05Close\x04Read\x04Stat\aModTime\x04Time\x04time\x04Mode\x04Size\x03Sys\x04info\bDirEntry\x06String\x01m\tIsRegular\x04Perm\x04fsys\x02FS\apattern\amatches\x03err\x04Glob\x02Op\x04Path\x03Err\x05Error\x01e\tPathError\x06Unwrap\aTimeout\aReadDir\x01n\bReadFile\x03dir\x03Sub\x04root\x02fn\vWalkDirFunc\x04path\x01d /tmp/buildlet/go/src/io/fs/fs.go%/tmp/buildlet/go/src/io/fs/readdir.go\"/tmp/buildlet/go/src/io/fs/glob.go&/tmp/buildlet/go/src/io/fs/readfile.go\"/tmp/buildlet/go/src/io/fs/walk.go\"/tmp/buildlet/go/src/io/fs/stat.go!/tmp/buildlet/go/src/io/fs/sub.go\x02fs\tErrClosed\bErrExist\nErrInvalid\vErrNotExist\rErrPermission\x12FileInfoToDirEntry\x06GlobFS\nModeAppend\x0eModeCharDevice\nModeDevice\aModeDir\rModeExclusive\rModeIrregular\rModeNamedPipe\bModePerm\nModeSetgid\nModeSetuid\nModeSocket\nModeSticky\vModeSymlink\rModeTemporary\bModeType\tReadDirFS\vReadDirFile\nReadFileFS\aSkipDir\x06StatFS\x05SubFS\tValidPath\aWalkDir\x91\x02\xb3I\x82\x026\x14\x83\x05\n\x87\x03\x10\xf7\x05\x1f\xa1\x05\x01\x16\x01\x1a\x01\x1b\x05\x85\x01\x04\x8e\x02\x03K\x04\xa4\x01\b\xdd\x03\a\xb0\x02\x12\xfb\x06\a\xa6\x01\x017\x018\x01:\x01:\n\x94\x03\x01\x1a\x01.\x01W\x01'\x01*\x018\b\xe4\x02\n\xd9\x03\x01E\x01B\x01D\x01R\x01D\x01B\x01H\x01I\x01=\x01=\x01d\x01=\x03\xb0\x01\x02n\x035\x1c\x81\x04\x06\xa9\x01\x05~\x05k\x05\x8a\x01\x01\x18\x01\r\x01\r\x03\x0f\x02Z\x03q\xb2\x02\xad\x0eM\x04\r\xbe\x02\x05\x86\x01\t\xa4\x02,\xcf\a\xd8\x02\x89\x19\x81\x01\x03\v\xf1\x01\x06\x9b\x01\x0f\xd8\x04\xfb\x02\xa0\x0eB\x03\n\xaf\x02\n\x95\x03\v\xc6\x03\xa2\x03\x99$\x81\x01\x03\x0e\xfa\x02.\xf4\x110\xd8\n\xc5\x03\x9d\x06\x1f\x03\a\xdd\x01\x05\x89\x01\a\xd4\x01\xe8\x03\xf5\x1c\x8a\x01\x03\f\xf9\x01\x04^\x11\xea\x06\x00\x06\x00\x00\x1f\x00\b\x00\x00\x04\x01\xcd\x1c\x01\x00\x02\x01\xd5\x1c\x00 \x01\xdf\x1c\x00\x13\x01\xcc\x17\x0f\x00\x01\x01\xd4\x17\x00\x00\x01\x81\x17\x15\x00\x01\x01\x88\x17\x00\x10\x01\xf0\x18\x1a\x00\x01\x01\xf7\x18\x00#T\x01\xf7\x14&V\x01\x81)\x13V\x01\x8d(\x13V\x01\x9e'\x13V\x01\xc7(\x13V\x01\xd5'\x13\x002\x00\b\x00\x00\x01\x01\x8b\b(\x01\x01\x90\b-\x10\x02\x01\x9e\b\x00y\x01\xa4\b\x00\x13\x00T\x01\x88\x05|\x02\x11\b\x00\x00\x03\x01\xee\x137\x00\x01\x01\xf6\x13\x00\x13\x01\xd3\x13=\x01\x01\xd8\x13\x00\x9b\x01\x02\x01\xe1\x13\x00\x01\x01\xe6\x13\x00\x13\x00\x01\xb9\x13B\x00\x02\x01\xc1\x13\x00 \x01\xcb\x13\x00\x13T\x01\xa7\x13\x9d\x01\x00OT\b\x00\x00\x06\x01\x85.\x0f\x00\x01\x01\x8d.\x00\x00\x01\xdb-G\x00\x01\x01\xe5-\x00\xd9\x01\x01\xb4-Y\x00\x01\x01\xbb-\x00#\x01\xaf,\x15\x00\x01\x01\xb6,\x00\x10\x01\xdd,^\x00\x01\x01\xe4,\x00\x05\x01\xbd.c\x00\x01\x01\xc3.\x00\x1fT\x01\x99,\xdc\x01\x00l\x00F\x02\xbc\r\x01\x02\xcf\rg \x01\x02\xde\r\x00\xa9\x02\x00T\x01\xa51\t\x05\x01\xad>u\x01\xa1>|#\x00\x01\x01\xb6>\x00\x10\x01\xaeB\x0f\x01\xa2B|#\x00\x01\x01\xb6B\x00\x00\x01\xd7C~\x01\xcbC|#\x00\x01\x01\xe3C\x00\x00\x01\xd5D\x88\x01\x01\xc9D|#\x00\x01\x01\xdcD\x00#\x01\xc0E\x1a\x01\xb4E|#\x00\x01\x01\xc7E\x00#\x00\x92\x01\x00\x02\x10F\x03\xe9\a\x02\x03\xee\a\x8d\x01\x95\x03\x03\xf7\a\x95\x01\x10\x02\x03\x88\b\x9d\x01\x99\x03\x03\x9a\b\xa5\x01\x13\x00\x02\x10\b\x00\x01\x01\x88\x05\x95\x03\x01\x03\x8d\x03\xa9\x01\x01\x03\x92\x03\x95\x01\x10\x02\x03\xa3\x03\x00\xbc\x03\x03\xad\x03\x00\x13\x00T\x03\xf6\x01\xbe\x03C\x01\xbf5#\x06\xfc@\x00\x00\x00C\x01\xa8:#\x06\xfd \x00\x00C\x01\xdb7#\x06\xfc\x04\x00\x00\x00C\x01\xfa4#\x06\xfc\x80\x00\x00\x00C\x01\x816#\x06\xfc \x00\x00\x00C\x01\xc9;#\x06\xfd\b\x00\x00C\x01\x9d8#\x06\xfc\x02\x00\x00\x00C\x01\xe7=#\x06\xfe\x01\xffC\x01\xeb9#\x06\xfd@\x00\x00C\x01\xae9#\x06\xfd\x80\x00\x00C\x01\xe58#\x06\xfc\x01\x00\x00\x00C\x01\x8c;#\x06\xfd\x10\x00\x00C\x01\x977#\x06\xfc\b\x00\x00\x00C\x01\xc56#\x06\xfc\x10\x00\x00\x00C\x01\xf9<#\x06\xfc\x8f(\x00\x00\a\x00\x03\x01\xd1F\xae\x01\x10\x00\x00\x01\xdeF\xb1\x01\x10\x00\x00\x01\xebF\xb6\x01\x13\x00\x00\x00\xc2\x01\x00\x01\x9f\x05\x01\x9f\x05\x01\x9f\x05T\x01\xbdF\x84\x05\x03\x01\x8dG\xba\x01\x01\xffF\xc0\x01\xa3\x05\x00\x01\x01\x95G\x00\x10\x01\xe7G\xcc\x01\x01\xd9G\xc0\x01\xa6\x05\x00\x01\x01\xf0G\x00\x13\x01\xd8H\xd3\x01\x01\xcaH\xc0\x01\xa9\x05\x00\x01\x01\xe2H\x00\x00\x02\xa9\x02F\x02\xed\x05\x02\x02\xf5\x05\x8d\x01\x95\x03\x02\xfe\x05-\x10\x02\x02\x8c\x06\x00\xec\x05\x02\x98\x06\x00\x13\x00\x02\xa9\x02\b\x00\x01\x01\x88\x05\x95\x03\x01\x02\xc5\x03\xdb\x01\x01\x02\xcd\x03-\x10\x02\x02\xdb\x03\x00\x8d\x06\x02\xe7\x03\x00\x13\x00T\x02\xc3\x02\x90\x06\x02\xa9\x02\b\x00\x01\x01\xa7\x13y\x01\x01\xf8%\xdb\x01\x01\x01\x80&\xe3\x01\x01\x02\x01\x88&\x00\xb7\x06\x01\x94&\x00\x13\x00T\x01\x81\x1f\xba\x06\x02\x11F\x04\x8f\t\x02\x04\x98\t\x8d\x01\x95\x03\x04\xa1\t-\x10\x02\x04\xaf\t\x00\xe1\x06\x04\xb7\t\x00\x13\x00\x02\x11\b\x00\x01\x01\x88\x05\x95\x03\x01\x04\xc5\x05\xe5\x01\x01\x04\xce\x05-\x10\x02\x04\xdc\x05\x00\x81\a\x04\xe4\x05\x00\x13\x00T\x04\xb4\x02\x83\aV\x05\xfe\x02\x13F\x06\xbf\x04\x02\x06\xc4\x04\x8d\x01\x95\x03\x06\xcd\x04-\x10\x02\x06\xdb\x04\x00 \x06\xe5\x04\x00\x13\x00\b\x00\x01\x01\x88\x05\x95\x03\x01\x06\xe7\x02B\x01\x06\xec\x02-\x10\x02\x06\xfa\x02\x00 \x06\x84\x03\x00\x13\x00T\x06\xe2\x01\xcc\aF\a\xc6\t\x02\a\xca\t\x8d\x01\x95\x03\a\xd3\t\xee\x01\x10\x02\a\xe0\t\x00\x95\x03\a\xe4\t\x00\x13\x00\b\x00\x01\x01\x88\x05\x95\x03\x01\a\xd8\x02\xf2\x01\x01\a\xdc\x02\xee\x01\x10\x02\a\xe9\x02\x00\x95\x03\a\xed\x02\x00\x13\x00T\a\xfe\x01\x90\bF\x01\x86\x0e\x01\x01\x90\x0e-\x10\x01\x01\x9d\x0e\x00\x00\x00\x00\xfe\x01\x00F\x05\xcb\x1f\x03\x05\xd3\x1f\x8d\x01\x95\x03\x05\xdc\x1f\xf6\x01\x10\x05\xe9\x1f\xfb\x01\xc9\b\x01\x05\xf9\x1f\x00\x13\x00\x06\x00\x03\x05\x84\x15\x8a\x02\x10\x05\x91\x15\x8f\x02\xa9\x02\x05\x9d\x15\xa5\x01\x13\x01\x05\xa8\x15\x00\x13\x00T\x05\xf3\x14\xed\b\x00\x02\x00\x8a\x04\x00*l;\x8d\x04@\x97\x04E\xa0\x04J\xab\x04O\xb7\x04T\x92\x01v2\xb3\x01\x06\x83\x02\xc5\x04\x8c\x02\x1f\x9e\x02\xa9\x01\xfb\x02\xd8\x04\xc0\x03\xdf\x04\xc6\x03\xea\x04\xd1\x03\xf9\x04\xdb\x03\x84\x05\xe6\x03\x8c\x05\xf1\x03\x9a\x05\xfc\x03\xa8\x05\x86\x04\xb6\x05\x91\x04\xbf\x05\x9a\x04\xca\x05\xa4\x04\xd5\x05\xae\x04\xe0\x05\xb9\x04\xeb\x05\xc3\x04\xf7\x05\xce\x04\x85\x06\xd9\x04\xc2\x01\x8c\x05\xdb\x01\xcf\x05\x8e\x06\x91\x06\x98\x06\xbb\x06\xe5\x01\xc3\x06\xa4\x06\x84\a\xaf\x06\x8a\aB\x8f\a\xb7\x06\xcb\a\xf2\x01\xd1\a\xbe\x06\x92\b\xc4\x06\x98\b\xce\x06\xad\b\xfe\x01\xea\bTT\x00\x00\x00\x00\x00\x00"

        goroutine 747 [running]:
        golang.org/x/tools/gopls/internal/bug.report({0xc002195a80, 0x1a32})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:71 +0x479
        golang.org/x/tools/gopls/internal/bug.Errorf({0x100b77a49?, 0x972?}, {0xc001001db0?, 0x4678a4f057be5c90?, 0x100b154e5?})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:52 +0x3d
        golang.org/x/tools/gopls/internal/lsp/filecache.Get({0x100b154e5, 0x6}, {0x77, 0x65, 0x12, 0xd9, 0x31, 0xaa, 0x38, 0x52, ...})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:82 +0x305
        golang.org/x/tools/gopls/internal/lsp/cache.(*typeCheckBatch).getImportPackage(0xc00013c320, {0x100dbfde0, 0xc0008b2210}, {0xc00090ea77, 0x5})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:456 +0x4b4
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).forEachPackageInternal.func1()
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:393 +0x2d
        golang.org/x/sync/errgroup.(*Group).Go.func1()
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
        created by golang.org/x/sync/errgroup.(*Group).Go
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
        >>)
    integration_test.go:522: gopls signature a.go:4:15: stdout does not match [Println\(a ...]; got <<>>
    integration_test.go:523: gopls signature a.go:4:15: stdout does not match [Println formats using the default formats...]; got <<>>

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 Apr 29, 2023
@gopherbot gopherbot added this to the Unreleased milestone Apr 29, 2023
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/internal/lsp/cmd/test" && test == "TestSignature"
2023-05-02 16:53 darwin-amd64-nocgo tools@2415ce15 go@337dd753 x/tools/gopls/internal/lsp/cmd/test.TestSignature (log)
--- FAIL: TestSignature (12.75s)
    integration_test.go:524: gopls signature a.go:4:15: exited with code 2, want success: true (gopls signature a.go:4:15: exit=2 stdout=<<>> stderr=<<panic: /tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:84: internal error in filecache.Get("export", bce6ce75dce3e2cdbabec065acc685bac8593c99d42d334ace5f0485f0430de3): invalid checksum at end of 5314-byte file /Users/gopher/Library/Caches/gopls/9f87c6c0/export/bc/bce6ce75dce3e2cdbabec065acc685bac8593c99d42d334ace5f0485f0430de3:
        "\xb6\x14\x00\x00\x00\x00\x00\x00\x02\xe8\x0e\xf4\x02\r\x00\v5\xb3\x01\xbc\x01\xed\x01\xf6\x01\xa9\x02\xbe\x02\xcd\x02\xd6\x02\xe2\x02\xeb\x02\xf3\x16\x00\bSockaddr\asyscall\x05Error\x01e\x15DeadlineExceededError\aTimeout\tTemporary\x02fd\rerrNetClosing\x04fdmu\afdMutex\x05Sysfd\x02pd\bpollDesc\x06iovecs\x05Iovec\x05csema\nisBlocking\bIsStream\rZeroReadIsEOF\x06isFile\x05Fsync\x02FD\x06incref\x06decref\breadLock\nreadUnlock\twriteLock\vwriteUnlock\aOpenDir\vSetDeadline\x01t\x04Time\x04time\x0fSetReadDeadline\x10SetWriteDeadline\beofError\x01n\x03err\bShutdown\x03how\x06Fchown\x03uid\x03gid\tFtruncate\x04size\nRawControl\x01f\x04Init\x03net\bpollable\adestroy\x05Close\vSetBlocking\x04Read\x01p\x05Pread\x03off\bReadFrom\rReadFromInet4\x04from\rSockaddrInet4\rReadFromInet6\rSockaddrInet6\aReadMsg\x03oob\x05flags\fReadMsgInet4\x03sa4\fReadMsgInet6\x03sa6\x05Write\x06Pwrite\fWriteToInet4\x02sa\fWriteToInet6\aWriteTo\bWriteMsg\rWriteMsgInet4\rWriteMsgInet6\x06Accept\x04Seek\x06offset\x06whence\nReadDirent\x03buf\x06Fchmod\x04mode\x06Fchdir\x05Fstat\x01s\x06Stat_t\x03Dup\tWaitWrite\tWriteOnce\aRawRead\bRawWrite\rSetsockoptInt\x05level\x04name\x03arg\x13SetsockoptInet4Addr\x10SetsockoptLinger\x01l\x06Linger\x0eSetsockoptByte\x10SetsockoptIPMreq\x04mreq\x06IPMreq\x12SetsockoptIPv6Mreq\bIPv6Mreq\x06Writev\x01v\x05dstFD\x03src\x03pos\x06remain\x05wrote\x05state\x05rsema\x05wsema\x02mu\x0eincrefAndClose\x06rwlock\x04read\brwunlock\nruntimeCtx\x04init\x05close\x05evict\aprepare\vprepareRead\fprepareWrite\x04wait\bwaitRead\twaitWrite\fwaitCanceled//tmp/buildlet/go/src/internal/poll/hook_unix.go(/tmp/buildlet/go/src/internal/poll/fd.go-/tmp/buildlet/go/src/internal/poll/fd_unix.go5/tmp/buildlet/go/src/internal/poll/fd_fsync_darwin.go./tmp/buildlet/go/src/internal/poll/fd_mutex.go7/tmp/buildlet/go/src/internal/poll/fd_opendir_darwin.go5/tmp/buildlet/go/src/internal/poll/fd_poll_runtime.go./tmp/buildlet/go/src/internal/poll/fd_posix.go-/tmp/buildlet/go/src/internal/poll/sockopt.go2/tmp/buildlet/go/src/internal/poll/sockopt_unix.go//tmp/buildlet/go/src/internal/poll/sockoptip.go,/tmp/buildlet/go/src/internal/poll/writev.go2/tmp/buildlet/go/src/internal/poll/sendfile_bsd.go\x04poll\nAcceptFunc\tCloseFunc\x0eDupCloseOnExec\x13ErrDeadlineExceeded\x0eErrFileClosing\rErrNetClosing\rErrNoDeadline\x0eErrNotPollable\x10IsPollDescriptor\bSendFile\x11TestHookDidWritev\xcb\b\xb5\x03\x0f\x02\v\x8e\x02\x03^\xfb\b\x8b\x16S\x0e\x11\xd1\x04\x06\xef\x01\x02U\x019\x04\x96\x01\x04\x7f\x04\xad\x01\f\xe3\x02\x03x\x06\xe6\x01\x01J\x01A\x04\xa3\x01\x11\xe1\x02\xa4\t\xa7\x99\x01\x9f\x06*\x11\xa3\x03\x02P\x03B\x03\x1c\x03 \x03F\x03H\x04\x8a\x01\x04u\x03N\b\xa4\x02\x14\xdb\x03\x13\xc3\x05\x1e\xe0\a\x14\xb5\x05#\xd8\x06\x1d\xd6\x04\x1b\xdd\x04\x1b\xe3\x04\x1b\xd3\x04\x1b\xe2\x05\x1b\xe6\x05\x1b\xbe\x05$\xb6\x05\"\xeb\x05\x1a\xcd\x04\x1a\xb5\x04\x1a\xaa\x04\x1a\xec\x04\x1a\xf9\x04\x1a\xde\x04\"\xf3\x05\v\xc6\x02\x15\xdb\x03\v\xe6\x01\t\xa8\x01\x0f\x95\x03!\x8b\a\v\x93\x02\x05\x88\x01\t\x80\x02\x13\x90\x03\xd2\t\xc3\x04\x15\x01\v\xf1\x02\x88\n\xac3\xfc\x01\x0f\v\xdd\x02\x01\x16\x01\x0e\x01\x0e&\xfd\t\x12\x86\x03\x1f\x9a\x06\x0f\x94\x03-\xf1\a'\xea\a\n\xf2\x01\t\xd6\x01\n\x97\x02\b\xc8\x01\n\x9a\x02\xb7\n\x96\a'\x01\x0e\x8c\x03\xef\n\x9d\x1f\xa9\x01\x11\x1f\xd4\x06\x01\x17\x051\n\xe3\x01\t\xc7\x01\aj\b\xb6\x01\x04X\x04Y\b\xde\x01\x04R\x04S\a\x84\x01\x1d\x9c\x05\x05\x98\x01\x05\x9a\x01\x19\xdb\x04\xa5\v\xf8\x0eO\x05\x0f\xc3\x02\b\xa6\x01\t\xbb\x01\v\xf1\x01\f\x98\x02\xd4\v\xa4\b$\x03\v\xa5\x02\t\x8e\x02\t\xa1\x02\x82\f\xe0\x03\x12\x01\v\x9b\x02\xb5\f\xb1\x06\x1b\x02\v\xab\x02\t\xaa\x02\xe5\f\x89\x0f\\\x01\x0f\x8f\x02\x92\r\xb4\n;\x01\x0f\x91\x03\x00\x01\n\x06\x00\x01\x01\x80\x03\x00\x01\x03\x01\x86\x03\x00\x01\x01\x8b\x03\x00 \x01\x9d\x03\x00\x13\x00V\x01\xf0\x02#\x06\x00\x01\x01\xa1\x02\x00\x01\x01\x01\xa6\x02\x00\x13\x00V\x01\x92\x02A\a\x00\x00\x00\x1a\x00\x01X\x01X\x01XT\x02\xf0\x0eU\x03\x02\xf1\x10\x12\x02\xd7\x10\x18[\x00\x01\x02\xf9\x10\x00\x10\x02\xbb\x110\x02\xa1\x11\x18]\x00\x01\x02\xc5\x11\x00\x00\x02\xfc\x118\x02\xe2\x11\x18_\x00\x01\x02\x88\x12\x00\x00F\x03\xb6\x85\x01\x01\x03Ņ\x01B\x01\x03\x03΅\x01\x00\x01\x03Ӆ\x01\x00\x10\x03ۅ\x01\x00\x13\x00V\x02\xf7\r\x13V\x02\xe7\t\x13\x00E\x00V\x02\xe8\b\xc1\x01V\x02\x94\v\x13V\x02\x83\x13\x13\x00X\x00\x00i\x00\x00y\n\x02\xda\x01\x01\xdd\x01\a\x00\t\x03\xf4\x03S\xd4\x01\x00\x00\x03\xb6\x04`\x01\x00\x00\x03\xd2\x04f\xd7\x01\x00\x00\x03\xf2\x04r\xe0\x01\x00\x00\x03\xb8\x05\x7f\t\x00\x00\x03\x80\x06\x85\x01\t\x00\x00\x03\x8a\a\x90\x01\x00\x00\x00\x03\xff\a\x99\x01\x00\x00\x00\x03\xcd\b\xa7\x01\x00\x00\x00\x00\xb4\x01\x00\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x00\x85\x02\x8a\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x06\x00\x01\b\xcd\t\x00\v\x00\x00\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x00\xd0\x03\n\x01\x8f\x03\x01\xac\x02\x02\x11\x00\xec\x03\n\x01\x9b\x03\x01\xac\x02\x02\x11\x02\x11\x01\xac\x02\x02\x11\x02\x11\x01\x8f\x03\x01\xac\x02\x02\x11\x02\x11\x01\x9b\x03\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x01\x8f\x03\x01\xac\x02\x02\x11\x01\x9b\x03\x01\xac\x02\x02\x11\x01\xac\x02\x02\x11\x02\x11\x01\xac\x02\x02\x11\x02\x11\x01\x8f\x03\x01\xac\x02\x02\x11\x02\x11\x01\x9b\x03\x01\xac\x02\x01\xac\x02\x01\xac\x02\x02\x11\x01\xac\x02\x01\xac\x02\x01\xac\x02\x00\xc9\x05\n\x01\x8b\x04\x01\xac\x02\x01\xac\x02\x01\xac\x02\x02\x11\x01\xac\x02\x06\x00\x01\x03\xf4\x91\x01\x00\v\x01\x03\xfd\x91\x01\x00\x00\x00\x01\xac\x02\x06\x00\x01\x03\x85\x95\x01\x00\v\x01\x03\x8e\x95\x01\x00\x00\x00\x01\xac\x02\x01\xac\x02\x03\x04\x11\x01\xac\x02\x00\xbd\x06\n\x01\xd1\x04\x01\xac\x02\x01\xac\x02\x00\xe9\x06\n\x01\xde\x04\x01\xac\x02\x00\x83\a\n\x01\xe8\x04\x01\xac\x02\x02\x11\x02\xf2\x04\x01\xf4\x04T\x03\xa8\x03\xe3\x016\x04\xff\x02\xae\x01\x04\xf7\x02B\xb0\x02\x00\x01\x04\x87\x03\x00\x13\x05\xa9)\xb7\x01\x05\xa1)B\xb3\x02\x00\x01\x05\xb2)\x00\x13\x05\x9b+\xbe\x01\x05\x93+B\xb6\x02\x00\x01\x05\xa4+\x00\x13\x05\xf1,\xc5\x01\x05\xe9,B\xb9\x02\x00\x01\x05\xfc,\x00\x13\x05\x88/\xce\x01\x05\x80/B\xbc\x02\x00\x00\x05\xd00\xd9\x01\x05\xc80B\xbf\x02\x00\x01\x05\xdc0\x00\x13\x05\xea2\xe3\x01\x05\xe22B\xc2\x02\x00\x00\x06\x9a\x03\xef\x01\x06\x92\x03B\xc5\x02\x00\x03\x06\xa5\x03\x00\v\x06\xae\x03\x00\x10\x06\xb6\x03\x00\x13\a\xc8\x17\xf7\x01\a\xc0\x17B\xc8\x02\x01\a\xd4\x17\x83\x02\xcb\x02\x01\a\xe1\x17\x00\x13\x00\a\xe0\x18\x8f\x02\a\xd8\x18B\xd0\x02\x01\a\xf0\x18\x83\x02\xcb\x02\x01\a\xfd\x18\x00\x13\x00\a\xfa\x19\x9f\x02\a\xf2\x19B\xd3\x02\x01\a\x8b\x1a\x83\x02\xcb\x02\x01\a\x98\x1a\x00\x13\x00\b\xd1\x02\xb0\x02\b\xc9\x02B\xd6\x02\x02\b\xda\x02\xb9\x02\x01\b\xe1\x02\xbb\x02\x13\x01\b\xec\x02\x00\x13\x00\b\xf7\x03\xbf\x02\b\xef\x03B\xd9\x02\x01\b\x80\x04\xc8\x02\x01\x01\b\x89\x04\x00\x13\x00\b\xb2\x05\xcc\x02\b\xaa\x05B\xdc\x02\x02\b\xb9\x05\xd3\x02\x01\b\xbe\x05\xd7\x02\x01\x01\b\xc7\x05\x00\x13\x00\b\xa3\a\xdb\x02\b\x9b\aB\xdf\x02\x01\b\xad\a\xe5\x02\x05\x01\b\xb9\a\x00\x13\x00\b\xbb\t\xea\x02\b\xb3\tB\xe2\x02\x01\b\xc6\t\xf5\x02\xe5\x02\x01\b\xd7\t\x00\x13\x00\x03\xfe\n\xf7\x02\x03\xf6\nB\xef\x02\x02\x03\x83\v\xfc\x02\x10\x03\x8f\v\x80\x03\x00\x01\x03\x9e\v\x00\x13\x00\x03\xd9\x0e\x89\x03\x03\xd1\x0eB\xf2\x02\x00\x01\x03\xe3\x0e\x00\x13\x03\x9c\x14\x91\x03\x03\x94\x14B\xf5\x02\x00\x01\x03\xa4\x14\x00\x13\x03\xfc\x1b\x97\x03\x03\xf4\x1bB\xf8\x02\x00\x01\x03\x8a\x1c\x00\x13\x03\xb1!\xa3\x03\x03\xa9!B\xfb\x02\x01\x03\xb6!\xa8\x03\xfe\x02\x02\x03\xc1!\x00\x01\x03\xc6!\x00\x13\x00\x03\x89(\xaa\x03\x03\x81(B\x80\x03\x02\x03\x8f(\xa8\x03\x83\x03\x03\x99(\xb0\x03\x05\x02\x03\xa5(\x00\x01\x03\xaa(\x00\x13\x00\x03\xdf,\xb4\x03\x03\xd7,B\x85\x03\x01\x03\xe8,\xa8\x03\x88\x03\x03\x03\xf3,\x00\x01\x03\xf8,\x00 \x03\x8a-\x00\x13\x00\x03\xbc1\xbd\x03\x03\xb41B\x8a\x03\x02\x03\xca1\xa8\x03\x8d\x03\x03\xd41\xcb\x03\x93\x03\x02\x03\xf21\x00\x01\x03\xf71\x00\x13\x00\x03\x9f6\xde\x03\x03\x976B\x96\x03\x02\x03\xad6\xa8\x03\x99\x03\x03\xb76\xcb\x03\x9f\x03\x02\x03\xd56\x00\x01\x03\xda6\x00\x13\x00\x03\xf2:\xfa\x03\x03\xea:B\xa2\x03\x03\x03\xfa:\xa8\x03\xa5\x03\x03\x84;\x82\x04\xa7\x03\x03\x90;\x86\x04\x01\x05\x03\x9c;\x00\x01\x03\xa1;\x00\x01\x03\xa6;\x00\x01\x03\xab;\x00 \x03\xbd;\x00\x13\x00\x03\xd4@\x8c\x04\x03\xcc@B\xa9\x03\x04\x03\xe1@\xa8\x03\xac\x03\x03\xeb@\x82\x04\xae\x03\x03\xf7@\x86\x04\x01\x03\x82A\x99\x04\xb0\x03\x04\x03\x9fA\x00\x01\x03\xa4A\x00\x01\x03\xa9A\x00\x01\x03\xaeA\x00\x13\x00\x03\xbaF\x9d\x04\x03\xb2FB\xb3\x03\x04\x03\xc7F\xa8\x03\xb6\x03\x03\xd1F\x82\x04\xb8\x03\x03\xddF\x86\x04\x01\x03\xe8F\xaa\x04\xba\x03\x04\x03\x85G\x00\x01\x03\x8aG\x00\x01\x03\x8fG\x00\x01\x03\x94G\x00\x13\x00\x03\xf8K\xae\x04\x03\xf0KB\xbd\x03\x01\x03\xfeK\xa8\x03\xc0\x03\x02\x03\x89L\x00\x01\x03\x8eL\x00\x13\x00\x03\xaeQ\xb4\x04\x03\xa6QB\xc2\x03\x02\x03\xb5Q\xa8\x03\xc5\x03\x03\xbfQ\xb0\x03\x05\x02\x03\xcbQ\x00\x01\x03\xd0Q\x00\x13\x00\x03\x99W\xbb\x04\x03\x91WB\xc7\x03\x02\x03\xa6W\xa8\x03\xca\x03\x03\xb0W\xc8\x04\xcc\x03\x02\x03\xccW\x00\x01\x03\xd1W\x00\x13\x00\x03\xe6[\xcb\x04\x03\xde[B\xcf\x03\x02\x03\xf3[\xa8\x03\xd2\x03\x03\xfd[\xc8\x04\xd4\x03\x02\x03\x99\\\x00\x01\x03\x9e\\\x00\x13\x00\x03\x9b`\xd8\x04\x03\x93`B\xd7\x03\x02\x03\xa3`\xa8\x03\xda\x03\x03\xad`\xc8\x04 \x02\x03\xc3`\x00\x01\x03\xc8`\x00\x13\x00\x03\xc5d\xe0\x04\x03\xbddB\xdc\x03\x03\x03\xced\xa8\x03\xdf\x03\x03\xd8d\x82\x04\xe1\x03\x03\xe4d\xc8\x04 \x03\x03\xfad\x00\x01\x03\xffd\x00\x01\x03\x84e\x00\x13\x00\x03\xb1i\xe9\x04\x03\xa9iB\xe3\x03\x03\x03\xbfi\xa8\x03\xe6\x03\x03\xc9i\x82\x04\xe8\x03\x03\xd5i\xc8\x04\xea\x03\x03\x03\xf1i\x00\x01\x03\xf6i\x00\x01\x03\xfbi\x00\x13\x00\x03\xaan\xf7\x04\x03\xa2nB\xed\x03\x03\x03\xb8n\xa8\x03\xf0\x03\x03\xc2n\x82\x04\xf2\x03\x03\xcen\xc8\x04\xf4\x03\x03\x03\xean\x00\x01\x03\xefn\x00\x01\x03\xf4n\x00\x13\x00\x03\x88s\x85\x05\x03\x80sB\xf7\x03\x00\x04\x03\x92s\x00\x01\x03\x97s\x00 \x03\xa9s\x00\x10\x03\xb1s\x00\x13\x03\xfbx\x8c\x05\x03\xf3xB\xfa\x03\x02\x03\x80y\x91\x05\x05\x03\x8ey\x98\x05\x01\x02\x03\x9by\x00\x05\x03\xa2y\x00\x13\x00\x03\xc1{\x9f\x05\x03\xb9{B\xfd\x03\x01\x03\xcc{\xaa\x05\x80\x04\x02\x03\xd9{\x00\x01\x03\xde{\x00\x13\x00\x03\x9c\x7f\xae\x05\x03\x94\x7fB\x82\x04\x01\x03\xa3\x7f\xb5\x05\t\x01\x03\xb0\x7f\x00\x13\x00\x03\x82\x81\x01\xba\x05\x03\xfa\x80\x01B\x85\x04\x00\x01\x03\x8b\x81\x01\x00\x13\x03\xaa\x82\x01\xc1\x05\x03\xa2\x82\x01B\x88\x04\x01\x03\xb0\x82\x01\xc7\x05\x8f\x04\x01\x03Â\x01\x00\x13\x00\x03ʌ\x01\xd0\x05\x03\u008c\x01B\x92\x04\x00\x03\x03ь\x01\x00\x01\x03\u058c\x01\x00\x10\x03ތ\x01\x00\x13\x03ݎ\x01\xd4\x05\x03Վ\x01B\x95\x04\x00\x01\x03\xe9\x8e\x01\x00\x13\x03\xe5\x8f\x01\xde\x05\x03ݏ\x01B\x98\x04\x01\x03\xef\x8f\x01\xa8\x03\x9b\x04\x02\x03\xfa\x8f\x01\x00\x01\x03\xff\x8f\x01\x00\x13\x00\x03\xe5\x91\x01\xe8\x05\x03ݑ\x01B\x9d\x04\x01\x03\xed\x91\x01\xf5\x02\xa0\x04\x01\x03\x83\x92\x01\x00\x13\x00\x03\xf5\x94\x01\xf0\x05\x03\xed\x94\x01B\xb1\x04\x01\x03\xfe\x94\x01\xf5\x02\xb4\x04\x01\x03\x94\x95\x01\x00\x13\x00\t\xb3\x02\xf9\x05\t\xab\x02B\xc5\x04\x03\t\xc1\x02\x87\x06\x01\t\xc8\x02\x8d\x06\x01\t\xce\x02\x92\x06\x01\x01\t\xd7\x02\x00\x13\x00\t\xc1\x04\x96\x06\t\xb9\x04B\xc8\x04\x03\t\xd5\x04\x87\x06\x01\t\xdc\x04\x8d\x06\x01\t\xe6\x04\x92\x06\xcb\x04\x01\t\xf3\x04\x00\x13\x00\t\xe2\x06\xaa\x06\t\xda\x06B\xce\x04\x03\t\xf3\x06\x87\x06\x01\t\xfa\x06\x8d\x06\x01\t\x84\a\xbb\x06\xd5\x04\x01\t\x97\a\x00\x13\x00\n\xa9\x02\xc4\x06\n\xa1\x02B\xd8\x04\x03\n\xb8\x02\x87\x06\x01\n\xbf\x02\x8d\x06\x01\n\xc9\x02\x92\x06\x11\x01\n\xd3\x02\x00\x13\x00\v\xb9\x02\xd3\x06\v\xb1\x02B\xdb\x04\x03\v\xca\x02\x87\x06\x01\v\xd1\x02\x8d\x06\x01\v\xdb\x02\xe4\x06\xe2\x04\x01\v\xf1\x02\x00\x13\x00\v\xe3\x04\xf0\x06\v\xdb\x04B\xe5\x04\x03\v\xf6\x04\x87\x06\x01\v\xfd\x04\x8d\x06\x01\v\x87\x05\xe4\x06\xec\x04\x01\v\x9f\x05\x00\x13\x00\f\x9d\x02\x8c\a\f\x95\x02B\xef\x04\x01\f\xa4\x02\x93\a\xf7\x04\x02\f\xb2\x02\x00\x05\f\xb9\x02\x00\x13\x00F\a\xcc\x1e\x01\a\xdd\x1eB\v\x01\a\xe9\x1e\x00\x00\x00\x01\xac\x02F\r\x96\x03\x04\r\x9f\x03\x95\a\xc9\x12\r\xaa\x03\x9b\a\x01\r\xb3\x03\x9f\a\x05\r\xb8\x03\xa3\a\x05\x02\r\xc7\x03\x00\x05\r\xce\x03\x00\x13\x00\x06\x00\x01\x02\xfd\x15\xaa\a\x01\x00\x00V\x02\xe4\x15\xf6\x12\a\x00\x00T\x02\xd6\x04\x87\x13\x03\x02\xd7\x06\x12\x02\xc6\x06\x18\xc1\x01\x00\x01\x02\xdf\x06\x00\x10\x02\xac\a0\x02\x9b\a\x18\xc1\x01\x00\x01\x02\xb6\a\x00\x00\x02\xe5\a8\x02\xd4\a\x18\xc1\x01\x00\x01\x02\xf1\a\x00\x00\a\x00\x03\x05\xf4\x02\xb0\a\n\x00\x00\x05\x82\x03\xb6\a\t\x00\x00\x05\x90\x03\xbc\a\t\x00\x00\x01\xd4\x01\x01\xd4\x01\x01\xd4\x01\x01\xd4\x01\x01\xd4\x01T\x05\xe2\x02\xc4\x13\x05\x05\x9f\r\xb7\x01\x05\x92\r\xc2\a\xdf\x13\x00\x01\x05\xa8\r\x00\x00\x05\xa5\x10\xc5\a\x05\x98\x10\xc2\a\xe2\x13\x00\x01\x05\xb6\x10\x00\x00\x05\xbf\x16\xbe\x01\x05\xb2\x16\xc2\a\xe5\x13\x00\x01\x05\xc8\x16\x00\x00\x05\xd3\x19\xd4\a\x05\xc6\x19\xc2\a\xe8\x13\x01\x05\xda\x19\xdb\a\x00\x01\x05\xe5\x19\x00\x00\x00\x05\xc4!\xe0\a\x05\xb7!\xc2\a\xeb\x13\x01\x05\xcd!\xdb\a\x00\x01\x05\xd8!\x00\x00\x00\a\x00\x01\a\xec\x06\xe9\a\v\x00\x00\x01\xd7\x01\x01\xac\x02\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01\x01\xd7\x01T\a\xd9\x06\xe2\x14\v\a\xb0\a\xf4\a\a\xa2\af\xed\x14\x01\a\xb5\aB\xf0\x14\x01\a\xbd\a\x00\x13\x00\a\x93\t\xf9\a\a\x85\tf\xf3\x14\x00\x00\a\xda\n\xff\a\a\xcc\nf\xf6\x14\x00\x00\a\xc4\v\x85\b\a\xb6\vf\xf9\x14\x02\a\xcc\v\xb5\x05\x01\a\xd6\v\xa7\x01\x00\x01\a\xe3\v\x00\x13\x00\a\xfa\f\x8d\b\a\xec\ff\xfc\x14\x01\a\x86\r\xa7\x01\x00\x01\a\x93\r\x00\x13\x00\a\xd2\r\x99\b\a\xc4\rf\xff\x14\x01\a\xdf\r\xa7\x01\x00\x01\a\xec\r\x00\x13\x00\a\xab\x0e\xa6\b\a\x9d\x0ef\x82\x15\x02\a\xb0\x0e\xb5\x05\x01\a\xba\x0e\xa7\x01\x00\x01\a\xc7\x0e\x00\x13\x00\a\x89\x10\xab\b\a\xfb\x0ff\x85\x15\x01\a\x92\x10\xa7\x01\x00\x01\a\x9f\x10\x00\x13\x00\a\xdb\x10\xb4\b\a\xcd\x10f\x88\x15\x01\a\xe5\x10\xa7\x01\x00\x01\a\xf2\x10\x00\x13\x00\a\xae\x11\xbe\b\a\xa0\x11f\x8b\x15\x01\a\xbb\x11\xb5\x05\x01\x00\x00\a\xb2\x12\x80\x03\a\xa4\x12f\x8e\x15\x00\x01\a\xbd\x12\x00\x00\x03\x00\xc5\r\x00\x10\xca\r\x1c\xd5\r0\x1aA\xdf\rw\xee\r\x97\x01\x82\x0e\x9c\x01\x91\x0e\xa4\x01\x9f\x0e\xaa\x01\xad\x0e\xaf\x01\xb4\x01\xda\x04\xbc\x0e\x98\x12\xcd\x0e\xac\x12\xd6\x0e\xe1\x12E\xea\x12X\xce\x13i\xf1\x14\n\n\x00\x00\x8a\x02\x8a\x02\x00\x00\x00\x00\x00\x00"

        goroutine 770 [running]:
        golang.org/x/tools/gopls/internal/bug.report({0xc000630000, 0x3903})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:71 +0x459
        golang.org/x/tools/gopls/internal/bug.Errorf({0x1b8292b?, 0x14c2?}, {0xc000e49db0?, 0xe30d43f085045fce?, 0x1b1ec3d?})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:52 +0x3d
        golang.org/x/tools/gopls/internal/lsp/filecache.Get({0x1b1ec3d, 0x6}, {0xbc, 0xe6, 0xce, 0x75, 0xdc, 0xe3, 0xe2, 0xcd, ...})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/filecache/filecache.go:84 +0x2cb
        golang.org/x/tools/gopls/internal/lsp/cache.(*typeCheckBatch).getImportPackage(0xc0000b01e0, {0x1db4a28, 0xc000d72630}, {0xc000b47730, 0xd})
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:456 +0x4b1
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).forEachPackageInternal.func1()
        	/tmp/buildlet/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:393 +0x2d
        golang.org/x/sync/errgroup.(*Group).Go.func1()
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
        created by golang.org/x/sync/errgroup.(*Group).Go
        	/tmp/buildlet/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
        >>)
    integration_test.go:525: gopls signature a.go:4:15: stdout does not match [Println\(a ...]; got <<>>
    integration_test.go:526: gopls signature a.go:4:15: stdout does not match [Println formats using the default formats...]; got <<>>

watchflakes

@adonovan
Copy link
Member

adonovan commented May 3, 2023

The log above shows a file of size 2418 whose length (8B) and content (2406B) parts look correctly filled, but whose checksum (final 4B) is all zero.

All three parts are written in a single call to lockedfile.Write (via io.Copy) using a 3-element io.MultiReader. Because Copy implements the WriterTo shortcut, it allows each element of the MultiReader to write directly to the output Writer (the locked.File) without an intervening buffer. This at least explains why the boundary between filled and zero portions aligns with the MultiReader element boundary just before checksum, though it doesn't explain why zeros were written as opposed to nothing at all. For efficiency (one syscall instead of three) it may be better to allocate a single array instead of using MultiReader. This would likely mask the flakiness we're seeing here, but it still wouldn't explain it or fix the underlying problem.

@adonovan adonovan self-assigned this May 3, 2023
@gopherbot
Copy link
Contributor Author

Change https://go.dev/cl/492035 mentions this issue: gopls/internal/lsp/filecache: silently dicard CRC errors on macOS

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/internal/lsp/cmd/test" && test == "TestSignature"
2023-05-09 17:51 solaris-amd64-oraclerel tools@90e9c659 go@841e99e2 x/tools/gopls/internal/lsp/cmd/test.TestSignature (log)
--- FAIL: TestSignature (17.16s)
    integration_test.go:524: gopls signature a.go:4:15: exited with code 2, want success: true (gopls signature a.go:4:15: exit=2 stdout=<<>> stderr=<<panic: /opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:1081: internal error reading typerefs data: RLock /opt/golang/.cache/gopls/fe6043aa/typerefs/f5/f502bd85a2335c3bba54909f91e8f14cb0f147ebc5568289f3621fa787a961f2: bad file number

        goroutine 754 [running]:
        golang.org/x/tools/gopls/internal/bug.report({0xc000bba160, 0xab})
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:71 +0x454
        golang.org/x/tools/gopls/internal/bug.Reportf({0xf197be?, 0x4cf1e8919f9054ba?}, {0xc000f63928?, 0xf261a987a71f62f3?, 0xed3d33?})
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/bug/bug.go:45 +0x25
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).typerefData(0xc00084a9a0?, {0x1164230?, 0xc00038e3c0}, {0xc000723600, 0xc}, 0xc000426780?, {0xc000192850, 0x1, 0xc21ba0?})
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:1081 +0x14d
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).typerefs(0xc0005ca000, {0x1164230, 0xc00038e3c0}, 0xc000001e00, {0xc000192850, 0x1, 0x1})
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:1060 +0x1f4
        golang.org/x/tools/gopls/internal/lsp/cache.(*packageHandleBuilder).buildPackageHandle(0xc000e85c20, {0x1164230, 0xc00038e3c0}, {0xc000723600?, 0xc?}, 0xc000001e00)
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:922 +0x33d
        golang.org/x/tools/gopls/internal/lsp/cache.(*snapshot).getPackageHandles.func2()
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/src/golang.org/x/tools/gopls/internal/lsp/cache/check.go:808 +0x191
        golang.org/x/sync/errgroup.(*Group).Go.func1()
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x5b
        created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 703
        	/opt/golang/tmp/workdir-host-solaris-oracle-amd64-oraclerel/gopath/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0x96
        >>)
    integration_test.go:525: gopls signature a.go:4:15: stdout does not match [Println\(a ...]; got <<>>
    integration_test.go:526: gopls signature a.go:4:15: stdout does not match [Println formats using the default formats...]; got <<>>

watchflakes

@adonovan
Copy link
Member

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "golang.org/x/tools/gopls/internal/lsp/cmd/test" && test == "TestSignature"

2023-05-09 17:51 solaris-amd64-oraclerel tools@90e9c659 go@841e99e2 x/tools/gopls/internal/lsp/cmd/test.TestSignature (log)
watchflakes

The latest watchflake note is from a very old run (in early May).

@bcmills bcmills closed this as completed Jun 30, 2023
@golang golang locked and limited conversation to collaborators Jun 29, 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
Archived in project
Development

No branches or pull requests

3 participants