Are random CI failures getting you down?

Are you pretty sure it's a timing issue but just can't quite reason it out?

Are you unable to replicate the problem locally on your mac?

Try my new script to slow your machine to a crawl. It'll fix you test problems guaranteed!*

* Not a guarantee

#!/usr/bin/env ruby

# leave one CPU free to run tests:
cpus = `sysctl -n hw.ncpu`.to_i - 1

puts("Forking #{cpus} processes")
(0..cpus).each { Process.spawn("yes > /dev/null") }


Dodgy? Yes.

Handy? Very.

blog comments powered by Disqus