From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902897; cv=none; d=zoho.com; s=zohoarc; b=djM9e5TpgiN3AHU8ymUCKJ1DnJLfs6uPRI5LtFD2KYHa9GWnZQ1Id/fB86GO8/ZpAShb2Jgqq1RC7CsOn2zibg3Wr6rFnRH9MXStrQrEpt1KeIhDv/yxVFSr0U/k0WUW0PDin3ixBm4zNMwRfOYu8XojO0GPx5RC1f91BQQxtwA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902897; h=Content-Type: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:ARC-Authentication-Results; bh=7UVSfCnTgxwK27EQ5CxshwVnq3UlAQKDcGaZVMDAF/U=; b=ZbZiJNSbLDN8Hwpt9ca+M4Lyup/i94eGwK0vRdK5LamHczfvUWcWo5hVa1RNbp7mNMc54F9MUVOt4hdFA7Mr6cNSnZInalbMV8qBsp9Wc7i4COUMjBJiLtIBLPxkN2vSDU+WYSxybdrNr2eWd5sqkdeKcKAkHraDR4VIXfceMiI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 155690289747113.13006087263534; Fri, 3 May 2019 10:01:37 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXm-00089F-06; Fri, 03 May 2019 17:00:18 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXk-00086n-4c for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:16 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e414a79c-6dc4-11e9-b966-872648a61e13; Fri, 03 May 2019 17:00:02 +0000 (UTC) X-Inumbo-ID: e414a79c-6dc4-11e9-b966-872648a61e13 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085329" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:47 +0100 Message-ID: <20190503165957.5960-2-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 01/11] mg-execute-flight: Save an mro in tmp/ X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This may be useful for some things. For example, it will be used in just a moment. Signed-off-by: Ian Jackson --- mg-execute-flight | 1 + 1 file changed, 1 insertion(+) diff --git a/mg-execute-flight b/mg-execute-flight index b3cdf431..391f4810 100755 --- a/mg-execute-flight +++ b/mg-execute-flight @@ -81,6 +81,7 @@ echo >&5 "flight $flight reporting" =20 ./sg-report-flight $basisflightopt \ --html-dir=3D$OSSTEST_HTMLPUB_DIR/$flight/ \ + --machine-readable-output=3Dtmp/$flight.mro \ $flight >tmp/$flight.report =20 subject=3D`sed -n 1p Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902887366488.7880427146748; Fri, 3 May 2019 10:01:27 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXZ-0007uW-94; Fri, 03 May 2019 17:00:05 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXY-0007qM-JC for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:04 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e4b2618c-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:03 +0000 (UTC) X-Inumbo-ID: e4b2618c-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085330" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:48 +0100 Message-ID: <20190503165957.5960-3-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 02/11] cs-adjust-flight: Break out copy_jobs_* X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No functional change. Signed-off-by: Ian Jackson --- cs-adjust-flight | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/cs-adjust-flight b/cs-adjust-flight index ee1d917c..badabeff 100755 --- a/cs-adjust-flight +++ b/cs-adjust-flight @@ -194,10 +194,8 @@ sub do_rm_job ($) { verbose "$dstflight.$job job deleted\n" if $count; } =20 -sub copy_jobs ($$) { - my ($srcflight, $jobs) =3D @_; - prep_rm_jobs(); - my @job_copy_qs =3D map { $dbh_tests->prepare($_) } +sub copy_jobs_qs () { + map { $dbh_tests->prepare($_) } ("INSERT INTO jobs (flight, job, recipe, status)". " SELECT ?, job, recipe, 'queued'". " FROM jobs". @@ -206,12 +204,22 @@ sub copy_jobs ($$) { " SELECT ?, job, name, val, 'f'". " FROM runvars". " WHERE flight =3D ? AND job =3D ? AND NOT synth"); +} +sub copy_jobs_do ($$) { + my ($qs, $srcflight, $srcjob) =3D @_; + $_->execute($dstflight, $srcflight, $job) foreach @$qs; + verbose "$dstflight.$job job created from $srcflight.$job\n"; +} + +sub copy_jobs ($$) { + my ($srcflight, $jobs) =3D @_; + prep_rm_jobs(); + my @job_copy_qs =3D copy_jobs_qs; for_jobs($dstflight, $jobs, \&do_rm_job, 1); for_jobs($srcflight, $jobs, \&do_rm_job); for_jobs($srcflight, $jobs, sub { my ($job) =3D @_; - $_->execute($dstflight, $srcflight, $job) foreach @job_copy_qs; - verbose "$dstflight.$job job created from $srcflight.$job\n"; + copy_jobs_do(\@job_copy_qs, $srcflight, $job); }); } =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902894; cv=none; d=zoho.com; s=zohoarc; b=gLSIRiBL54ULi7MgDHp7FzouBKYswKmuu+wueULtAip4p4UC8atdx8miU6oQqAQQsnRuWADEwLRjfaiSWq/2UkM5Xg75h1nlbLWPt51MtTiKcdOfgX78qh8rkA2PqJ6i/YH7yAAc7//Gjy2d4oHGD3E6rZcr/TpHa3lhEMLju8E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902894; h=Content-Type: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:ARC-Authentication-Results; bh=3J2jmg5FVfLzpt00Os08tDkmX393/czNUwN6QR1Z2ts=; b=jPv4I7CLhQ3pI8g0gDp3E7GXwZGmYSyp924CMjU5eU3YV5AtphVDI4vbpwJcVV29yu/BDa5U65ejLx83HFV+KnPc0A41NXdlSKlLtD7Xd3XExC2n95P8pHzTHI3UDrDY89k9YNQAZrldg1gj8O1xrSIljWYl/r98eJq7yU/cMPo= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902894294436.25457102181883; Fri, 3 May 2019 10:01:34 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXb-000815-HY; Fri, 03 May 2019 17:00:07 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXZ-0007xe-St for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:05 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e578f492-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:04 +0000 (UTC) X-Inumbo-ID: e578f492-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085331" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:49 +0100 Message-ID: <20190503165957.5960-4-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 03/11] cs-adjust-flight: Use db_prepare and honour -D -D for sql dumps X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This makes debugging it easier. No functional change with zero or one occurrences of -D. Signed-off-by: Ian Jackson --- cs-adjust-flight | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/cs-adjust-flight b/cs-adjust-flight index badabeff..cc1684b4 100755 --- a/cs-adjust-flight +++ b/cs-adjust-flight @@ -75,6 +75,7 @@ csreadconfig(); our $debug =3D 0; =20 open VERBOSE, ">/dev/null" or die $!; +open DEBUG, ">/dev/null" or die $!; our $verbose_buffer; =20 while (@ARGV && $ARGV[0] =3D~ m/^\-/) { @@ -83,6 +84,7 @@ while (@ARGV && $ARGV[0] =3D~ m/^\-/) { if (m/^-v$/) { open VERBOSE, ">&STDERR" or die $!; } elsif (m/^-D$/) { + open DEBUG, ">&STDERR" if $debug; $debug =3D 1; } else { die "$_ ?"; @@ -138,9 +140,9 @@ sub for_things ($$$$$$$) { my ($spec, $fn, $ifnone, $table, $keycol, $basecond, $basecondvals) =3D @_; =20 - my $thing_q =3D $dbh_tests->prepare + my $thing_q =3D db_prepare ("SELECT * FROM $table WHERE $basecond AND $keycol =3D ?"); - my $things_q =3D $dbh_tests->prepare + my $things_q =3D db_prepare ("SELECT * FROM $table WHERE $basecond"); =20 my ($specfn,$exact) =3D notspec_exfn("FOR_THINGS $table.$keycol",$spec= ); @@ -182,7 +184,7 @@ our @job_rm_qs; =20 sub prep_rm_jobs () { return if @job_rm_qs; - @job_rm_qs =3D map { $dbh_tests->prepare($_) } + @job_rm_qs =3D map { db_prepare($_) } ("DELETE FROM runvars WHERE flight =3D ? AND job =3D ?", "DELETE FROM jobs WHERE flight =3D ? AND job =3D ?"); } @@ -195,7 +197,7 @@ sub do_rm_job ($) { } =20 sub copy_jobs_qs () { - map { $dbh_tests->prepare($_) } + map { db_prepare($_) } ("INSERT INTO jobs (flight, job, recipe, status)". " SELECT ?, job, recipe, 'queued'". " FROM jobs". @@ -205,8 +207,8 @@ sub copy_jobs_qs () { " FROM runvars". " WHERE flight =3D ? AND job =3D ? AND NOT synth"); } -sub copy_jobs_do ($$) { - my ($qs, $srcflight, $srcjob) =3D @_; +sub copy_jobs_do ($$$) { + my ($qs, $srcflight, $job) =3D @_; $_->execute($dstflight, $srcflight, $job) foreach @$qs; verbose "$dstflight.$job job created from $srcflight.$job\n"; } @@ -253,9 +255,9 @@ sub change__copy_jobs { copy_jobs($srcflight, $jobs); } =20 -our $runvar_rm_q =3D $dbh_tests->prepare +our $runvar_rm_q =3D db_prepare ("DELETE FROM runvars WHERE flight =3D ? AND job =3D ? AND name =3D ?"= ); -our $runvar_insert_q =3D $dbh_tests->prepare +our $runvar_insert_q =3D db_prepare ("INSERT INTO runvars (flight, job, name, val, synth)". " VALUES (?, ?, ?, ?, 'f')"); =20 @@ -430,7 +432,7 @@ sub change__job_status { die unless @changes >=3D 1; my $jobs =3D shift @changes; =20 - my $q =3D $dbh_tests->prepare(<prepare(<prepare(<prepare("SELECT * FROM steps WHERE flight =3D ?"); + db_prepare("SELECT * FROM steps WHERE flight =3D ?"); $steps_q->execute($dstflight); my $step =3D $steps_q->fetchrow_hashref(); if ($step) { --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902877; cv=none; d=zoho.com; s=zohoarc; b=XB2O52HerG0Na1Z8Kbfsvi76KjpBwamjwPOoC2vlKNXjMEuRJowE1c1wm9Bl8IIA3LGgSp26cskIxsyvxq17PxG+ztOmGW+KGVjXco2ceeLye3VzqayZmK9iAeOkjgGrAZKnFjTukZvO5zUWCzgmz/hom/CJCKODwU6ynHUHQiU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902877; h=Content-Type: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:ARC-Authentication-Results; bh=7Ip5pOc1oKutCkqulMxoeBJz3qnE6H+UzKp81hq+vww=; b=kdg1jhEsBwvFvNY5Bj+nyGxHySez04sOIMgPtdPWoGUd+e+qxZe+OdsILMn+SwVFvhif9XGlIaDMatNXRdUZeD4hkhqdhfBhd56psA3/cZAbOtP6yyrlP79gQ9Dw9WOkwQpmjyVc/9RvnHS72S/wrigiFwJtI3pFCvUk6oQQMDM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902877101297.4351398111304; Fri, 3 May 2019 10:01:17 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXc-00081o-SZ; Fri, 03 May 2019 17:00:08 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXb-00080y-0X for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:07 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e67ad4ac-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:06 +0000 (UTC) X-Inumbo-ID: e67ad4ac-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085334" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:50 +0100 Message-ID: <20190503165957.5960-5-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 04/11] mg-repro-setup: Improve a doc message slightly X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Signed-off-by: Ian Jackson --- mg-repro-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-repro-setup b/mg-repro-setup index 6ed4d85e..c8bcad33 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -33,7 +33,7 @@ usage () { cat < is \`host') =20 OPTIONs - -t estimated duration (default =3D 28d) + -t estimated overall allocation lifetime (default =3D= 28d) --rogue bypass queuing system and allocate now --capture do not suppress log capture -r=3D set runvar --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902895; cv=none; d=zoho.com; s=zohoarc; b=jSvNUMfGRk5qnhx7kPd+HtvcvnpxHJEBcOTxXb/zHNEN1/UMjMKye5NjhmX2/rJz09bZ8pXL/uYeQlvB2Eq9T5aIih1bZdv6RgMecWidP94HGd28aJMykOAVgLUPcbD3LTXxVS2+RQKNRrpwAruSwCAh4kxY5ZNnPiwkDGEyOFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902895; h=Content-Type: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:ARC-Authentication-Results; bh=HPE/3Wpb57Kbi7JfEhJ+T9XXV5SOi5mGUOb1WEWoGKo=; b=NkT7jmJelZibgGXqOQlaR9hVuIu0xS8w+0QQQJN00+CL8CADQ+9tmklv2zRYS295ezS6xayJYfrHWSifOCQjSWugFTORZqakUcIwZk3Z/aFvl15j6iAFvHPA6uHzAhQnTIHdn/Rm5CiQdKM90ChrbNXLlGCrYIzcbFQz6EZwAK0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902895446301.4911613801785; Fri, 3 May 2019 10:01:35 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXl-00088R-JZ; Fri, 03 May 2019 17:00:17 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXk-00086o-4i for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:16 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e58115a2-6dc4-11e9-9293-077e3ee12d0c; Fri, 03 May 2019 17:00:06 +0000 (UTC) X-Inumbo-ID: e58115a2-6dc4-11e9-9293-077e3ee12d0c X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085336" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:51 +0100 Message-ID: <20190503165957.5960-6-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 05/11] mg-repro-setup: Break out compute_adjusts X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No functional change. Signed-off-by: Ian Jackson --- mg-repro-setup | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index c8bcad33..10ab65a8 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -54,7 +54,6 @@ set -e -o posix =20 mgexecflags=3D() adjustsets=3D() -adjusts=3D() allocs=3D() logfile=3Dtmp/mg-repro-setup.log duration=3D28d @@ -104,14 +103,17 @@ adjrunvar () { delrunvar "$1" adjusts+=3D(runvar-set "$job" "$1" "$2") } - -for arg in "${adjustsets[@]}"; do - case "$arg" in - !*|^*) delrunvar "${arg#?}" ;; - *=3D*) adjrunvar "${arg%%=3D*}" "${arg#*=3D}" ;; - *) bad-adjuistset-pattern ;; - esac -done +compute_adjusts () { + adjusts=3D() + for arg in "$@"; do + case "$arg" in + !*|^*) delrunvar "${arg#?}" ;; + *=3D*) adjrunvar "${arg%%=3D*}" "${arg#*=3D}" ;; + *) bad-adjuistset-pattern ;; + esac + done +} +compute_adjusts "${adjustsets[@]}" =20 while [ $# -ne 0 ]; do arg=3D$1; shift --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902891; cv=none; d=zoho.com; s=zohoarc; b=ciFXRpR3uhphYErjh5givfGWoESf+QNe0GoizWYLieu7LvJH4obxW89BeUtvviCju2nw6htrSXT0wAcYVDkhZWA8HO9IT842VPy9xGlAaOU2sRdm1QCEBsv6hRkMGAONL1OwGCg+b9K+Nsu6YWCVfzLkOIg/x7cwJ3GXUfqFjhk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902891; h=Content-Type: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:ARC-Authentication-Results; bh=urLZUGoD3iJbI0hG9fIZAkres0u7Rxw4d4oV7OFKtww=; b=dkJVhLl/V0xyZeSS6miNuYSCGX9ogP2ukSBu/QJqiCWKkGY9utsJ+KBEqVdMPQe5r2D98KHGczmdvEUlVkU1fBe39fKQQef26EyhIAYnNYDcCrXz3nDJcCrGqG6G3xyEnnCzMZSY66SicIoV/Xw3juVXfouTO+MzCTRedhgUsXc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902891218461.43599295875276; Fri, 3 May 2019 10:01:31 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXd-00081w-6W; Fri, 03 May 2019 17:00:09 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXc-00081Z-8q for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:08 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e6fdcf77-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:06 +0000 (UTC) X-Inumbo-ID: e6fdcf77-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085338" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:52 +0100 Message-ID: <20190503165957.5960-7-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 06/11] mg-repro-setup: Move logging setup to later X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No functional change. Signed-off-by: Ian Jackson --- mg-repro-setup | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index 10ab65a8..b41bf478 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -115,6 +115,13 @@ compute_adjusts () { } compute_adjusts "${adjustsets[@]}" =20 +progressf () { printf >&2 "$@"; } +progress () { progressf "%s\n" "$1"; } + +progress "logging to $logfile" +savelog "$logfile" +exec 3>"$logfile" + while [ $# -ne 0 ]; do arg=3D$1; shift =20 @@ -160,13 +167,6 @@ while [ $# -ne 0 ]; do esac done =20 -progressf () { printf >&2 "$@"; } -progress () { progressf "%s\n" "$1"; } - -progress "logging to $logfile" -savelog "$logfile" -exec 3>"$logfile" - OSSTEST_TASK=3D$(perl -e ' use Osstest; use Osstest::Executive; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902889; cv=none; d=zoho.com; s=zohoarc; b=eK4Bs+Km7/JWvH9NTgwb8GJpTA6teVGgjngMTJ0ITbzqra1FZZZ5CT5l5JFJmQNUpe8fpm1AZWhXNXsor9iZ882zF+84fLaNDagcQmvF4jXGJHSGxDfNhPLGgJ0FEy58qZG45I7C5c6EpSDZVXNIU4zURMM6ghlzuFmt+vGlTPI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902889; h=Content-Type: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:ARC-Authentication-Results; bh=d5I4QpayYK0mxriTfjiDohC0Ro4MQZkMnuUR9h1zVn0=; b=KhFuIrgG6bU2pjGk7jh4MTQDbEI5m4WZvN28wMTNgt287QVz/+opOKknS+1y+U4iWwOB9yCu7RhveV/HJCBf2XDxIba7gu+JIQvnWZ/EY+V5OgB2u8t+CGDdQlRaz87Ymd7YsT+7e2l+lyKFt9pOEmg1wmg+fG+pr+Xhi/GrLrE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902889735314.9394902403825; Fri, 3 May 2019 10:01:29 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXd-000826-GV; Fri, 03 May 2019 17:00:09 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXc-00081a-Ab for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:08 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e766dca4-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:07 +0000 (UTC) X-Inumbo-ID: e766dca4-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085340" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:53 +0100 Message-ID: <20190503165957.5960-8-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 07/11] mg-repro-setup: Allow arguments to badusage X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No functional change with existing call sites. Signed-off-by: Ian Jackson --- mg-repro-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mg-repro-setup b/mg-repro-setup index b41bf478..d63e29b6 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -46,7 +46,7 @@ END =20 } =20 -badusage () { echo >&2 "bad usage"; usage >&2; exit 126; } +badusage () { echo >&2 "bad usage$*"; usage >&2; exit 126; } =20 set -e -o posix =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902892; cv=none; d=zoho.com; s=zohoarc; b=O4GxKSunDOwNb/kNZrha3TJKY2Mi4eKpFRjLv80hJOzac2gOJbts4qbnRydabZXFUHBWQUOy+lDnm+aeOfRbc/r7euSfjVXwPryZstihicy8dKsJBcTwAk1zUtJofzpoCocPXpv1mrPxImE2c0I4B4QyTXi66B6B6Crkk2JddCk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902892; h=Content-Type: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:ARC-Authentication-Results; bh=L5auyc/M18jAGjbz+dnvzwjLnNwFSRSIGQwsd3VhpwY=; b=ZkrzkkyKBukrS0gL3s0y9PsD2gSZQYRaPW5a/ezR7v6RLlFNKKa0wiVO+ktTYGvDD8NRJZ9pf83BgqHBl8LWXPfAwrt2VqZQfz13g49VUntJoNSNxuslDrzLvhCFeknxTqMeVFGISk9tNtiJycdlBfG/eQ/8gmIIag3+eQN+RgM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902892614520.7602113759901; Fri, 3 May 2019 10:01:32 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXl-00087x-86; Fri, 03 May 2019 17:00:17 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXk-00086q-3H for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:16 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id eb861d4b-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:14 +0000 (UTC) X-Inumbo-ID: eb861d4b-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085374" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:54 +0100 Message-ID: <20190503165957.5960-9-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 08/11] mg-repro-setup: Move flight creation up before task creation X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No significant functional change. Signed-off-by: Ian Jackson --- mg-repro-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index d63e29b6..2e1d3b88 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -167,6 +167,9 @@ while [ $# -ne 0 ]; do esac done =20 +flight=3D$(./cs-adjust-flight new:$blessing) +progress "new flight is $flight" + OSSTEST_TASK=3D$(perl -e ' use Osstest; use Osstest::Executive; @@ -176,9 +179,6 @@ OSSTEST_TASK=3D$(perl -e ' ') export OSSTEST_TASK =20 -flight=3D$(./cs-adjust-flight new:$blessing) -progress "new flight is $flight" - if [ "${alloc_idents[*]}" ]; then progress "allocating ${alloc_idents[*]} ..." alloc_output=3Dtmp/$flight.allocations --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902895; cv=none; d=zoho.com; s=zohoarc; b=EbJxiemDQ0hCfAsDpKtYpRPQX2c2UbTlPCTMYI9h1458vT19trHKXfTU8RHAFwJwP/LnYW5KYAZPRcNSAVIvtnIDuIG0beVfRVq9prnNWnjOhmWZbkvBuKMevRyQ0nChgctZORjEON8CgIHvS5i+H/HzZ9oWOTof1QfGMGiPywk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902895; h=Content-Type: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:ARC-Authentication-Results; bh=PUj3e3CL43667A1oQWOcSzTaU81fHXzjX+ScyEUHX3M=; b=lXA4AX5ctfscLM77yF20X4wQrTZh/Y4gHJQd2ejJ0smH8S3ElvEKCX1nveR95qQuZI7uTATbhVoCdSoE4pUQAPFOcWRll7VNopEkDZM9eR08VgIl9RstW89pElsjxEvAXaDsp57ucAGnjhvWrSHqho2ydvRlfIKkQBuD7/vVL3Q= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 155690289503067.80489698541237; Fri, 3 May 2019 10:01:35 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXf-00083Y-QP; Fri, 03 May 2019 17:00:11 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXe-000839-NS for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:10 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e81792a7-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:09 +0000 (UTC) X-Inumbo-ID: e81792a7-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085342" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:55 +0100 Message-ID: <20190503165957.5960-10-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 09/11] mg-repro-flight: Provide --rebuild to make variant build jobs too X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This allows a single command to repro a particular job with a variety of different source code. The implementation technique is: - run the build job in a separate flight, so that it can run with a separate task which gives its host up after the build - do much of the heavy lifting of runvar fiddling etc. in a new helper routine in cs-adjust-flight Signed-off-by: Ian Jackson --- v2: Add a missing `continue' (without which everything goes quite wrong) --- cs-adjust-flight | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++= ++++ mg-repro-setup | 85 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 193 insertions(+), 1 deletion(-) diff --git a/cs-adjust-flight b/cs-adjust-flight index cc1684b4..5be5af38 100755 --- a/cs-adjust-flight +++ b/cs-adjust-flight @@ -469,6 +469,115 @@ END $runvarq->execute($newjob, $dstflight, $oldjob); }) } + +sub change__repro_buildjobs { + # helper for mg-repro-setup + # arguments to this change are + # EXAMPLE-FLIGHT EXAMPLE-JOB THING... + # where THING is + # .BUILDJOB =3DBUILDJOBRUNVAR +TREE=3DURL#REVISION + # (we eat all until it doesn't start with . =3D +) + # stdout output is + # list of runvar settings for repro job + die unless @changes >=3D 2; + my $eflight =3D shift @changes; + my $ejob =3D shift @changes; + my @refspecs; + my @varspecs; + my %treespecs; + while (@changes && $changes[0] =3D~ m/^[.=3D+]/) { + local $_ =3D shift @changes; + if (m/^[.=3D]/) { + push @refspecs, $_; + } elsif (m/^\+(.*?)\=3D(.*)\#(.*)$/) { + die $1 if $treespecs{$1}; + $treespecs{$1} =3D [$2,$3]; + } elsif (m/^-r/) { + push @varspecs, $_; + } else { + die "bad .BUILDJOB / =3DBUILDJOBRUNVAR / +TREE=3DURL#REVISION): $_\n"; + } + } + my $testq =3D db_prepare(<execute($eflight, $ejob); + while (my ($refvar, $bjobref) =3D $testq->fetchrow_array()) { + my ($bflight, $bjob) =3D flight_otherjob($eflight,$bjobref); + if (@refspecs) { + my $y =3D 0; + foreach my $rs (@refspecs) { + if ($rs eq ".$bjob" || $rs eq "=3D$refvar") { + $y =3D 1; + last; + } + } + next unless $y; + } + $buildq->execute($bflight,$bjob,@buildq_xvars); + my %got; + while (my ($treevar) =3D $buildq->fetchrow_array()) { + $treevar =3D~ m/^tree_/ or die "$treevar ?"; + $got{$'} =3D 1; + next unless $treespecs{$'}; + $treespecs{$'}[2]++; + } + next unless %got || @refspecs; + + $bjobs{$bjob} //=3D { Template =3D> $bflight }; + $bjobs{$bjob}{Template} eq $bflight or + die "inconsistent $bjob: $bjobs{$bjob}{Template} !=3D $bflight"; + push @{ $bjobs{$bjob}{Refs} }, $refvar; + $bjobs{$bjob}{Trees}{$_} =3D 1 foreach keys %got; + } + + foreach my $tree (sort keys %treespecs) { + die "unused tree/revision adjustment $tree" + .(@refspecs + ? " (no tree_$tree var in any of " + .(join ' ', map { "$bjobs{$_}{Template}.$_" } + sort keys %bjobs).")" + : '') + unless $treespecs{$tree}[2]; + } + + my @copy_jobs_qs =3D copy_jobs_qs(); + foreach my $bjob (sort keys %bjobs) { + copy_jobs_do(\@copy_jobs_qs, $bjobs{$bjob}{Template}, $bjob); + foreach my $tree (sort keys %{ $bjobs{$bjob}{Trees} }) { + runvar_set($bjob, "tree_$tree", $treespecs{$tree}[0]); + runvar_set($bjob, "revision_$tree", $treespecs{$tree}[1]); + } + foreach (@varspecs) { + if (m/^-r!|^-r^/) { + $runvar_rm_q->execute($dstflight, $bjob, $'); + } elsif (m/^-r(.*?)=3D/) { + runvar_set($bjob, $1, $'); + } else { + die "bad -r $_ ?"; + } + } + foreach my $refvar (@{ $bjobs{$bjob}{Refs} }) { + die "$bjob $refvar $& ?" if + "$bjob.$refvar" =3D~ m{[^+=3D_./,:0-9a-z-]}i; + print "runvar-set . $refvar $dstflight.$bjob\n" or die $!; + } + } +} + sub changes () { debug("CHANGES...\n"); =20 diff --git a/mg-repro-setup b/mg-repro-setup index 2e1d3b88..7f075f4e 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -19,7 +19,7 @@ =20 usage () { cat <] [-r...] + [.BUILDJOB | =3DBUILDJOBRUNVAR...] + +TREE=3DURL#REVISION... + Also use a different build. Specifically, use URL and REVISION + for certain builds which mention TREE and which are referenced=20 + (directly) in the job JOB in EXAMPLE-FLIGHT. The affected builds + are those referenced by any of the runvars BUILDJOBRUNVAR (in + which case only that job reference is edited) or any whose job + name is any of the BUILDJOB (in which case all references to that + job are adjusted). If no .BUILDJOB and no =3DBUILDJOBRUNVAR are + specified, then all jobs referred to from the example JOB + which mention TREE are affected. + + For example, + --rebuild =3Dxenbuildjob \ + +xen=3Dgit://xenbits.xen.org/people/alice/xen.git#fixes + would look for xenbuild and (say) find that it referred to + build-amd64; it would then copy and use the build-amd64 job + that EXAMPLE-FLIGHT.JOB used, adjusting \`tree_xen' and + \`revision_xen' as specified, and use that for \`xenbuildjob' in + the repro (but not for \`buildjob') + + Whereas + --rebuild .build-amd64 \ + +linux=3Dgit://xenbits.xen.org/people/alice/linux.git#fix= es + would replace all references to any job named build-amd64 + with a new build-amd64 job. + + And + --rebuild \ + +xen=3Dgit://xenbits.xen.org/people/alice/linux.git#fixes + would replace all builds mentioning xen, including for example + build-amd64 (for xenbuildjob) and build-i386 (for buildjob) + in an x86 32-on-64 flight. + + Host allocation for the build is done "normally" (ie, the host + is thrown away after the build is complete), with a default + blessing of \`adhoc'. + + --rebuild is affected by -E or -P but not general -B or -f. + END =20 } @@ -122,10 +165,38 @@ progress "logging to $logfile" savelog "$logfile" exec 3>"$logfile" =20 +rebuilds_flight=3D'' + while [ $# -ne 0 ]; do arg=3D$1; shift =20 case "$arg" in + + --rebuild) + rebuilds_blessing=3Dadhoc + rebuild_specs=3D() + while true; do + case "$1" in + [.=3D+]*|-r) rebuild_specs+=3D("$1"); shift ;; + -B?*) rebuilds_blessing=3D${1#-B}; shift ;; + -*) badusage ': bad --rebuild option' ;; + *) break ;; + esac + done + if [ x$rebuilds_flight =3D x ]; then + rebuilds_flight=3D$( + ./cs-adjust-flight new:$rebuilds_blessing + ) + fi + + adjusts+=3D($( + ./cs-adjust-flight $rebuilds_flight \ + repro-buildjobs $example_flight $job \ + "${rebuild_specs[@]}" + )) + continue + ;; + none:) # provided so we can repro a job with no hosts ;; @@ -170,6 +241,18 @@ done flight=3D$(./cs-adjust-flight new:$blessing) progress "new flight is $flight" =20 +if [ "x$rebuilds_flight" !=3D x ]; then + progress "running build(s) $rebuilds_flight" + ./mg-execute-flight -B$rebuilds_blessing --progress-fd=3D2 \ + "${mgexecflags[@]}" $rebuilds_flight + + mro=3Dtmp/$rebuilds_flight.mro + if ! egrep '^perfect' >/dev/null $mro; then + echo >&2 "build(s) failed (no 'perfect' in $mro)" + exit 1 + fi +fi + OSSTEST_TASK=3D$(perl -e ' use Osstest; use Osstest::Executive; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902892; cv=none; d=zoho.com; s=zohoarc; b=h+orkjs0DARaUjefiorfTTKBmoKd5mt8QtC3icjA/IEfnGboWZiBLRfWpTQKrJGz86AXs3euSwvTgQXIswogRiiiSl7tq589rv+ZPNJOhg2aZmG3DfqO9VdqC88bhgcioi5Pb9u70wprkfSNGnaoELs+dL8YhBdMYUryeHVYf+Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902892; h=Content-Type: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:ARC-Authentication-Results; bh=ZfsyMiN/n/npXIBZbKbaqdAzKpHg3rNuM0yc0ZJDt1w=; b=BdZYcI+ufCND5swDf0EAWAmaxmD+pJ5nk56QUy9AdqF79rDfQkpHezEvC/C6piJtOc6dKowQc2zuNBs2faW8W0AIt8dzeDPw/iZ7Z/tdyJtQ+ukbRNAYto+W7Qex1FlO6/g2QJAT6sAAvql12xExi83vJsY2HkUrarmbcaHuDs8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902892545200.49348962620422; Fri, 3 May 2019 10:01:32 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXh-00084L-2q; Fri, 03 May 2019 17:00:13 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXg-00083c-05 for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:12 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e977b22b-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:11 +0000 (UTC) X-Inumbo-ID: e977b22b-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085345" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:56 +0100 Message-ID: <20190503165957.5960-11-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 10/11] mg-repro-setup: Detect options (-...) in wrong place X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Without this they tend to be interpreted as HOSTSPECs leading to lossage. Signed-off-by: Ian Jackson --- v2: New patch --- mg-repro-setup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mg-repro-setup b/mg-repro-setup index 7f075f4e..dc6c5cbb 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -197,6 +197,10 @@ while [ $# -ne 0 ]; do continue ;; =20 + -*) + badusage ': misplaced option, expected REBUILD or HOSTSPEC' + ;; + none:) # provided so we can repro a job with no hosts ;; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Thu Apr 25 10:44:50 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902894; cv=none; d=zoho.com; s=zohoarc; b=F6EidkFBxMNksEzvZjppBQ8m/C19GzMWlPT18jtU1OvNrFXoX+NdcnxChg+WoXt1ouB1g8/YMXiaRjTh3Ky+1E8eDp7FS77UZY/7cMwgKZRiIrKz5SG3SM3v6UzEyMUu54fK/CHwhH6p2eS8xthyuIrx60frANbd6/VansY1++w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902894; h=Content-Type: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:ARC-Authentication-Results; bh=4n+mtkSha8PrB6dKgNhLvDGiMSV6cn4ulsqTA1wBz5g=; b=WmwDJx1KFAEvVz7OT4bf07k0W8FidS5d9SOcQXoOhY+y3YA9ReWUMbPDhTsXnFdosc1l04flkb98BdWyDUbdW3G0B33bQTgRLE0Th+gkj3jsj5BfeOkA4974MblPcxZvmljnakeUhthahajUbdDKlRqKRhZ8UtqkCVxQ8fbOpn8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902894174535.0875305950514; Fri, 3 May 2019 10:01:34 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXi-000858-Ca; Fri, 03 May 2019 17:00:14 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXh-00084T-Aa for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:13 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e9f68e9c-6dc4-11e9-843c-bc764e045a96; Fri, 03 May 2019 17:00:11 +0000 (UTC) X-Inumbo-ID: e9f68e9c-6dc4-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085350" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:57 +0100 Message-ID: <20190503165957.5960-12-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 11/11] mg-allocate: Don't try allocating the same resource for two specs X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This is obviously wrong. In fact it does not work (we bomb out in the allocation). Signed-off-by: Ian Jackson --- v2: New patch --- mg-allocate | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mg-allocate b/mg-allocate index 087b14b0..b5dc185e 100755 --- a/mg-allocate +++ b/mg-allocate @@ -437,6 +437,16 @@ sub plan () { map { [ @$possreqs, $_ ] } @reqlist; } @possmatrix; } + @possmatrix =3D grep { + my $possreqs =3D $_; + my %got; + my $ok=3D1; + foreach (@$possreqs) { + next if !$got{$_->{Reso}}++; + $ok=3D0; last; + } + $ok; + } @possmatrix; =20 my $planned; my @reqlist; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel