From nobody Mon Feb 9 16:12:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1595356998; cv=none; d=zohomail.com; s=zohoarc; b=I37SnXvFkk7GBVAfJnYuzBAh82dO95mjXLnE3OaLMp8pWhzVFs0rIGRieJWrH3SkOBho9mncleVq9xwlnbRfgRNj4L3jVlarRaXiPFQ81qMIJ8238C6/dghPJc55kKTMZz7NhipYzqb0+0cZMPPDFslOvWW7eYs+Y5s367mMBX0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595356998; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=KDeXb8CgqJ6q12AxGvh19HaEw0ejDr2tCkcqBjl+JSM=; b=BtjYfVs3nyieAVIWZ48O35nMSdPmxa+98hzyE7/guXrXCJK5ymAJcCqud1se5EMpCROjW9AbYzJIwjynOSctQ4nZuwMcV+thhMVsAOyz7EzhF3X97vND/DY3b2BkUV0Wlgm3vz/Dnrjna56FagEV0bknCbgC6u5T/vj6bBT9rHE= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1595356998806499.3518356729322; Tue, 21 Jul 2020 11:43:18 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxxEE-0002Ih-EB; Tue, 21 Jul 2020 18:43:02 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxxED-0001xV-Nj for xen-devel@lists.xenproject.org; Tue, 21 Jul 2020 18:43:01 +0000 Received: from chiark.greenend.org.uk (unknown [2001:ba8:1e3::]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e9bcdb94-cb81-11ea-85a2-bc764e2007e4; Tue, 21 Jul 2020 18:42:22 +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 1jxxDZ-0001u7-MD; Tue, 21 Jul 2020 19:42:21 +0100 X-Inumbo-ID: e9bcdb94-cb81-11ea-85a2-bc764e2007e4 From: Ian Jackson To: xen-devel@lists.xenproject.org Subject: [OSSTEST PATCH 09/14] duration_estimator: Ignore truncated jobs unless we know the step Date: Tue, 21 Jul 2020 19:42:00 +0100 Message-Id: <20200721184205.15232-10-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200721184205.15232-1-ian.jackson@eu.citrix.com> References: <20200721184205.15232-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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" Content-Type: text/plain; charset="utf-8" If we are looking for a particular step then we will ignore jobs without that step, so any job which was truncated before it will be ignored. Otherwise we are looking for the whole job duration and a truncated job is not a good representative. This is a bugfix (to duration estimation), not a performance improvement like the preceding and subsequent changes. Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index c272e9f2..3cd37c14 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -1142,6 +1142,10 @@ sub duration_estimator ($$;$$) { # estimated (and only jobs which contained that step will be # considered). =20 + my $or_status_truncated =3D ''; + if ($will_uptoincl_testid) { + $or_status_truncated =3D "OR j.status=3D'truncated'!"; + } my $recentflights_q=3D $dbh_tests->prepare(<=3D ? ORDER BY f.started DESC --=20 2.20.1