From patchwork Mon Jul 18 14:04:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9234613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5F4CC60756 for ; Mon, 18 Jul 2016 14:06:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 527542026B for ; Mon, 18 Jul 2016 14:06:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4728A269E2; Mon, 18 Jul 2016 14:06:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 397662026B for ; Mon, 18 Jul 2016 14:06:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP99j-00085p-Cd; Mon, 18 Jul 2016 14:04:23 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP99i-00085A-3G for xen-devel@lists.xenproject.org; Mon, 18 Jul 2016 14:04:22 +0000 Received: from [85.158.143.35] by server-1.bemta-6.messagelabs.com id AE/12-21406-5E1EC875; Mon, 18 Jul 2016 14:04:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeJIrShJLcpLzFFi42JxWrohUvfJw55 wg2NtFhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aVObuZC15yVnx9y9bAeJu9i5GTQ0LAX+LH zUusIDabgK5E05a/bF2MHBwiAioSt/cagISZBbQl9q6bywxiCwtESBxcuosFxGYRUJWYsHI1I 4jNK+AhMePpHVaIkXIS54//BKvnFPCUeLLtFFiNEFBN+5TlTCDjhQTUJOauj4doFZQ4OfMJC8 QqCYmDL14wg5RICHBL/O22n8DINwtJ1SwkVQsYmVYxqhenFpWlFuka6yUVZaZnlOQmZuboGhq Y6eWmFhcnpqfmJCYV6yXn525iBIYSAxDsYOz453SIUZKDSUmU12pBT7gQX1J+SmVGYnFGfFFp TmrxIUYZDg4lCd76B0A5waLU9NSKtMwcYFDDpCU4eJREeEtB0rzFBYm5xZnpEKlTjIpS4rzeI AkBkERGaR5cGyySLjHKSgnzMgIdIsRTkFqUm1mCKv+KUZyDUUkYYjtPZl4J3PRXQIuZgBYbqH aDLC5JREhJNTAmPLY1MWMVM58Q+fzI9VVtx5Pc5eqDcpINH5/7adkTVmQxsTwtgv+lhVTs6Z2 zpedM97oWnsy/U+3v1TLWmy7RbpY/67M3u0XVCZ8+cWrluxLp3M0VE+Nl7X51395tz2C8wVnB 47T3d/mZTAGt+6/Nsil/PrFWZa+k89L2qfHyTXJPN1i1KyixFGckGmoxFxUnAgCzINpFnwIAA A== X-Env-Sender: prvs=0007674de=Ian.Jackson@citrix.com X-Msg-Ref: server-14.tower-21.messagelabs.com!1468850659!24380249!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21366 invoked from network); 18 Jul 2016 14:04:20 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-14.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 18 Jul 2016 14:04:20 -0000 X-IronPort-AV: E=Sophos;i="5.28,384,1464652800"; d="scan'208";a="366816126" From: Ian Jackson To: Date: Mon, 18 Jul 2016 15:04:04 +0100 Message-ID: <1468850646-2283-3-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468850646-2283-1-git-send-email-ian.jackson@eu.citrix.com> References: <1468850646-2283-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 3/5] ms-flights-summary: Invent a `prep.alloc.' pseudo job state X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This allows us to separate out `preparing' jobs into ones which are in our data plan and ones which are not. The ones which are not may not have quite started to run ts-hosts-allocate, or may still be in the planning queue and not made it into the projection. In either case we don't have an estimated finish time for them. Signed-off-by: Ian Jackson --- ms-flights-summary | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ms-flights-summary b/ms-flights-summary index 98cca90..9a814ea 100755 --- a/ms-flights-summary +++ b/ms-flights-summary @@ -124,6 +124,9 @@ sub gather_stats($) { END for my $row (@{$stats}) { my ($job,$stat) = @$row; + if ($stat eq 'preparing') { + $stat = %{ $f->{Jobs}{$job}{Reso} } ? 'prep.alloc.' : 'preparing'; + } $f->{Stats}{lc($stat)}++; $global_stats{lc($stat)}++; } @@ -137,11 +140,12 @@ sub sort_stats($) { my %so = ( queued => 1, preparing => 2, - blocked => 3, - running => 4, - pass => 5, - fail => 6, - broken => 7, + 'prep.alloc.' => 3, + blocked => 4, + running => 5, + pass => 6, + fail => 7, + broken => 8, ); return sort { ($so{$a}//0) <=> ($so{$b}//0) } (keys %{$stats}); }