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

Code repository is almost 100MB big #39

Open
kelson42 opened this issue Dec 14, 2022 · 5 comments
Open

Code repository is almost 100MB big #39

kelson42 opened this issue Dec 14, 2022 · 5 comments
Assignees
Labels

Comments

@kelson42
Copy link

Which is a lot, and the content of the history will soon have no value anymore as the dependences will be outdated.

@Jaifroid
Copy link
Collaborator

Hmm. Are there tools to reduce size? I guess they mean rewriting history (but if it's not useful history...)?

@Jaifroid
Copy link
Collaborator

OK, I believe the reason for this is not the committed code, but the artefacts that are created and archived with each CI run. These artefacts are stored under the respective workflow runs (see example here and look at the bottom of the page under "Artifacts"). These artefacts are kept for 90 days -- see Settings -> Actions -> General. I have been making a lot of runs while creating and debugging the CI. If these artefacts count towards the total reported size, then we should start seeing a size reduction after 90 days. Please note that nightly and release CI runs do not store artefacts in this way. Nightlies are merely uploaded to download.openzim.org, and releases are released in GitHub Releases and on download.openzim.org, but not archived.

@stale
Copy link

stale bot commented May 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label May 26, 2023
@Jaifroid Jaifroid removed the stale label Jun 12, 2023
@kelson42
Copy link
Author

@Jaifroid I just have done it for another repo. Using the given tool is very easy. Let me know if you want me to do it.

@Jaifroid
Copy link
Collaborator

@kelson42 I'm very happy for you to have a go. The only BLOBs currently saved to the Repo should be in the Prototype and the Large File test, which we currently still need, though of course there could be more in the (relatively short) history of this Repo from past versions. It's fine to strip out past versions, so long as current files remain. I understand that BFG always preserves the current version of files in each branch, so that shouldn't be an issue (I've used it on Kiwix JS PWA previously, and I'm aware all users need to reset their local copies after the rewrite of history).

I have a plan to move the Prototype to a gh-pages branch which will be built on master and force-pushed each time it is updated, thus ensuring no history is kept on that branch.

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

No branches or pull requests

2 participants