Skip to content
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

misc/cgo/test: flaky test: TestParallelSleep #5480

Closed
bradfitz opened this issue May 15, 2013 · 11 comments
Closed

misc/cgo/test: flaky test: TestParallelSleep #5480

bradfitz opened this issue May 15, 2013 · 11 comments

Comments

@bradfitz
Copy link
Contributor

We need to fix this flaky test:

http://build.golang.org/log/4fb532043c73801a467007afc6a8d27b3b7018ad

# ..\misc\cgo\test
--- FAIL: TestParallelSleep (1.81 seconds)
        basic.go:598: sleep(1) slept for 1.805s
        basic.go:603: parallel 1-second sleeps slept for 1.805000 seconds
FAIL
scatter = 00498FDB


This happens a lot.
@minux
Copy link
Member

minux commented May 15, 2013

Comment 1:

we've wasted too much effort on this particular flakiness:
revision f6668796d52c, revision 18a0bd67b4b4, revision 16fcd7235fad;

@bradfitz
Copy link
Contributor Author

Comment 2:

But we need to fix it.  Failure noise isn't acceptable.  We need to either delete it or
fix it.  But ignoring flaky tests isn't an option.

@minux
Copy link
Member

minux commented May 15, 2013

Comment 3:

i agree. let's try once more, if it's still flaky, let's skip the test in -short mode
and use -short
mode for run.bash. ok?
could we record and compare the start time of the sleep rather than the end time of the
sleep?
because we ultimately concerns about starting the two sleeps concurrently rather than
serially
so comparing start time might be more reliable than end time.

@alexbrainman
Copy link
Member

Comment 4:

#3 minux.ma has a good plan :-). Skip it! I have wasted enough time there.
Alex

@minux
Copy link
Member

minux commented May 17, 2013

Comment 5:

https://golang.org/cl/9475043

Owner changed to @minux.

Status changed to Started.

@minux
Copy link
Member

minux commented May 17, 2013

Comment 6:

This issue was closed by revision af1dd56.

Status changed to Fixed.

@gopherbot
Copy link

Comment 7 by tegoor:

# ..\misc\cgo\test
--- FAIL: TestParallelSleep (1.03 seconds)
        basic.go:563: difference in start time for two sleep(1) is 36757h25m57.1
58s
        basic.go:568: parallel 1-second sleeps slept for 132326757.158000 second
s
FAIL
scatter = 0049863F
hello from C
FAIL    _/D_/golang/misc/cgo/test       1.844s

@minux
Copy link
Member

minux commented May 22, 2013

Comment 8:

how could two GetTickCount() returns vastly different values?

@minux
Copy link
Member

minux commented Jun 1, 2013

Comment 9:

just for the record, failure in #7 is actually another real bug, see issue #5603.

@davecheney
Copy link
Contributor

Comment 10:

@9, wow, i'm amazed that this test actually caught a real bug for once.

@minux
Copy link
Member

minux commented Jun 1, 2013

Comment 11:

yeah, and i'm glad we don't skip the test when #7 is reported.

@bradfitz bradfitz added the fixed label Jun 1, 2013
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants