[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 3/7] ts-hosts-allocate-Executive: Do a pre-check
Call attempt_allocation with an empty plan and $mayalloc=0. In the usual case this will arrange to prime our memoisation caches before we get involved with the queueing system. It will also arrange for various errors to be reported sooner. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- ts-hosts-allocate-Executive | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index e5a6fbfe..4140b65c 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -692,6 +692,13 @@ sub alloc_hosts () { return; } + { + logm("pre-checking resources..."); + local $Osstest::TestSupport::logm_prefix = $logm_prefix.' (precheck)'; + my ($ok, $bookinglist) = attempt_allocation({}, 0); + die $ok if $ok>1 && $ok != $alloc_starved_r; + } + my $waitstartadjust= $jobinfo->{recipe} =~ m/build/ ? -10000 -- 2.11.0
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |