All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <iwj@xenproject.org>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <iwj@xenproject.org>
Subject: [OSSTEST PATCH 4/8] ts-hosts-allocate-Executive: Allow to tolerate missing resources
Date: Thu,  1 Oct 2020 17:24:35 +0100	[thread overview]
Message-ID: <20201001162439.18160-4-iwj@xenproject.org> (raw)
In-Reply-To: <20201001162439.18160-1-iwj@xenproject.org>

Now, a job can specify that lack of a suitable host should be treated
as a plain test failure (ie, subject to the usual regression analysis)
rather than as an infrastructure or configuration problem.

This will be useful for some tests which don't work in some branches
because of lack of suitable hardware.  We want to avoid encoding our
hardware availability situation in make-flight.

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 ts-hosts-allocate-Executive | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive
index 698437c0..58d2a389 100755
--- a/ts-hosts-allocate-Executive
+++ b/ts-hosts-allocate-Executive
@@ -704,6 +704,10 @@ sub alloc_hosts () {
 	my ($ok, $bookinglist) = attempt_allocation({
             ts_hosts_allocate_precheck => 1,
         }, 0);
+	if ($ok == $alloc_starved_r && $r{hostalloc_missing_expected}) {
+	    broken 'no suitable hosts available (as possibly expected)',
+	      'fail';
+	}
 	die $ok if $ok>1;
     }
 
-- 
2.20.1



  parent reply	other threads:[~2020-10-01 16:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01 16:24 [OSSTEST PATCH 1/8] Executive: Fix an undef warning message Ian Jackson
2020-10-01 16:24 ` [OSSTEST PATCH 2/8] standalone: Use mkdir -p Ian Jackson
2020-10-01 16:24 ` [OSSTEST PATCH 3/8] sg-run-job: Preserve step state "fail" if set by test script Ian Jackson
2020-10-01 16:24 ` Ian Jackson [this message]
2020-10-01 16:24 ` [OSSTEST PATCH 5/8] cri-getplatforms: Give names to xenarch and suite Ian Jackson
2020-10-01 16:24 ` [OSSTEST PATCH 6/8] cri-getplatforms: Honour new MF_SIMULATE_PLATFORMS env var Ian Jackson
2020-10-01 16:24 ` [OSSTEST PATCH 7/8] standalone-generate-dump-flight-runvars: Simulate cri-getplatforms Ian Jackson
2020-10-01 16:24 ` [OSSTEST PATCH 8/8] Tolerate lack of platform-specific hosts in old Xen branches 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=20201001162439.18160-4-iwj@xenproject.org \
    --to=iwj@xenproject.org \
    --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: link
Be 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.