Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

[FIX] Change depth of 10 to 1 on git clone of odoo repo #191

Conversation

JesusZapata
Copy link
Contributor

Change depth of 10 to 1 on git clone of odoo repo

@JesusZapata
Copy link
Contributor Author

@moylop260
We could save considerable time by lowering the depth of the clone

@JesusZapata
Copy link
Contributor Author

@ruiztulio @moylop260
What impact would lower the depth of the clone of odoo

@moylop260
Copy link
Contributor

moylop260 commented Feb 9, 2017

The docker hub dont have timeout problem for this matter.
And this build spent 41 minutes similar to 41 minutes of stable branch build.

Travis build all images even.
Then we need detect what is the folder changed to build just that image and reduce the time of a job.
Similar to mqt where detect changes from pylint_test

@JesusZapata
Copy link
Contributor Author

JesusZapata commented Mar 27, 2017

Sorry for openen this PR but i consider what the parameter --depth=10 is unnecessary
We can save time and storage if only changed --depth=10 for --depth=1

I show my server load when clone is --depth=10
image

The command git --git-dir="${REPO_REQUIREMENTS}/odoo/.git" gc --aggressive used very CPU

@moylop260
What do you think about this?

@JesusZapata JesusZapata reopened this Mar 27, 2017
@JesusZapata
Copy link
Contributor Author

I will close this PR because when made push of one branch and this branch only have one commit on depth, the git show error "Unable to push new commit from shallow clone"

@JesusZapata JesusZapata deleted the master-less-depth-on-odoo-repo-jesuszapata branch June 23, 2017 15:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants