FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 02-26-2010, 03:22 PM
Doug Reiland
 
Default koji chain-build usage

I am wondering how to use koji cli with chain-build and srpms.

First, might this be a bug in koji-cli

In handle_chain_build:
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 02-26-2010, 03:27 PM
Doug Reiland
 
Default koji chain-build usage

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)

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?
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 02-26-2010, 03:43 PM
Mike McLean
 
Default koji chain-build usage

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)

Chain build is not designed to handle building from srpms -- only from
scm. For non-admins, building from srpm can only be used with --scratch
(and hence is useless for chaining since scratch builds cannot be used
in repos).

Note the error message under the else:
'"%s" is not a SCM URL or package N-V-R'
These are the only valid entries.

You can emulate chain-build with a series of build and wait-repo
commands if you like.

> 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?

Suddenly, after several years of koji use, a number of folks seem to
have developed deep misconceptions about the import command.

The import command is an administrative command. It is used to import
externally built rpms. The idea of importing an srpm in order to build
it is contradictory. Both activities create a build with the same NVR,
hence they are conflicting.

The primary use of the import command is bootstrapping. You use it to
get a base set of builds into your koji instance in order get builds going.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 02-26-2010, 03:46 PM
Mike Bonnet
 
Default koji chain-build usage

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?
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 02-26-2010, 05:35 PM
Doug Reiland
 
Default koji chain-build usage

It did error, I hacked the code when I thought it was in error.

Man, it would be nice to be able to undo an import.

Doug

On Fri, Feb 26, 2010 at 11:46 AM, Mike Bonnet <mikeb@redhat.com> wrote:
> 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?
> --
> buildsys mailing list
> buildsys@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 06:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org