From: Ian Jackson Subject: [OSSTEST PATCH 5/6] cs-bisection-step: Do not treat repro attempts as flail Date: Wed, 20 May 2015 13:54:12 +0100 Message-ID: <1432126453-22068-6-git-send-email-ian.jackson@eu.citrix.com> References: <1432126453-22068-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yv3Vz-0002QG-Si for xen-devel@lists.xenproject.org; Wed, 20 May 2015 12:54:27 +0000 In-Reply-To: <1432126453-22068-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 The need_repro machinery deliberarely makes attempts to reproduce various results. This can cause the flail detector to trigger when not intended. In particular, the bisector may have (for some reason[1]) restarted with a new baseline, and the temporarally-stripy pass/fail requirement would then require the basis fail to be repro'd, again. [1] Currently this happens much more often than is desirable. This will be fixed in a moment. Fix this by only considering, for the purposes of flail, flights which are no older than the first repro (the basis pass). Signed-off-by: Ian Jackson --- cs-bisection-step | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cs-bisection-step b/cs-bisection-step index 743a3e5..da13927 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -742,6 +742,7 @@ sub conflicted_warning ($$) { } our $repro_lastflight; +our $repro_firstflight = 0; our $repro_count; sub need_repro_sequence ($$) { @@ -780,6 +781,7 @@ sub need_repro ($$$) { ($repro_count ? "Repro" : "Result"). " found: flight $f->{Flight} ($st), for $what\n"; $repro_lastflight= $f->{Flight}; + $repro_firstflight ||= $f->{Flight}; return 0; } print STDERR "Need to reproduce $what ($st); had $repro_count already.\n"; @@ -1246,12 +1248,13 @@ END my $equalflightsq = $dbh_tests->prepare($equalflightsqt); db_retry($popflight,'constructing', $dbh_tests,[qw(flights)], sub { - print STDERR "Checking for flail...\n"; + print STDERR "Checking for flail (since $repro_firstflight)...\n"; my ($minflight) = $dbh_tests->selectrow_array(<= $repro_firstflight ORDER BY flight DESC LIMIT 100 ) last100 ORDER BY FLIGHT ASC LIMIT 1 -- 1.7.10.4