From nobody Tue Feb 10 05:10:27 2026 Delivered-To: importer@patchew.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=1561127177; cv=none; d=zoho.com; s=zohoarc; b=GWP5NqqWAuzSZ9BBpnVyg764nCPL58jltnXARlDam5GYZx3E9Wfyo53/7sdcsWc2f4FV6lWG9mkIeda3imEqWRcbMlaXj5JRSusM1X2WEYSZlZlsZbetUWPWqyqm0z8GxPGnzhcxLPvLSJoh+6mk3PwubNe9U6tSYTjtIG5MZD0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561127177; 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=amw6Q4CbIYOzugSI7X1XYhhHvygwrxen13/mbiorFVI=; b=WRHyeeK2mhZ9WJ+iPjNxTQIqEAuL8UDOYRAuvYJz1OZGuVCeNwxvWGAIKJE8skb+6F5YIXrmDJyLYJhWWlURCvOhSw9EV1qymsiOObBp/O5+2j4qt3+xhyHiLjUzQySmsmkG1a0fjd6+xtKjq1zNGgOrS3MkXwOPBtDJwrWRQUo= 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 1561127177532315.60680863445907; Fri, 21 Jun 2019 07:26: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 1heKTP-0008VT-R9; Fri, 21 Jun 2019 14:25:03 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1heKTP-0008VI-8i for xen-devel@lists.xenproject.org; Fri, 21 Jun 2019 14:25:03 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 5b385421-9430-11e9-8980-bc764e045a96; Fri, 21 Jun 2019 14:25:02 +0000 (UTC) X-Inumbo-ID: 5b385421-9430-11e9-8980-bc764e045a96 Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@eu.citrix.com; spf=Pass smtp.mailfrom=Ian.Jackson@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com 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; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of ian.jackson@eu.citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of Ian.Jackson@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="Ian.Jackson@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: qP7B1voH7vkL957cfszKMdxg/ZH1qG/xcEBpek+G2LbZrVQIZRJ6c+BLcYmIlLvEMTB5znD0Sw rOhsg2TMon8gTZM95Nx6MRxiz5iTI8dCFRZ0G8Y0vWMO/u6vRAlk0Hs/AihfJI5TDq1Tf6km49 OY37jP/SrsUSca3kt3N7/NxwGxbE7xva1BwLxT69ybOGhw8D4lyPzrdScuC7DCJngcN71XkQhc S12B2Lt7Dihk4i5QbF/7VwlRLXJE+u8hfBdrYCG1XXNveK14Wze8HOkR5hd4ckcx9xgNX7VtIf 7M4= X-SBRS: 2.7 X-MesageID: 2052643 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.63,400,1557201600"; d="scan'208";a="2052643" From: Ian Jackson To: Date: Fri, 21 Jun 2019 15:22:55 +0100 Message-ID: <20190621142258.1543-6-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190621142258.1543-1-ian.jackson@eu.citrix.com> References: <20190621142258.1543-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH v2 5/8] mg-repro-setup: Introduce `statictask' variable 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" We are going to make a mode where we don't set OSSTEST_TASK. The result is that our subprocesses will do whatever they usually do. Those are mg-allocate (which would allocate for our static task) and mg-execute-flight which will make a dynamic task. We must therefore prevent mg-allocate from running since the allocations would not be useable for the flight execution. No functional change yet, since nothing sets statictask=3Dfalse and therefore OSSTEST_TASK would always be set. Signed-off-by: Ian Jackson --- mg-repro-setup | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index 9a81c565..45c56f6a 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -102,6 +102,7 @@ duration=3D28d blessing=3Dplay skipcapture=3Dtrue autoalloc=3Dfalse +statictask=3Dtrue =20 while true; do case "$1" in @@ -116,7 +117,7 @@ while true; do -t?*) duration=3D${arg#-t} ;; --rogue) duration=3D'' ;; --capture) skipcapture=3Dfalse ;; - --autoalloc-nofree) autoalloc=3Dtrue ;; + --autoalloc-nofree) autoalloc=3Dtrue; statictask=3Dtrue ;; -l*) logfile=3D${arg#-l} ;; -r^*|-r!*) adjustsets+=3D("${arg#-r}") ;; # ^ two patterns because there's no way in bash to write @@ -257,16 +258,25 @@ if [ "x$rebuilds_flight" !=3D x ]; then fi fi =20 -OSSTEST_TASK=3D$(perl -e ' - use Osstest; - use Osstest::Executive; - csreadconfig(); - findtask(); - printf "%s\n", $ENV{'OSSTEST_TASK'} or die $!; -') -export OSSTEST_TASK +if $statictask; then + OSSTEST_TASK=3D$(perl -e ' + use Osstest; + use Osstest::Executive; + csreadconfig(); + findtask(); + printf "%s\n", $ENV{'OSSTEST_TASK'} or die $!; + ') + export OSSTEST_TASK +fi =20 if [ "${alloc_idents[*]}" ]; then + if [ x"$OSSTEST_TASK" =3D x ]; then + # We would have to make a dynamic task and hold the + # fd for it in this script. Would be quite awkward. + echo >&2 'cannot hand-allocate in a way that will free' + exit 1 + fi + progress "allocating ${alloc_idents[*]} ..." alloc_output=3Dtmp/$flight.allocations ./mg-allocate \ --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel