Giter Site home page Giter Site logo

git repo is way too big about avian HOT 18 CLOSED

readytalk avatar readytalk commented on May 19, 2024
git repo is way too big

from avian.

Comments (18)

jentfoo avatar jentfoo commented on May 19, 2024

One thing to keep in mind about moving gh-pages out of the repo, this may make it harder for travis CI to update the javadocs on build (or at minimum that process would likely want to be updated).

from avian.

dicej avatar dicej commented on May 19, 2024

BTW, in case it wasn't obvious: rewriting history will invalidate everyone's forks and clones, so it will be very disruptive, and we'll need to make sure everyone's comfortable with that.

from avian.

sgoings avatar sgoings commented on May 19, 2024

@jentfoo - agreed.
@dicej - The gh-pages branch is actually a combination of an artifact repository and documentation. I'd suggest we move the tarballs and jars to something more suited to binary storage. That'd have the biggest bang for our buck (plus gh-pages branch history management).

from avian.

dicej avatar dicej commented on May 19, 2024

According to the Ruby script from the Rally article I linked to, these are the top ten biggest offenders:

hello/machine.o
swt-3.7-carbon-macosx.zip
swt-3.7-cocoa-macosx-x86_64.zip
swt-3.7-gtk-linux-x86.zip
hello/hello
swt-3.7-gtk-linux-arm.zip
swt-3.7-gtk-linux-x86_64.zip
swt-3.7-gtk-linux-powerpc.zip
swt-3.7-win32-win32-x86_64.zip
swt-3.7-win32-win32-x86.zip

So it looks like we'd get a big win just by moving the zips elsewhere (and rewriting history so they're completely gone from the repo).

from avian.

sgoings avatar sgoings commented on May 19, 2024

There's no need to hold the SWT jars in the avian repository. There are a few artifact repositories that are hosting SWT in a Maven/Ivy oriented fashion.

Why are we storing a built hello world in the avian repository?

from avian.

dougborg avatar dougborg commented on May 19, 2024

We could probably set up those SWT artifacts to be hosted on Bintray if they are not available anywhere else: https://bintray.com/

from avian.

dicej avatar dicej commented on May 19, 2024

@sgoings - everything under hello was checked in accidentally. I removed it as soon as I realized, but it's still in the history.

from avian.

blimmer avatar blimmer commented on May 19, 2024

Instead of bintray, I'd recommend using the Google Code SWT Repo like we are doing in swt-bling for resolving SWT.

from avian.

dscho avatar dscho commented on May 19, 2024

Why not simply a dedicated repository on GitHub?

from avian.

dougborg avatar dougborg commented on May 19, 2024

+1 @l1m5's suggestion to use an existing repo to resolve the SWT artifacts.

from avian.

blimmer avatar blimmer commented on May 19, 2024

I'd much rather use the Google Code repo as opposed to duplicating the artifact hosting on GitHub. From the research I did for swt-bling, it seems that many other projects rely on this repo.

from avian.

dicej avatar dicej commented on May 19, 2024

I'm fine with whatever as long as the versions we link to don't disappear, and the host is willing to add our non-standard build(s) (e.g. linux/arm, which the Google Code repo doesn't currently have).

from avian.

dicej avatar dicej commented on May 19, 2024

FWIW, my fork (https://github.com/dicej/avian), which has more code, branches, etc. in it than ReadyTalk/avian, but doesn't have gh-pages, is only 15MB.

from avian.

jentfoo avatar jentfoo commented on May 19, 2024

Quick (and probably obvious) thought on the gh-pages. If most the data is retained within gh-pages, and gh-pages has never been merged into master. The following could be a simple way to get rid of the history of this branch (and thus hopefully reduce size without impacting the usage of gh-pages).

  • Copy the data from the branch
  • Delete the gh-pages branch and push the branch deletion to origin
  • Recreate the branch with the saved data from step 1
  • Push new gh-pages branch with no history

from avian.

dougborg avatar dougborg commented on May 19, 2024

If you go this route (it sounds good to me), make sure you create the new
gh-pages branch as an orphaned branch:

git checkout --orphan gh-pages

see:

http://robots.thoughtbot.com/its-for-the-orphans/

Also, after deleting the old branch, is there something you have to do to
"really" delete it and git rid of the data it contained?

On Tue, Dec 24, 2013 at 4:57 PM, Mike Jensen [email protected]:

Quick (and probably obvious) thought on the gh-pages. If most the data is
retained within gh-pages, and gh-pages has never been merged into master.
The following could be a simple way to get rid of the history of this
branch (and thus hopefully reduce size without impacting the usage of
gh-pages).

  • Copy the data from the branch
  • Delete the gh-pages branch and push the branch deletion to origin
  • Recreate the branch with the saved data from step 1
  • Push new gh-pages branch with no history


Reply to this email directly or view it on GitHubhttps://github.com//issues/137#issuecomment-31187823
.

from avian.

joshuawarner32 avatar joshuawarner32 commented on May 19, 2024

Also, after deleting the old branch, is there something you have to do to
"really" delete it and git rid of the data it contained?

All future clones of the repository won't have the old data. At some point github and the rest of the existing clones (who haven't explicitly checked out a local copy of the old branch), will get cleaned up with an automatic 'git gc'. Anybody who has a checked-out version of the old branch will have to delete it / recreate it manually before the data goes away.

from avian.

dicej avatar dicej commented on May 19, 2024

Useful workaround for the gh-pages problem: git clone --single-branch [email protected]:ReadyTalk/avian

from avian.

dicej avatar dicej commented on May 19, 2024

I've updated gh-pages branch to include only the HTML, CSS, and PNG files, moving everything else to avian-web under https://github.com/ReadyTalk/readytalk.github.io. This brings the repo size down from over 100MB to 19MB. I also experimented with rewriting history to remove some accidentally-checked in binary files, but that didn't save enough space to justify the headaches and confusion of publishing a new history.

from avian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.