-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone repo instead of init + fetch and take advantage of git-autoshare #55
Conversation
d745040
to
465d84c
Compare
git-aggregator should not have to know about git-autoshare. |
cf42778
to
d99b6b9
Compare
BTW if you are playing with this, you could try the |
Ok, but then how can it take advantage of |
If you do a subprocess.call(["git",...]) it should look in PATH, I think. |
Ok, I will set this do Draft while I fix the tests and look into this option... Thanks for the suggestions! |
d99b6b9
to
a05991e
Compare
Do you mean that git-autoshare is used automatically on some git commands? |
94caf15
to
6e2ecdd
Compare
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
==========================================
+ Coverage 81.44% 82.22% +0.77%
==========================================
Files 6 6
Lines 388 405 +17
==========================================
+ Hits 316 333 +17
Misses 72 72
Continue to review full report at Codecov.
|
CI should be fixed now... I removed the git-autoshare part for now, and will try to work around it with the bash script as mentioned, but I still need some testing to find if it is the best solution... |
repository, | ||
target_dir, | ||
) | ||
cmd = ('git', 'clone') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd = ('git', 'clone') | |
cmd = ('git', 'clone', '--filter=blob:none') |
And maybe you don't even need git-autoshare.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the docs but don't understand. What does that do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've been doing tests and indeed we're gonna use it. It's a great feature. However, it's also true that it doesn't fix all the problems we want to fix, so we'll use it in combination with git-autoshare.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this suggestion is applied, IMHO the PR would be complete, as the rest of using git-autoshare is doable with the wrapper script and/or can be done in a later PR.
So could we move forward with this? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only debatable thing. Should I add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks.
Can't the |
Must think about it - probably not trivial. What is sure is that it must not be a python script because of python startup time. That's why there is a bash example. |
I don't think python time is a real problem, TBH. After all, you're gonna use it for git-autoshare itself and it doesn't seem to be a problem, right? You're not cloning all day after all. And bash is less maintainable and portable. |
Trust me, adding 100ms to the startup time of your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Tested
@sbidoul let's merge it ?
The PR is still in draft state. @joao-p-marques is it ready ? |
ping @Tardo |
@joao-p-marques gentle nudge. Is this PR ready (it is still draft)? |
Joao is no longer at Odoo world, so he can't say. Checking the PR, seems in good state and tested by several actors, so I put it as ready. |
It seems I'm not able to change the PR status. |
I added the |
Thanks |
Closes #45
As mentioned in the issue discussion, the aggregation process could be improved to start with a
git clone
instead of ainit
followed byfetch
. This PR implements that.That also opens the possibility to use
git-autoshare
to speed up the process and save space. This PR also adds that functionality, whilst keeping the original setup working when you don't havegit-autoshare
installed in your system.@Tecnativa
TT32042
ping @sbidoul @yajo