Open gopherbot opened 6 months ago
Found new dashboard test flakes for:
#!watchflakes
default <- pkg == "golang.org/x/tools/gopls/internal/test/integration/workspace" && test == "TestCreateModule_Interdependent"
This suggests a race in the test, which asserts that after a WriteFiles and then a Diagnostics, there must be a diagnostic about variable x in the updated file's location--but in fact it reports the diagnostic at x's location in the original file. Looking at onFileChanges, I don't see how it can be correct that it fires off a goroutine but doesn't wait for anything to get started. That means the didChangedWatchedFiles could occur arbitrarily late, which would explain the race.
Issue created automatically to collect these failures.
Example (log):
— watchflakes