Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AABEAC433DF for ; Mon, 1 Jun 2020 12:45:09 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 82F2D20679 for ; Mon, 1 Jun 2020 12:45:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 82F2D20679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=eu.citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jfjoC-0002fY-2n; Mon, 01 Jun 2020 12:44:52 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jfjoB-0002fM-4r for xen-devel@lists.xenproject.org; Mon, 01 Jun 2020 12:44:51 +0000 X-Inumbo-ID: a606e636-a405-11ea-9947-bc764e2007e4 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a606e636-a405-11ea-9947-bc764e2007e4; Mon, 01 Jun 2020 12:44:36 +0000 (UTC) Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by chiark.greenend.org.uk (Debian Exim 4.84_2 #1) with esmtp (return-path ijackson@chiark.greenend.org.uk) id 1jfjnv-0006zf-7q; Mon, 01 Jun 2020 13:44:35 +0100 From: Ian Jackson To: xen-devel@lists.xenproject.org Subject: [OSSTEST PATCH 4/4] cs-bisection-step: Do not insist on urls in main history search Date: Mon, 1 Jun 2020 13:44:30 +0100 Message-Id: <20200601124430.29761-4-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200601124430.29761-1-ian.jackson@eu.citrix.com> References: <20200601124430.29761-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" If a Xen build fails, but we are trying to bisect something involving libvirt, the libvirt job does not really run. It does not populate the tree_ values for its git submodules - that would involve actually booking out a host and cloning it. The effect is that xen build failures which occur somewhere in the range of a libvirt bisection cause total failure (actually, looping bisection) rather than treating the build failure as `blocked'. Fix this by tolerating trees with missing urls - but only during the main history search. Most of the rest of the time we need the urls, mainly because we are going to feed them to adhoc-revtuple-generator and mention them in our output. It could now happen that trees appear in the main bisection history which weren't in our bases. These end up being ignored by flight_rtuple. This is not ideal but it will do for now. In any case that aspect is no worse than before. Signed-off-by: Ian Jackson --- cs-bisection-step | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/cs-bisection-step b/cs-bisection-step index 2f75313e..478baa5b 100755 --- a/cs-bisection-step +++ b/cs-bisection-step @@ -179,9 +179,8 @@ sub relevant_hosts ($) { END } -sub flight_rmap ($) { - my ($flight) = @_; - my $need_urls = 1; +sub flight_rmap ($$) { + my ($flight, $need_urls) = @_; $dbh_tests->do(<{flight}); + my $failrmap = flight_rmap($tryfail->{flight},1); next unless $failrmap; my $checkbasisvcs = sub { my ($trybasisflight) = @_; - my $basisrmap = flight_rmap($trybasisflight); + my $basisrmap = flight_rmap($trybasisflight,1); my @bad; #print STDERR Dumper($failrmap, $basisrmap); foreach my $tree (keys %$failrmap) { @@ -480,8 +479,8 @@ END our (%nodes, @latest_rtuple, @basispass_rtuple); sub digraph_whole () { - my $latest_rmap= flight_rmap($latest_flight); - my $basispass_rmap= flight_rmap($basispass_flight); + my $latest_rmap= flight_rmap($latest_flight,1); + my $basispass_rmap= flight_rmap($basispass_flight,1); if (!defined $basispass_rmap) { die "Basis pass $basispass_flight rmap indeterminate/wrong\n"; } -- 2.20.1