Mailinglist Archive: opensuse-buildservice (311 mails)

< Previous Next >
Re: [opensuse-buildservice] Restricting a build to certain workers
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Thu, 12 Nov 2009 16:38:21 +0100
  • Message-id: <20091112153821.GA23714@xxxxxxx>
On Wed, Nov 11, 2009 at 02:25:01PM -0600, Luke Imhoff wrote:
I have build workers that run SLES 9 and SLES 10. It appears that the
SLES 9 worker's kernels are too old to do Ubuntu 9.10 builds, as I get
this error:

FATAL: kernel too old

Is there anyway to make Ubuntu:9.10 jobs not go on SLES 9 workers to
prevent this? Right now, I just have to keep telling it to rebuild
until a SLES 10 worker picks it up.

bs_worker supports a 'hostcheck' argument where you can specify
a script that can be used to check if the host can build a package.
Actually it's also run after the build so that you can also check the
logfile. It's called like

$hostcheck --srcserver $srcserver $jobfile precheck $buildroot
and
$hostcheck --srcserver $srcserver $jobfile $result $buildroot/.build.log

If $hostcheck exits with a non-zero return code the build will
be retried on a different host.

You can extract the repository from the $jobfile file.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References