How to handle big repositories with tar_scm (where git start garbage collecting)?
Hi all, teleport has a huge git repository, at least during updates of the package using the tar_scm service git always starts garbage collecting things and the tarball creation takes a looooong time. ``` Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. ``` Deleting the clone directory does not help. Is there any way to finetune this part? Only get information on the main branch? Drop large parts of the git commit history? Something along these lines? Would switching to obs_scm service improve things in this regard? Thanks in advance and have a nice day! Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Dienstag, 7. März 2023, 06:49:03 CET Johannes Kastl wrote:
Hi all,
teleport has a huge git repository, at least during updates of the package using the tar_scm service git always starts garbage collecting things and the tarball creation takes a looooong time.
``` Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. ```
Deleting the clone directory does not help.
Is there any way to finetune this part? Only get information on the main branch? Drop large parts of the git commit history? Something along these lines?
Would switching to obs_scm service improve things in this regard?
Thanks in advance and have a nice day!
The git tree is getting cached usually (server side and local building). What you may want to consider is to skip building tar balls at all. The disadvantage would be that your src.rpm would be incomplete and would not be allowed to be submitted into an official distro. If that is no concern for you, you may want to check FreeCAD.spec file in science:unstable project where I do exactly this. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
participants (2)
-
Adrian Schröter
-
Johannes Kastl