Split tests into even time slaves.
I have a full list of how long each test takes.
They are python behave test features.
Slaves are created via Jenkins.
I have tests split out on to x amount of slaves. These slaves run the tests and report back.
Problem: Some of the slaves are getting bigger longer running tests than others. eg. one will take 40 mins and another will take 5 mins.
I want to average this out.
I currently have a list of the file and time it takes.
[
['file_A', 501],
['file_B', 350],
['file_C', 220],
['file_D', 100]
]
extra... there are n number of files.
At the moment these are split in to lists by number of files, I would like to split them by the total time taken. eg... 3 slaves running these 4 tests would look like...
[
[
['file_A', 501],
],
[
['file_B', 350],
],
[
['file_C', 220],
['file_D', 100]
]
]
Something like that...
Please help
Thanks!