-
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
cmd/go: "cannot access the file because it is being used by another process" flakes on Windows #71112
Comments
Aside from fixing the specific issue, is there something that could be improved in flakes monitoring? Maybe testflakes could also monitor TryBot reruns for the same commit? Or it could be more granular for large tests such as TestScript? |
CC @golang/windows @matloob @samthanawalla |
The Watchflakes wiki page suggests:
The pattern in #66337 is definitely broad, and it hasn't progressed beyond the NeedsInvestigation / no status state yet. If it's narrowed down to something that doesn't match these errors, then it creates room for this failure mode to be tracked in another issue.
I suggest filing a separate x/build/cmd/watchflakes issue for that change. It would need someone interested to find time and work on it, but it's more likely to be forgotten as part of this issue. (Edit: It's useful to know which of the flaky tests are contributing most to development friction and reducing velocity, so thanks for reporting this.) |
One more, https://ci.chromium.org/ui/p/golang/builders/try/gotip-windows-amd64/b8726732876617875553/overview. (Sorry to whine, but I had changes fall through the cracks because I AutoSubmit+1'd them after the Code-Review+2, and instead of making their journey through go.dev/s/needs-review and to submission, got stuck on flakes.) |
Interestingly, the line where the error is being reported is the call to t.Cleanup(func() {
if err := srv.Close(); err != nil {
t.Fatal(err)
}
}) Looking at the |
Ok, I think I made this issue the watchflakes tracking issue for this error message. Edit: actually, if lowest-numbered wins, I think the old catchall will win. |
So I'm not super familiar with this code, but I think the problem is in the vcweb handler in cmd/go/internal/vcweb/auth.go. I think we should be closing the |
@matloob Thanks for the pointer. That code is clearly incorrect, and I'll send a CL, but I don't understand why the problem would have just started appearing a few weeks ago. |
Change https://go.dev/cl/640175 mentions this issue: |
Found new dashboard test flakes for:
2024-12-12 17:06 go1.24-windows-386 release-branch.go1.24@817d7bdc cmd/go.TestScript [ABORT] (log)
2024-12-12 20:58 gotip-windows-amd64 go@14e5093e cmd/go.TestScript [ABORT] (log)
2024-12-26 20:33 gotip-windows-386 go@cce75da3 cmd/go.TestScript [ABORT] (log)
2024-12-30 17:19 gotip-windows-386 go@fd5e0d26 cmd/go.TestScript [ABORT] (log)
|
For #71112 Change-Id: Ifda4fc8de148c42a2154da54b53d7215b9a6faa0 Reviewed-on: https://go-review.googlesource.com/c/go/+/640175 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
CL 640175 is submitted. Let's see if the problem keeps happening. |
I am getting a lot of these flakes on the Windows TryBots, three just in the last day, and they are getting kinda tedious.
https://ci.chromium.org/ui/p/golang/builders/try/gotip-windows-amd64/b8726767142354977169/overview
https://ci.chromium.org/ui/p/golang/builders/try/gotip-windows-386/b8726850438465216129/overview
https://ci.chromium.org/ui/p/golang/builders/try/gotip-windows-amd64/b8726734771386763217/overview
AFAICT, there is no tracking issue, just a sea of TestScript testflakes issues, with this specific message showing up about 3 weeks ago in #66337, which has a catch-all
pkg == "cmd/go" && test == "TestScript"
testflakes definition.#66337 (comment)
#66337 (comment)
#66337 (comment)
#66337 (comment)
The text was updated successfully, but these errors were encountered: