jenkinsci / opentelemetry-agent-metrics-plugin

Monitor Jenkins build agents using Opentelemetry Collector and Node exporter
https://plugins.jenkins.io/opentelemetry-agent-metrics/
MIT License
2 stars 0 forks source link

Cleanup LFS data #6

Closed NotMyFault closed 1 year ago

NotMyFault commented 1 year ago

Hey @christophe-kamphaus-jemmic,

GitHub reported that your repository drains and exceeds the entire LFS quota for the jenkinsci organization:

Screenshot 2023-08-26 at 16 55 30

According to https://github.com/jenkinsci/opentelemetry-agent-metrics-plugin/blob/7743ac9c0c70ad5815b917acf0c409964ec1df7e/.gitattributes#L5-L19, you store various large files in LFS.

Could you clean up the files from the git history please?

Thanks in advance!

christophe-kamphaus-jemmic commented 1 year ago

GitHub reported that your repository drains and exceeds the entire LFS quota for the jenkinsci organization

Sorry about that.

Could you clean up the files from the git history please?

Done, I've rewritten the history (including all tags) to remove all LFS files, which was quite painful.

Unfortunately according to https://docs.github.com/en/repositories/working-with-files/managing-large-files/removing-files-from-git-large-file-storage#git-lfs-objects-in-your-repository this might not be enough to remove these files from Github LFS remote storage.

If the repository needs to be recreated what would be the best way forward?

NotMyFault commented 1 year ago

Done, I've rewritten the history (including all tags) to remove all LFS files, which was quite painful.

Thanks for your swift response! Unfortunately, GitHub updates LFS quotas every 30 days only, and we don't see an immediate effect.

With your permissions, I'd recreate the GitHub repository if that's needed to completely wipe the LFS data from GitHub's end. That should lead to great avail, given you've rewritten the history already.

christophe-kamphaus-jemmic commented 1 year ago

With your permissions, I'd recreate the GitHub repository if that's needed to completely wipe the LFS data from GitHub's end. That should lead to great avail, given you've rewritten the history already.

Fine with me. Go ahead.

NotMyFault commented 1 year ago

With your permissions, I'd recreate the GitHub repository if that's needed to completely wipe the LFS data from GitHub's end. That should lead to great avail, given you've rewritten the history already.

Fine with me. Go ahead.

All done.

Screenshot 2023-08-28 at 09 04 38

Storage quota is down to the usual amount.

Thanks!