From: Ian Jackson <ian.jackson@eu.citrix.com> To: xen-devel@lists.xenproject.org Cc: Ian Jackson <ian.jackson@eu.citrix.com> Subject: [OSSTEST PATCH 3/4] mg-repro-setup: Introduce `statictask' variable Date: Mon, 20 May 2019 16:41:46 +0100 [thread overview] Message-ID: <20190520154147.30675-4-ian.jackson@eu.citrix.com> (raw) In-Reply-To: <20190520154147.30675-1-ian.jackson@eu.citrix.com> 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=false and therefore OSSTEST_TASK would always be set. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> --- mg-repro-setup | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index 5a52e617..b60389d8 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -103,6 +103,7 @@ duration=28d blessing=play skipcapture=true autoalloc=false +statictask=true while true; do case "$1" in @@ -117,7 +118,7 @@ while true; do -t?*) duration=${arg#-t} ;; --rogue) duration='' ;; --capture) skipcapture=false ;; - --autoalloc-nofree) autoalloc=true ;; + --autoalloc-nofree) autoalloc=true; statictask=true ;; -l*) logfile=${arg#-l} ;; -r^*|-r!*) adjustsets+=("${arg#-r}") ;; # ^ two patterns because there's no way in bash to write @@ -258,16 +259,25 @@ if [ "x$rebuilds_flight" != x ]; then fi fi -OSSTEST_TASK=$(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=$(perl -e ' + use Osstest; + use Osstest::Executive; + csreadconfig(); + findtask(); + printf "%s\n", $ENV{'OSSTEST_TASK'} or die $!; + ') + export OSSTEST_TASK +fi if [ "${alloc_idents[*]}" ]; then + if [ x"$OSSTEST_TASK" = 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=tmp/$flight.allocations ./mg-allocate \ -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Ian Jackson <ian.jackson@eu.citrix.com> To: <xen-devel@lists.xenproject.org> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Subject: [Xen-devel] [OSSTEST PATCH 3/4] mg-repro-setup: Introduce `statictask' variable Date: Mon, 20 May 2019 16:41:46 +0100 [thread overview] Message-ID: <20190520154147.30675-4-ian.jackson@eu.citrix.com> (raw) Message-ID: <20190520154146.5idzpy4b1ng6oJ1rMtkSVOPesKSTpOryZ8oXrFwUnBM@z> (raw) In-Reply-To: <20190520154147.30675-1-ian.jackson@eu.citrix.com> 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=false and therefore OSSTEST_TASK would always be set. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> --- mg-repro-setup | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index 5a52e617..b60389d8 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -103,6 +103,7 @@ duration=28d blessing=play skipcapture=true autoalloc=false +statictask=true while true; do case "$1" in @@ -117,7 +118,7 @@ while true; do -t?*) duration=${arg#-t} ;; --rogue) duration='' ;; --capture) skipcapture=false ;; - --autoalloc-nofree) autoalloc=true ;; + --autoalloc-nofree) autoalloc=true; statictask=true ;; -l*) logfile=${arg#-l} ;; -r^*|-r!*) adjustsets+=("${arg#-r}") ;; # ^ two patterns because there's no way in bash to write @@ -258,16 +259,25 @@ if [ "x$rebuilds_flight" != x ]; then fi fi -OSSTEST_TASK=$(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=$(perl -e ' + use Osstest; + use Osstest::Executive; + csreadconfig(); + findtask(); + printf "%s\n", $ENV{'OSSTEST_TASK'} or die $!; + ') + export OSSTEST_TASK +fi if [ "${alloc_idents[*]}" ]; then + if [ x"$OSSTEST_TASK" = 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=tmp/$flight.allocations ./mg-allocate \ -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-05-20 15:43 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-20 15:41 [OSSTEST PATCH 0/4] mg-*: easier transient autoalloc repro Ian Jackson 2019-05-20 15:41 ` [Xen-devel] " Ian Jackson 2019-05-20 15:41 ` [OSSTEST PATCH 1/4] mg-repro-setup: Do all builds in their own tasks, regardless Ian Jackson 2019-05-20 15:41 ` [Xen-devel] " Ian Jackson 2019-05-20 15:41 ` [OSSTEST PATCH 2/4] mg-transient-task: New utility Ian Jackson 2019-05-20 15:41 ` [Xen-devel] " Ian Jackson 2019-05-20 15:41 ` Ian Jackson [this message] 2019-05-20 15:41 ` [Xen-devel] [OSSTEST PATCH 3/4] mg-repro-setup: Introduce `statictask' variable Ian Jackson 2019-05-20 15:41 ` [OSSTEST PATCH 4/4] mg-repro-setup: New mode --autoalloc Ian Jackson 2019-05-20 15:41 ` [Xen-devel] " Ian Jackson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190520154147.30675-4-ian.jackson@eu.citrix.com \ --to=ian.jackson@eu.citrix.com \ --cc=xen-devel@lists.xenproject.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.