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 12-15-2010, 03:32 PM
Alan Franzoni
 
Default Reimporting deleted builds into Koji

Hello,
it sometimes happens that the now working garbage collector deletes a
build - mostly for an externally imported package - that we'd not
really mean to delete.

It seems impossible to import back that build from a src+binary rpm -
koji says it's already there - and there seems no obvious way to
change the state and revert the deletion.

As a workaround we copied the packages back where koji expected them
and changed the "state" column in the "build" database table back to 1
(completed).

Is there any better way to do it? Isn't there a "koji forget-build" command?

--
Alan Franzoni
--
contact me at public@[mysurname].eu
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 12-15-2010, 06:56 PM
Mike McLean
 
Default Reimporting deleted builds into Koji

On 12/15/2010 11:32 AM, Alan Franzoni wrote:
> Hello,
> it sometimes happens that the now working garbage collector deletes a
> build - mostly for an externally imported package - that we'd not
> really mean to delete.
>
> It seems impossible to import back that build from a src+binary rpm -
> koji says it's already there - and there seems no obvious way to
> change the state and revert the deletion.
>
> As a workaround we copied the packages back where koji expected them
> and changed the "state" column in the "build" database table back to 1
> (completed).
>
> Is there any better way to do it? Isn't there a "koji forget-build" command?

It's kind of a mess right now. Fixing it is on my todo list.

There's the resetBuild call, which was intended to allow a build to be
rebuilt, but while rebuilding over such a reset build works, reimporting
does not. On the rare occasion I've needed to do this I issued a
resetBuild, manually set the build's state to 1 (complete) in the db,
then reimported.

I should caution that the resetBuild call is somewhat dangerous as it
has few safety checks and deletes data. This is why there is no cli
handler for it (though it works fine via the 'call' handler). It is
intended to be rarely used, it at all.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 12-15-2010, 08:58 PM
Mike McLean
 
Default Reimporting deleted builds into Koji

On 12/15/2010 02:56 PM, Mike McLean wrote:
> There's the resetBuild call, which was intended to allow a build to be
> rebuilt, but while rebuilding over such a reset build works, reimporting
> does not. On the rare occasion I've needed to do this I issued a
> resetBuild, manually set the build's state to 1 (complete) in the db,
> then reimported.

Addendum: rather then mucking around in the db, you can tweak the
build's state by calling createEmptyBuild. So something like this should
work:

koji call resetBuild foobar-1.0-1
koji call createEmptyBuild foobar 1.0 1 None
# name version release epoch
koji import somedir/*.rpm

> I should caution that the resetBuild call is somewhat dangerous as it
> has few safety checks and deletes data. This is why there is no cli
> handler for it (though it works fine via the 'call' handler). It is
> intended to be rarely used, it at all.

again, please be cautious when using the resetBuild call.
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 10:49 AM.

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