golang / go

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

x/tools/gopls/internal/test: spurious failures due to EBADF on netbsd/arm #70492

Open gopherbot opened 15 hours ago

gopherbot commented 15 hours ago
#!watchflakes
default <- pkg ~ "golang.org/x/tools/gopls/internal/test" && `bad file descriptor` && goos == "netbsd" && goarch == "arm"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestPackageCompletion/package_completion_on_terminal_newline/default
    completion_test.go:220: completion item mismatch (-want +got):
          []string{
        -   "package apple",
        -   "package apple_test",
            "package fruits",
            "package fruits_test",
            "package main",
          }

...
[Trace - 15:23:48.479 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/swarming/.swarming/w/ir/x/t/gopls-test-1475936701/TestPackageCompletion/package_completion_on_terminal_newline/default/work/fruits/testfile6.go","version":1,"diagnostics":[]}

[Trace - 15:23:48.486 PM] Received notification '$/progress'.
Params: {"token":"8761737497789441884","value":{"kind":"end","message":"Done."}}

#### End Gopls Test Logs for "TestPackageCompletion/package_completion_on_terminal_newline/default"
--- FAIL: TestPackageCompletion/package_completion_on_terminal_newline/default (1.40s)

watchflakes

gopherbot commented 15 hours ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/completion" && test == "TestPackageCompletion/package_completion_on_terminal_newline/default"
2024-11-20 12:37 x_tools-go1.23-netbsd-arm tools@a2874818 release-branch.go1.23@777f43ab x/tools/gopls/internal/test/integration/completion.TestPackageCompletion/package_completion_on_terminal_newline/default (log) === RUN TestPackageCompletion/package_completion_on_terminal_newline/default completion_test.go:220: completion item mismatch (-want +got):   []string{ -  "package apple", -  "package apple_test",    "package fruits",    "package fruits_test",    "package main",   } ... [Trace - 15:23:48.479 PM] Received notification 'textDocument/publishDiagnostics'. Params: {"uri":"file:///home/swarming/.swarming/w/ir/x/t/gopls-test-1475936701/TestPackageCompletion/package_completion_on_terminal_newline/default/work/fruits/testfile6.go","version":1,"diagnostics":[]} [Trace - 15:23:48.486 PM] Received notification '$/progress'. Params: {"token":"8761737497789441884","value":{"kind":"end","message":"Done."}} #### End Gopls Test Logs for "TestPackageCompletion/package_completion_on_terminal_newline/default" --- FAIL: TestPackageCompletion/package_completion_on_terminal_newline/default (1.40s)

watchflakes

gopherbot commented 7 hours ago

Sorry, but there were parse errors in the watch flakes script. The script I found was:

#!watchflakes
default <- pkg ~ "golang.org/x/tools/gopls/internal/test" && `bad file descriptor` && goos == "netbsd" && goarch == "arm"

And the problems were:

script:2.18: ~ requires backquoted regexp

See https://go.dev/wiki/Watchflakes for details.

watchflakes