]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
starvation: Propagate starved job status into dependent jobs
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Jul 2018 15:13:23 +0000 (16:13 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 29 Apr 2019 17:05:57 +0000 (18:05 +0100)
If a build job is starved, then the same status

(No jobs are marked `starved' yet.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Osstest/JobDB/Executive.pm

index 2e11c8f371dddf755328dcc190792e1a21f23149..be5588fce09980d1a0b1ffa247506e4cb48b5a47 100644 (file)
@@ -380,6 +380,8 @@ END
             } else {
                 die "job $oflight.$ojob ($why) queued (we are $ourstatus)";
             }
+        } elsif ($jstatus eq 'starved') {
+            broken("job $oflight.$ojob ($why) $jstatus", $jstatus);
         } else {
             broken("job $oflight.$ojob ($why) $jstatus", 'blocked');
         }