-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/gopls/internal/lsp/source: TestSource failures #57827
Comments
Found new dashboard test flakes for:
2023-01-06 17:06 darwin-amd64-12_0 tools@16b3bf8d go@eeaf508d x/tools/gopls/internal/lsp/source.TestSource (log)
|
This test does not seem to meet the bar of https://go.dev/wiki/CodeReviewComments#useful-test-failures — the test logs indicate that an expected diagnostic pattern was not matched, but there isn't any information in the test log about what happened instead. |
Sadly, this is one of the LSP tests that I have already tried to improve (c.f. #54845). The test output does actually fully describe the delta between actual and expected: it is listing patterns that were expected an unmatched. The previous logic simply printed all expected and actual diagnostics, which made it hard to spot differences, and we have subsequently added support for regexp matching. I can mail a CL that does something in-between, similar to the go/types tests. |
We're rewriting all of these tests in the new marker framework (gopls/internal/regtest/marker/testdata). I believe the new output for diagnostics is better. |
Issue created automatically to collect these failures.
Example (log):
— watchflakes
The text was updated successfully, but these errors were encountered: