From: Ian Jackson Subject: [OSSTEST PATCH 14/25] reporting: sg-report-flight should ignore missing jobs Date: Wed, 17 Jun 2015 17:45:10 +0100 Message-ID: <1434559521-8751-15-git-send-email-ian.jackson@eu.citrix.com> References: <1434559521-8751-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.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5GTM-0004eo-2N for xen-devel@lists.xenproject.org; Wed, 17 Jun 2015 16:45:56 +0000 In-Reply-To: <1434559521-8751-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 function findaflight should not, when the caller specifies a job, find a flight which does not contain that job at all. One effect of allowing it to find such flights is that it might find a bisection flight and try to use it as a basis for claiming a regression, or as a justification for something not being a regression, and then complain that all the missing steps in the bisection flight are `blocked'. This can be seen in the report for 58627: test-amd64-i386-xl-qemuu-winxpsp3 6 xen-boot fail blocked in 56366-bisect After this patch, a report generated for 58627 no longer mentions 56366 at all. Signed-off-by: Ian Jackson --- sg-report-flight | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sg-report-flight b/sg-report-flight index d3c0166..6481521 100755 --- a/sg-report-flight +++ b/sg-report-flight @@ -178,10 +178,23 @@ END return undef; } + my @flightsq_params; + my $flightsq_jobcond='TRUE'; + if (defined $job) { + push @flightsq_params, $job; + $flightsq_jobcond = <execute(@blessings); + $flightsq->execute(@flightsq_params, @blessings); my $buildflightsq= db_prepare(<