Skip to content

Commit

Permalink
[backend] patchinfo: add option to build on all schedulers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 22, 2024
1 parent 942e23f commit 6e99521
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/api/api/patchinfo.rng
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@
</element>

<optional>
<element name="stopped">
<element name="seperate_build_arch">
<empty/>
</element>
</optional>
<optional>
<element name="stopped">
<text/>
</element>
</optional>
Expand Down
8 changes: 6 additions & 2 deletions src/backend/BSSched/BuildJob/Patchinfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,14 @@ sub check {
my $myarch = $gctx->{'arch'};
my @archs = @{$repo->{'arch'}};
return ('broken', 'missing archs') unless @archs; # can't happen
my $buildarch = $archs[0]; # always build in first arch
my $patchinfo = $pdata->{'patchinfo'};
if (exists $patchinfo->{'seperate_build_arch'}) {
# build on all schedulers, but don't take content from each other
@archs = ($myarch);
};
my $buildarch = $archs[0];
my $reporoot = $gctx->{'reporoot'};
my $markerdir = "$reporoot/$prp/$buildarch/$packid";
my $patchinfo = $pdata->{'patchinfo'};
my $projpacks = $gctx->{'projpacks'};
my $proj = $projpacks->{$projid} || {};

Expand Down
1 change: 1 addition & 0 deletions src/backend/BSXML.pm
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ our $patchinfo = [
'packager',
'retracted',
'stopped',
'seperate_build_arch', # for builds on each scheduler arch
'zypp_restart_needed',
'reboot_needed',
'relogin_needed',
Expand Down

0 comments on commit 6e99521

Please sign in to comment.