Do not ignore repository sizes #145
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now we ignore the size of the repositories and treat <1 MB ones the same as >600 MB ones (ex openui).
We do not check the sizes at all:
One can add a nGB repo and update it constantly to waste our resources.
I'd recommend to set the bar quite high to avoid that legitimate repos (e.g. Linux Kernel) are excluded.
Perhaps it would make sense to add an Admin API route that checks the repo sizes, e.g. via the GitHub API, to regularly assess potential abuses.
I think we should not closely tie our logic to a specific remote proprietary API.
In my opinion a much better solution would be to store the
du -sof a repository that we have already cloned for analysis.