koji chain-build usage

Mike Bonnet mikeb at redhat.com
Fri Feb 26 16:46:06 UTC 2010


On 02/26/2010 11:27 AM, Doug Reiland wrote:
> Sorry for the previous email, it got sent while editing
> 
> In koji-cli in handle_chain_build:
>        elif '://' in src:
>             # quick check that src might be a url
>             build_level.append(src)
>         elif '/' not in src and not src.endswith('.rpm') and
> len(src.split('-')) >= 3:
>             # quick check that it looks like a N-V-R
>             build_level.append(src)
> 
> should it be:
>        elif '://' in src:
>             # quick check that src might be a url
>             build_level.append(src)
>         elif '/' not in src and src.endswith('.rpm') and
> len(src.split('-')) >= 3:
>             # quick check that it looks like a N-V-R
>             build_level.append(src)

No, the "not src.endswith('.rpm')" was intentional.  chain-build does
not support building from srpms.  This was a hard-coded policy decision,
before Koji had a more flexible policy system for specifying whether
building from srpm was ok or not on a per-tag basis.  chain-build could
be made to support srpms now, and leave the policy to the policy system.
 If this is desirable, please file a ticket at
http://fedorahosted.org/koji and I'll take a look.

chain-build allows you to specify groups of SCM URLs to be built, or
NVRs to wait for.  The NVR support allows you to start a chain-build
with " foo-1.0-1 : " which would say "wait until foo-1.0-1 is available
in the current repo, and then start building the rest of the chain".
This was a request from Fedora developers so they could make
chain-builds depend on previous non-chained builds, removing the
necessity to wait for repo regens, and allowing them to break up chain
builds into multiple chunks.

> I attempted to koji chain-build a couple of srpms for testing, but
> task is just sitting on "waitrepo".
> Also, I noticed it doesn't upload srpms so what is the BKM? do you
> import, then chain-build?

I'm surprised the chain-build command didn't return an error.  What
command did you run?


More information about the buildsys mailing list