-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime: TestWindowsStackMemory flakes on windows-386-2016 #58570
Comments
Found new dashboard test flakes for:
2023-01-17 19:55 windows-386-2016 go@d4639ecd runtime.TestWindowsStackMemory (log)
|
The test was suggested by @aclements at #22439 (comment) . You should be able to adjust the test to allow for a couple of extra threads to be started by runtime without TestWindowsStackMemory noticing. But we want to keep the test to prevent regressions like this one #22439. Alex. |
In triage, I think we agree this is a test issue. @alexbrainman up for sending a patch? If not one of us will get around to it (especially if it happens again). |
Change https://go.dev/cl/473415 mentions this issue: |
Here is my CL https://go-review.googlesource.com/c/go/+/473415 Alex |
Found new dashboard test flakes for:
2023-06-21 16:11 windows-386-2016 go@03063101 runtime.TestWindowsStackMemory (log)
|
I can see that this failure happened on release-branch.go1.20 release branch - on commit
I suspect the branch does not have CL 473415 fix. Otherwise I don't have explanation for the flake 2 days ago . Alex |
Sounds like we just need to backport the test fix to the 1.20 branch? I can handle that. |
Change https://go.dev/cl/506975 mentions this issue: |
…owsStackMemory* Original version of TestWindowsStackMemory did not consider sysmon and other threads running during the test. Allow for 5 extra threads in this test - this should cover any new threads in the future. For #58570 Change-Id: I215790f9b94ff40a32ddd7aa54af715d1dc391c6 Reviewed-on: https://go-review.googlesource.com/c/go/+/473415 Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> (cherry picked from commit f6cbc1d) Reviewed-on: https://go-review.googlesource.com/c/go/+/506975 Run-TryBot: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Knyszek <mknyszek@google.com>
@gopherbot Please open backport issues for Go 1.19 and Go 1.20. This is a test-only fix that is very small and very safe. |
There's another one: https://ci.chromium.org/ui/p/golang/builders/try/gotip-windows-386/b8766892579985845249/overview Sounds like we should increase the allowed threads from 5 to a bigger number, probably 10. |
Indeed.
@cuonglm why do you think 10 will work better than 5? 5 was selected as per this logic go/src/runtime/testdata/testprog/syscall_windows.go Lines 69 to 71 in 3839447
Do you think runtime changed since CL 473415 (about 6 month ago)? Thank you. Alex |
@cuonglm why do you think 10 will work better than 5?
I saw the comment said that "sysmon and others", without explicitly said that what others are, so I assume we could increase if the test start flaking again. |
Interestingly it always fails on windows-386, and never on windows-amd64. @qmuntal is it possible that there are some extra threads that are started for every single process depending on a particular system used? For example, every Go process loads a bunch of DLLs. Is it possible that some of those DLLs start their own threads? This could even vary from system to system. Thank you. Alex |
I am pretty sure that
Yes. We could increase to 10 from 5. Alex |
Change https://go.dev/cl/536058 mentions this issue: |
Found new dashboard test flakes for:
2024-01-22 16:09 gotip-windows-386 go@b17bf6dd runtime.TestWindowsStackMemory (log)
|
Looking at this issue again, since we have another failure, our current guess is that |
Found new dashboard test flakes for:
2024-01-30 20:08 gotip-windows-386 go@b0799674 runtime.TestWindowsStackMemory (log)
|
Found new dashboard test flakes for:
2024-08-27 17:40 gotip-windows-386 go@994d1d44 runtime.TestWindowsStackMemory (log)
|
Found new dashboard test flakes for:
2024-10-23 04:43 gotip-windows-386 go@7d9802ac runtime.TestWindowsStackMemory (log)
|
Just got one of these in a trybot. All the failures here are just barely over 100kB. Sent CL 628795 to bump the limit to 128 kB. |
Change https://go.dev/cl/628795 mentions this issue: |
Found new dashboard test flakes for:
2024-11-17 14:32 gotip-windows-386 go@49b3ab0d runtime.TestWindowsStackMemory (log)
2024-11-17 14:32 gotip-windows-386 go@9060fa5a runtime.TestWindowsStackMemory (log)
|
2023-01-17T19:55:02-d4639ec/windows-386-2016
Notes:
windows-386-2016
builder.cc @mknyszek @golang/runtime @golang/windows
The text was updated successfully, but these errors were encountered: