Tips for reproducing flaky Go tests

116 views
Skip to first unread message

ma...@influxdata.com

unread,
Aug 15, 2019, 2:16:24 PM8/15/19
to golang-nuts
I put together a blog post on reproducing flaky Go tests: https://www.influxdata.com/blog/reproducing-a-flaky-test-in-go/

This was the result of what I've learned spending many, many hours hunting down many unreliable tests.

I hope these tips can help you out next time you have a test that fails in CI but passes locally.

Maxim Fateev

unread,
Aug 16, 2019, 8:50:33 PM8/16/19
to golang-nuts
I wish Go had a deterministic execution mode with predefined randomization seed. The to reproduce such test you would only need a single seed number. We built such system for testing our distributed application and it was very useful to track rare race conditions. 

Steven Hartland

unread,
Aug 17, 2019, 5:05:20 AM8/17/19
to Maxim Fateev, golang-nuts
We’ve found stress invaluable in helping to reproduce flaky tests

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a56c15a3-6a96-47ab-8b09-147d29c05f23%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages