golang / go

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

x/tools/gopls/internal/test/integration/diagnostics: TestConflictingMainPackageErrors/default failures #70486

Closed gopherbot closed 8 hours ago

gopherbot commented 18 hours ago
#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/diagnostics" && test == "TestConflictingMainPackageErrors/default"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestConflictingMainPackageErrors/default
    diagnostics_test.go:652: waiting on:
        Unmeetable: once "All of:\ncompleted work \"diagnosing opened files\" at least 1 time(s)" is met, must have:
        any diagnostics at the first position (0:0) matching `^` in "x/x.go", with message containing "found packages main (main.go) and x (x.go)"
        any diagnostics at the first position (0:0) matching `^` in "x/main.go", with message containing "found packages main (main.go) and x (x.go)"

        err:condition has final verdict Unmeetable

        state:
        #### log messages (see RPC logs for full text):
...
[Trace - 18:31:49.844 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/swarming/.swarming/w/ir/x/t/gopls-test-4162441554/TestConflictingMainPackageErrors/default/gopath/src/x/x.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":8},"end":{"line":0,"character":9}},"severity":2,"source":"go list","message":"initialization failed: packages.Load error: err: fork/exec /home/swarming/.swarming/w/ir/x/w/goroot/bin/go: bad file descriptor: stderr:"}]}

[Trace - 18:31:49.857 PM] Received notification '$/progress'.
Params: {"token":"6589339574520040141","value":{"kind":"end","message":"Done."}}

#### End Gopls Test Logs for "TestConflictingMainPackageErrors/default"
--- FAIL: TestConflictingMainPackageErrors/default (0.86s)

watchflakes

gopherbot commented 18 hours ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/diagnostics" && test == "TestConflictingMainPackageErrors/default"
2024-11-20 16:07 x_tools-gotip-netbsd-arm tools@e7517567 go@a311754d x/tools/gopls/internal/test/integration/diagnostics.TestConflictingMainPackageErrors/default (log) === RUN TestConflictingMainPackageErrors/default diagnostics_test.go:652: waiting on: Unmeetable: once "All of:\ncompleted work \"diagnosing opened files\" at least 1 time(s)" is met, must have: any diagnostics at the first position (0:0) matching `^` in "x/x.go", with message containing "found packages main (main.go) and x (x.go)" any diagnostics at the first position (0:0) matching `^` in "x/main.go", with message containing "found packages main (main.go) and x (x.go)" err:condition has final verdict Unmeetable state: #### log messages (see RPC logs for full text): ... [Trace - 18:31:49.844 PM] Received notification 'textDocument/publishDiagnostics'. Params: {"uri":"file:///home/swarming/.swarming/w/ir/x/t/gopls-test-4162441554/TestConflictingMainPackageErrors/default/gopath/src/x/x.go","version":1,"diagnostics":[{"range":{"start":{"line":0,"character":8},"end":{"line":0,"character":9}},"severity":2,"source":"go list","message":"initialization failed: packages.Load error: err: fork/exec /home/swarming/.swarming/w/ir/x/w/goroot/bin/go: bad file descriptor: stderr:"}]} [Trace - 18:31:49.857 PM] Received notification '$/progress'. Params: {"token":"6589339574520040141","value":{"kind":"end","message":"Done."}} #### End Gopls Test Logs for "TestConflictingMainPackageErrors/default" --- FAIL: TestConflictingMainPackageErrors/default (0.86s)

watchflakes

adonovan commented 8 hours ago

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