From 369b946a3556d095df98bae3e9a8eed2aafb865e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 11 Nov 2014 19:38:03 +0000 Subject: [PATCH] ts-hosts-allocate-Executive: Radically reduce the previously_failed bonus Make osstest less obsessive about sticking to failing hosts if they are persistently unavailable. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 7ffbc8c..4d5e3bb 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -547,8 +547,12 @@ sub hid_recurse ($$) { my $cost= $start_time + $duration_for_cost - - ($previously_failed ==@hids ? 366*86400 : - $previously_failed_equiv==@hids ? 365*86400 : + - ($previously_failed ==@hids ? 7*86400 : + $previously_failed_equiv==@hids ? 6.5*86400 : + # We wait 7d extra to try a failing test on the same + # hardware, or 6.5d on `equivalent' hardware (as defined by + # equiv-* flags). Compared to `equivalent' hardware, we + # wait 12h to try it on exactly the same. 0) + ($previously_failed || $previously_failed_equiv ? (-$max_variation_bonus+$variation_bonus) : -$variation_bonus) -- 2.39.5