Attached is a couple of small additions to koji's web code to allow customising the headers/footer a little more (headers are good to customise for linking back to the main site or secondary koji instances; footers are good to customise for web analytics :)
The approach I'm using is just to allow the admin to add a couple of files with custom HTML that get automatically included when they're present -- it's a bit kludgy, but from what I can tell overriding the header/footer Cheetah templates more directly would require some fairly in depth changes to the way koji does templating.
Any thoughts on whether this is plausible to go in koji proper, or if there's a better way to do it? :)
aj (a newbie in Red Hat release engineering, and even newbie-er in Fedora :)
Anthony Towns <atowns(a)redhat.com>
On Mon, Jan 18, 2010 at 17:30, Ville Skyttä <ville.skytta(a)iki.fi> wrote:
> On Monday 18 January 2010, Seth Vidal wrote:
>> On Mon, 18 Jan 2010, Farkas Levente wrote:
>> > the real bottleneck is not the rpmbuild itself (with ccache it cab be
>> > very fast), but the mock surroundings. suppose there is build which
>> > takes about 2 minutes and in mock it takes about 5 minutes:-(
>> > most of the time is in yum, python tar, gzip etc which all use only one
>> > cpu/core and it's very slow!
>> the tar and gzip are mostly BUILDING the cache.
> I've been using lzop as the root cache compressor, it makes a difference over
> gzip here, especially when compressing the cache, but somewhat also when
> decompressing it. Add this to /etc/mock/site-defaults.cfg to try it out:
> config_opts['plugin_conf']['root_cache_opts']['compress_program'] = 'lzop'
> config_opts['plugin_conf']['root_cache_opts']['extension'] = '.lzo'
> For boxes with multiple cores, pigz (and maybe even pbzip2) might be worth
> looking into. I haven't tried these myself.
why we compress at all? disk space is cheep. can we speed up mock to
somehow totally disable compressing root_cache? it used the case but
store and restore in an uncompressed way?
Levente "Si vis pacem para bellum!"