<tt><font size=2>amessina@messinet.com wrote on 11/05/2013 11:08:49:<br>
<br>
&gt; On Tuesday, November 05, 2013 10:46:55 AM John.Florian@dart.biz wrote:<br>
&gt; &gt; amessina@messinet.com wrote on 11/04/2013 18:56:08:<br>
&gt; &gt; &gt; On Monday, November 04, 2013 05:28:28 PM John.Florian@dart.biz
wrote:<br>
&gt; &gt; &gt; &gt; From what I gather, mash is the tool of choice for
composing usable<br>
&gt; &gt; &gt; &gt; repositories out of koji's build efforts. &nbsp;What
advice do y'all have for<br>
&gt; &gt; &gt; &gt; integrating the two? &nbsp;Presently, I've got mash
running via cron every<br>
&gt; &gt; &gt; &gt; 15m<br>
&gt; &gt; &gt; &gt; but that hardly seems optimal as it's a lot of busy
work if I'm not<br>
&gt; &gt; &gt; &gt; building packages for several days and conversely adds
more latency into<br>
&gt; &gt; &gt; &gt; my<br>
&gt; &gt; &gt; &gt; build + deploy + test timeline if a build finishes
right after mash<br>
&gt; &gt; &gt; &gt; does.<br>
&gt; &gt; &gt; &gt; &nbsp;Seems like a hook or callback is in order, but
I've not seen any write<br>
&gt; &gt; &gt; &gt; ups<br>
&gt; &gt; &gt; &gt; on this subject. &nbsp;Also, I had a rpm built by koji
which then made it<br>
&gt; &gt; &gt; &gt; over<br>
&gt; &gt; &gt; &gt; to my repo via mash, but then I got busy for a few
days on other tasks.<br>
&gt; &gt; &gt; &gt; &nbsp;When I came back it appears that my rpm has disappeared
from the repo.<br>
&gt; &gt; &gt; &gt; &nbsp;I'm guessing kojira cleaned it up, but I was
under the impression that<br>
&gt; &gt; &gt; &gt; such cleanup wouldn't propagate to the repo.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; I use a very custom koji-maint [1] script, but you could
take a look at<br>
&gt; &gt; &gt; the &nbsp; mashCreateRepos function for some ideas. &nbsp;I
run it from a systemd<br>
&gt; &gt; &gt; timer unit once a day. &nbsp;You could have systemd run
it more often if you<br>
&gt; &gt; &gt; wanted,since the design goal was to only have mash create
new<br>
&gt; &gt; &gt; repositories *if* the file date from the previously created
repo is older<br>
&gt; &gt; &gt; that the last package tagged in the specific Koji build
target.<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; -A<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; 1. </font></tt><a href="https://messinet.com/trac/browser/koji-maint/koji-maint"><tt><font size=2>https://messinet.com/trac/browser/koji-maint/koji-maint</font></tt></a><tt><font size=2><br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Anthony - </font></tt><a href=http://messinet.com/><tt><font size=2>http://messinet.com</font></tt></a><tt><font size=2>
- </font></tt><a href=http://messinet.com/~amessina/gallery><tt><font size=2>http://messinet.com/~amessina/gallery</font></tt></a><tt><font size=2><br>
&gt; &gt; &gt; 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E<br>
&gt; &gt; <br>
&gt; &gt; Thanks for that link. &nbsp;Looks to have all sorts of handy
features. &nbsp;Package<br>
&gt; &gt; signing is another item on my checklist and I see you've got
code in there<br>
&gt; &gt; for that too. &nbsp;I'll have to hack on this (or so it appears)
to get it<br>
&gt; &gt; working with certificate-based authentication. &nbsp;Would you
be interested in<br>
&gt; &gt; any such patches?<br>
&gt; <br>
&gt; Sure, John. &nbsp;I would appreciate patches. &nbsp;Thanks. &nbsp;Though
I'd like <br>
&gt; to see most <br>
&gt; of this type of work end up upstream in koji-gc or kojira ;)<br>
&gt; <br>
&gt; I wish I knew Python...</font></tt>
<br>
<br><font size=2 face="sans-serif">I know Python very well, I wish I knew
my way around koji. &nbsp;:-)</font>
<br>
<br><font size=2 face="sans-serif">It's been quite a battle trying to follow
the various wikis, blogs and etc. on getting a setup going and there seems
to be even less written on how to actually use it in practice. &nbsp;Part
of my difficulty probably stems from having built my own tool chain and
using that for so long; I'm biased on approach. &nbsp;I'm trying to convert
now to mainstream practices because I want a more automated setup where
git commits to my numerous projects yields rpms which yield repos which
yield custom Fedora Live images which yield VM builds and automated testing
all along the way in a huge continuous integration loop.</font>
<br><font size=2 face="sans-serif"><br>
--<br>
John Florian</font>
<br>