[RFC] in progress: autocache patch

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Tue May 16 19:52:46 UTC 2006


	Here is my current autocache patch for comments. I have two
features left to implement: 1) permissions on tarballs, and 2) ability
to select compressed/uncompressed tarballs.

Usage:
	There are two added command line options. First is
"--autocache". You should be able to just add this command line option
to all mock invocations to automatically and transparently speed up
operations. It will automatically build cache the first time it is
invoked. It will automatically use the cache if it exists. It will
automatically expire the cache and rebuild it on a periodic basis. The
second option is "--rebuildcache". This option is for the rare occasions
when you would like to force a rebuild of the cache.

Theory:
	The theory behind this patch is that it will automatically untar
the buildroot from a tarball, if the tarball exists. It will
automatically create the tarball if it does not exist (only when
--autocache is specified). The tarball has an expiration date, default
is 15 days. After the tarball is older than this, it will automatically
be rebuilt.

Test results:
	Initial testing with FC5 yum repo mirror on local network and
squid proxy running on local machine resulted in a "init" of the build
root at 2:20. Using an already-cached build root takes this time down to
0:13.

--
Michael

 <<mock-autocache.patch>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060516/e715003a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-autocache.patch
Type: application/octet-stream
Size: 4466 bytes
Desc: mock-autocache.patch
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060516/e715003a/attachment.obj>


More information about the Fedora-buildsys-list mailing list