From 0eff4d39064a66ac6c62a09e8a87b6269ee75444 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 31 Oct 2022 10:19:36 +0100 Subject: [PATCH] Add some comment on the purpose --- script/rspec-slow-repeat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/rspec-slow-repeat b/script/rspec-slow-repeat index 0202c8da33..081408f3f6 100755 --- a/script/rspec-slow-repeat +++ b/script/rspec-slow-repeat @@ -25,6 +25,9 @@ fi echo "Running $n times with $processors cores" +# The purpose here is to occupy the CPU (yes command is not multi-threaded and it occupies only one core) +# Start one process for each core, and then simulating a very busy CI environment with a 100% CPU load +# increasing the chance of race conditions when executing specs. for i in `seq $processors`; do yes > /dev/null & done