Modify the builder_bonuses calculation so that it provides variable bonus time based on the builder, rather than a constant value.
Signed-off-by: Trevor Gamblin <[email protected]> --- builders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builders.py b/builders.py index 5773950..f94d1dd 100644 --- a/builders.py +++ b/builders.py @@ -145,7 +145,7 @@ for builder in config.subbuilders: # Add 2 seconds * length as the weight so tightly constrained builders go first builder_bonuses = {} for builder in config.builder_to_workers: - bonus = (len(config.workers) - len(config.builder_to_workers)) * 2 + bonus = (len(config.workers) - len(config.builder_to_workers[builder])) * 2 builder_bonuses[builder] = timedelta(seconds=bonus) # Modified default algothirm from buildbot with a bonus mechanism (thanks tardyp!) -- 2.31.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#55186): https://lists.yoctoproject.org/g/yocto/message/55186 Mute This Topic: https://lists.yoctoproject.org/mt/86679036/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
