-
Notifications
You must be signed in to change notification settings - Fork 28
Flaky test incorrectly determined #8
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
Comments
Can you please try the latest
|
Yes, that did it. It eliminate the flaky test message.
Thanks,
Allan
… On Jan 23, 2020, at 2:15 PM, Gregory Petrosyan ***@***.***> wrote:
Can you please try the latest master (import path is now pgregory.net/rapid)? . This is what I get (on both Windows and Linux, can't test on OS X right now):
λ go test -run=Abs6
--- FAIL: TestAbs6 (0.00s)
failure_external_test.go:133: [rapid] failed after 1 tests: square of result not equal to square of input: 0, result -1
To reproduce, specify -run="TestAbs6" -rapid.seed=1579804795669640702
Failed test output:
failure_external_test.go:134: [rapid] draw value: 0
failure_external_test.go:137: square of result not equal to square of input: 0, result -1
FAIL
exit status 1
FAIL pgregory.net/rapid 0.547s
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#8?email_source=notifications&email_token=AK6HSUBKHOOU4NS2JPL7FGTQ7HUDVA5CNFSM4KKZJZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYQDHI#issuecomment-577831325>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK6HSUFE2PTAPNLOCIWOUCTQ7HUDVANCNFSM4KKZJZUA>.
|
Great! I've found go module system to be a little flaky when it comes to changes of import path. E.g. for me, https://play.golang.org/p/ZdNjIGzT_EX says
which is bogus, because the only published version of |
The playground import should work properly now. The issue is that the playground uses modules from proxy.golang.org, which only gets updated when someone tries to get a version from it. In addition, the playground caches results, including errors. To fix this kind of thing in the future, just run https://play.golang.org/p/IZ4XfquYYFG https://pkg.go.dev/pgregory.net/[email protected]?tab=versions |
Thanks for the information; it is unfortunate to have to work around the playground cache. I did try the The weird thing is, sometimes playground did work, so playground cache is not always used; also, the cache is not shared between different playground URLs, which is unexpected. |
See #8 and golang/go#31944 (comment) for the background.
Uh oh!
There was an error while loading. Please reload this page.
I am not sure how a flaky test is determined. It seems like a failed test is run again, and the stack tracebacks are compared. I have a very simple example without any non-determinism which is marked flaky, and the tracebacks look the same.
The text was updated successfully, but these errors were encountered: