Commit 661d8ec
committed
Improve RSPEC parallel task split
Before specs:all rake task did split up all specs on all executors
randomly. This ended up in threads with many small tests idling and
wasting resources.
The new method on the first run assigns tests based on the file
size(more tests means more work) and after the first run buy the
execution time which was measured into the tmp/parallel_runtime_rspec.log file.
Ultimately ensuring a more even distribution of work between the rspec
executors.1 parent 7434a62 commit 661d8ec
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
0 commit comments