-
Notifications
You must be signed in to change notification settings - Fork 246
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
Bulky Repo #1
Comments
Since we moved healthcare as a separate app, the directory structure has changed. Due to this, while completely re-writing the history, git is pruning commits related to healthcare also. This might cause issues in future when we have to run git blame/bisect etc. If we re-write history for all modules excluding healthcare, then repo size is coming to ~300MB. cc: @ankush, @hasnain2808 |
I think just by getting rid of translation and docs you'll save a HUGE amount of space. Check this: (large objects in ERPNext repo history): https://gist.github.com/ankush/ac3c49401ee240ea43780acf41fcbf00 90%+ of files >100 KB are just translations or doc images! |
have you tried this: https://github.com/rtyley/bfg-repo-cleaner ? |
Thanks, @ankush. Except yarn.lock file, all other files >100KB are not required. Ran |
could we get rid of everything except healthcare from ERPNext and then change the paths, and cherry-pick all later commits after, or is it too late/pointless for that now? |
@gavindsouza cherry picking the later commits will take additional time. Since some additional healthcare prs are merged & code cleanup is done in erpnext, it makes sense to cherry pick the later commits and apply them. With the above approach, repo size is reduced to ~5MB & history is preserved without any mangling. Build is passing now & basic testing is done. Need to do one more round of testing to make sure nothing is broken. |
Just cloned the repo again, inital clone size has come down to |
Closing this as the repo size has reduced considerably. @ruchamahabal, @gavindsouza, @ankush Thanks for the help. |
This repository contains all of ERPNext's histories, and everything apart from the healthcare module was deleted in one commit.
I feel we should instead only keep history (or commits) pertaining to the healthcare module. This would bring down the size of the repo considerably for starters. That alone will reduce the overhead to develop and maintain this app. Debugging across histories will be easier since we won't be dealing with so much baggage (909MiB at this point alone) 😅.
cc: @ChillarAnand
The text was updated successfully, but these errors were encountered: