-
Notifications
You must be signed in to change notification settings - Fork 178
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
TestDisplayMetrics flaky #127
Comments
Thank you for the bug report! Looking at this test, I believe what's happening is that we use https://pkg.go.dev/time#Time.Truncate to split time into intervals. If some of the test data is added before the interval boundary, and some of it is added after the boundary, we'll end up with two intervals for this test, and the test expects only one. One way to fix this might be to increase the interval in that test slightly from 10ms to 20ms (to give us more buffer). Then when we get the first interval, wait for it to finish (the interval := 20 * time.Millisecond
inm := NewInmemSink(interval, 50*time.Millisecond)
<- inm.getInterval().done
// add all the sample metrics
data := inm.Data()
// now we expect 2 intervals in data instead of one.
... As long as all the metrics can be added in 20ms and we call Edit: Ah but There are probably other options for fixing it as well. |
I can confirm that. I tried the change you suggested above, and the test gets stuck, and finally times out after 10 minutes. Logs for reference:
|
Hi!
During automated builds of go-metrics 0.3.4 by the Debian CI infrastructure, we noticed a test failure on one of our armhf builder (arm high-float). The issue disappeared after a retry.
All the logs are at https://ci.debian.net/packages/g/golang-github-armon-go-metrics/testing/armhf/, and the two logs of interest here are:
The lines of interest in the logs:
Looking deeper in the various logs, I noticed that this issue appeared also on the x86_64 architecture:
The text was updated successfully, but these errors were encountered: