-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: test cleanup errors during shutdown with ERROR_SHARING_VIOLATION
on Windows
#53819
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
Comments
Note that Windows in particular seems to produce this error spuriously (compare #51442), or at least for reasons we haven't yet been able to diagnose (see also #25965). In the Would it be possible for |
Thank you @bcmills! I was about to ping you to ask, because I seemed to recall the exact context you have just produced :) I'll copy the removeAll logic. |
Change https://go.dev/cl/417117 mentions this issue: |
Cleaning the regtest sandbox sometimes fails on windows with errors that may be spurious. Copy logic from the testing package to retry these errors. For golang/go#53819 Change-Id: I059fbb5e023af1cd52a5d231cd11a7c2ae72bc92 Reviewed-on: https://go-review.googlesource.com/c/tools/+/417117 Run-TryBot: Robert Findley <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> gopls-CI: kokoro <[email protected]>
ERROR_SHARING_VIOLATION
on Windows
Note that these failures still persist after CL 417117. 🤔 |
My investigation into the persistent errors suggested that the new problem is simply that the server did not have enough time to shut down: not that there is a bug in shutdown itself, or that the retry logic doesn't work. This seems to have been fixed by https://go.dev/cl/417583. |
Note: this seems to have gone away so I will close this issue with a CL to improve/remove the shutdown timeout, as suggested by @bcmills in a follow-up comment on https://go.dev/cl/417583. |
Change https://go.dev/cl/419503 mentions this issue: |
Following the recent change to await proper shutdown of the regtest environment (CL 416594), we get one new flake on windows:
https://build.golang.org/log/27834526d9f9152f3bc200e902c97d8a73d55452
https://build.golang.org/log/b4e52dbee66f77feae2f7fa17e2981087e7fbbcb
If we've learned anything from investigating these flakes, it is that they are often (if not usually) actual races in gopls. Unfortunately the goroutine dump at test failure point does not show anything interesting. It is possible that problematic goroutines had exited before the dump.
The text was updated successfully, but these errors were encountered: