-
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: TestPingPongHog failures with ratios out of range #52207
Comments
Marking as release-blocker for Go 1.19 because (This at least needs to be triaged by the runtime team before the release, and they can either fix the failure or add a skip based on the outcome of that triage.) |
Ping: any progress on this? |
|
|
and https://storage.googleapis.com/go-build-log/84130882/linux-amd64-longtest_b0bacea2.log (a SlowBot) @golang/runtime: can this test be skipped until someone has the bandwidth to fix it? It's gotten really noisy. |
The code comment says
All failures above are within a factor of 10 (the current factor is 5). Perhaps we can just increase the factor, to (say) 20 or 50? |
I agree with Cherry. It sounds like this just needs a lot more slack. However, I think this test might just be fundamentally flaky because it's not robust to OS scheduling delays (I'm thinking about #52433 here). I wonder if we could prove that this is the case with This is definitely a test that, if we had, for instance, scheduler instrumentation for testing, we could construct a situation where we make sure that a goroutine gets scheduled within N calls to the scheduler on average (or something), instead of bounding it by real timings. |
Yeah, scheduler instrumentation would be much better for testing this kind of things. Perhaps for short term we could increase the threshold to reduce the noise on builders. |
Change https://go.dev/cl/407134 mentions this issue: |
Change https://go.dev/cl/407415 mentions this issue: |
On 32-bit systems the result of hogCount*factor can overflow. Use division instead to do comparison. Update #52207 Change-Id: I429fb9dc009af645acb535cee5c70887527ba207 Reviewed-on: https://go-review.googlesource.com/c/go/+/407415 Reviewed-by: Michael Knyszek <[email protected]> Run-TryBot: Keith Randall <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
See previously #38266, #20494.
greplogs --dashboard -md -l -e 'FAIL: TestPingPongHog .*(?:\n .*)*want hogCount/lightCount in ' --since=2021-01-01
2022-04-06T20:46:47-81ae993/linux-386-longtest
2022-03-10T21:10:30-914195c/windows-amd64-longtest
2021-11-12T22:20:50-9150c16/linux-386-longtest
2021-10-29T17:12:47-3aecb3a/linux-386-longtest
(CC @golang/runtime)
The text was updated successfully, but these errors were encountered: