Skip to content

Commit

Permalink
[backend] also cummulate delayed errors for the project binary state
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 24, 2015
1 parent 5c946b0 commit 680db11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -5201,6 +5201,7 @@ sub checkkiwiproduct {

my $maxblocked = 20;
my %blockedarch;
my $delayed_errors = '';
for my $aprp (@aprps) {
my %known;
my ($aprojid, $arepoid) = split('/', $aprp, 2);
Expand Down Expand Up @@ -5230,12 +5231,16 @@ sub checkkiwiproduct {
$error .= " (delayed)" if defined $gbininfo;
print " - $packid (kiwi-product)\n";
print " $error\n";
return ('delayed', $error) if defined $gbininfo;
if (defined $gbininfo) {
$delayed_errors .= ", $error";
next;
}
return ('broken', $error);
}
} else {
$gbininfo = read_gbininfo("$reporoot/$aprp/$arch", $arch eq $myarch ? 0 : 1);
}
next if $delayed_errors;
if (!$gbininfo && $arch ne $myarch && -d "$eventdir/$arch") {
# mis-use unblocked to tell other scheduler that it is missing
print " requesting :repoinfo for $aprp/$arch\n";
Expand Down Expand Up @@ -5314,6 +5319,7 @@ sub checkkiwiproduct {
}
last if @blocked > $maxblocked;
}
return ('delayed', substr($delayed_errors, 2)) if $delayed_errors;
if ($myarch eq $buildarch) {
# update waiting_for markers
for my $arch (grep {$_ ne $buildarch} @archs) {
Expand Down

0 comments on commit 680db11

Please sign in to comment.