by titzer · 3y ago · 0 comments
We could use a time-faking library, but sometimes this is unavoidable if some dependency, whether from a 3rd party or in stdlib, depends on reliable timing.
I'm wondering how other Go devs approach this.
https://go.dev/doc/articles/race_detector https://go.dev/blog/race-detector
It only logs when a race condition happens, and it may have a non-negligible impact on performance, but it should print useful info to aid in debugging.
A solution would be to run CI on self-managed nodes that behave more reliably, but that has maintenance costs that we don't want to deal with.