[JIRA] (OVIRT-620) Optimize how Jenkins fetchs ovirt-engine from gerrit

Nadav Goldin (oVirt JIRA) jira at ovirt-jira.atlassian.net
Tue Jul 5 12:01:00 UTC 2016


    [ https://ovirt-jira.atlassian.net/browse/OVIRT-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18001#comment-18001 ] 

Nadav Goldin commented on OVIRT-620:
------------------------------------

[gerrit garbage collector job|http://jenkins-old.ovirt.org/job/system_gerrit-garbage-collect/] is running without --aggressive, when executing:
{quote}git clone git://gerrit.ovirt.org/ovirt-engine.git
cd ovirt-engine
git gc --aggressive 
{quote}
this reduces the repository size by 62MB.

maybe we should add this option(from the docs it only says it will run slower, this is nightly anyways) or add it only to ovirt-engine.

[~eedri], [~bkorren at redhat.com] - what do you think?


> Optimize how Jenkins fetchs ovirt-engine from gerrit
> ----------------------------------------------------
>
>                 Key: OVIRT-620
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-620
>             Project: oVirt - virtualization made easy
>          Issue Type: Sub-task
>            Reporter: Nadav Goldin
>            Assignee: infra
>
> ovirt-engine git repository is at the time of writing is of size 244MB, where ovirt-engine/.git alone takes 160MB.
> There are two things which might be done:
> 1. Find a way to optimize ovirt-engine.git/.git size, this needs to be explored deeply.
> 2. Check if it is possible to configure git plugin to not download the entire history, although Jenkins attempts to optimize that, it still looks like the git plugin is downloading the entire history(this is what a random check on the slaves using du ../jenkins/workspace/...../.git -h -s showed)
> for instance the following command takes only 91Mb:
> {quote}git clone --depth 1 --branch master {quote}
> Although this will not solve real network/storage issues, it could help reduce those problems and in the overall decrease jobs runtime. As Gerrit is still on AWS, this is a considerable amount of traffic for each job we might be able to reduce.



--
This message was sent by Atlassian JIRA
(v1000.126.1#100004)



More information about the Infra mailing list