From: Ian Jackson Subject: [OSSTEST PATCH 9/9] ts-hosts-allocate-Executive: Radically reduce the previously_failed bonus Date: Tue, 11 Nov 2014 19:41:50 +0000 Message-ID: <1415734910-4647-10-git-send-email-ian.jackson@eu.citrix.com> References: <1415734910-4647-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XoHKE-0005iv-7f for xen-devel@lists.xenproject.org; Tue, 11 Nov 2014 19:42:05 +0000 In-Reply-To: <1415734910-4647-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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 590fe98..1378f25 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) -- 1.7.10.4