Skip to content
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

Upgrade not efficient #174

Closed
kaihendry opened this issue Oct 14, 2013 · 3 comments
Closed

Upgrade not efficient #174

kaihendry opened this issue Oct 14, 2013 · 3 comments
Assignees

Comments

@kaihendry
Copy link
Member

Noticed that git fetches as part of our upgrade script are downloading the ENTIRE repo of ~2G from github instead of a delta.

This can be confirmed locally by:

git clone --no-local --depth 1 --bare /home/hendry/debian/sid-root/root/webconverger/chroot

My chroot has been git reset --hard a26424a19748cc6331cc8a174fb571d72a782b3c. Size it about ~350M.

cd chroot.git
git remote set-url origin https://github.com/Webconverger/webc.git
get fetch -v

github seems to throttle downloads at about 100KB/sec. So downloading 2G takes many hours.

To see the content of the fetch use git log ..FETCH_HEAD.

@kaihendry
Copy link
Member Author

We are shooting forward with the --depth 1 approach initially proposed by @matthijskooijman

http://thread.gmane.org/gmane.comp.version-control.git/230134/focus=233490

To do this:

  1. git/git@238504b needs to deployed by github

  2. We need to adjust our upgrade scripts http://pastebin.com/0tGdgM0z http://pastebin.com/RQMvjHLk

Tbh I don't think (1) is vital, since it would be the same behaviour as the status quo, so we should work on updating and testing the upgrade scripts.

@kaihendry
Copy link
Member Author

I've applied (2), now we are waiting for github to get back to us.

@kaihendry
Copy link
Member Author

Oh this bug has been fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants