-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Feature Request] LFS threshold #264
Comments
I also had this exact problem this weekend. I ended up needing to reset the last commit from the ARCitect, and then push tiny chunks of data in about 8 separate pushes through the terminal. Maybe a warning should at least be implemented that tells users about this issue when they try to push new data. |
We are increasing this limit to 100MB for now. Not sure if that is enough, but we need a way to prevent users from uploading what should be LFS files into the repository directly. A banner will be shown to the users when this is in place. That should then be seen from both the UI and on the terminal. Edit: Banner is in place. |
Is it not possible to forcibly track large files, regardless of whether or not users set another, higher LFS file size limit? To rather put a cap on the user input there (e.g. if a user sets the LFS limit to 1 GB, it is still set to 100 MB, maybe with a warning)? But I get your point, this is definitely something that should be discussed. Then again, that LFS file size limit can only be adjusted in the ARCitect, not for when a user tries to push changes directly through their terminal... |
This is quite a complex topic and has been discussed extensively on this git-lfs issue which is still open and not solved. Git's hooking mechanism is probably the answer here. Ideally we would need a server-side hook to enforce it independently of the client's config. Most workarounds/hack use client-side precommit hooks, which seem pretty straightforward, but that would be something that each user would need to setup. We will look into what can be done with server-side hooks and go from there. And yes, let us setup a meeting to discuss this matter. |
The LFS size limit in ARCitect never knew about this upper limit. It was just an easy mechanism for users to select which files they want to track with LFS. It would be easy to enforce that limit inside ARCitect, but then of course other tools like the ARCCommander will not profit from this. It is also possible to add a pre-commit hook in ARCitect, but with the same issue. |
Ok this issue pops up too often now with both ARCitect and ARC Commander, windows and mac. We need to adapt the lfs threshold in the tools to that of the datahub. |
I think setting the default threshold to 99MB is not correct. Ideally users should track
|
To emphasize that the current threshold is apparently misunderstood, imagine a directory containing 1000 files each 90MB. With the increased limit it looks like this would be ok to be tracked without LFS, but it definitely should be! |
I think adding folder-specific checkboxes is a good idea. If it is possible to check a folder that then automatically also checks all files within that folder (in case a user adds one folder with data output that contains 1000 files, they don't have to check 1000 files individually). On the other hand, when the list is very long, listing for example 1000 new files in multiple different directories, users might feel discouraged to scroll through the entire commit list just to find the right folders to check. We definitely have to consider how to present the commit list in that case |
I get your points. The PR on ARC Commander really just decreased an already existing default threshold towards working with the current datahub limit. Adding a check-box layer helps as long as it does not roadblock. So the >99MB enforcement definitely also helps; ideally together with a message. |
For the DataHUB (instance in Freiburg) a non-LFS size limit of 10 MB was implemented to avoid pile-up of large repos / data volumes.
If users now go over that limit (i.e. track >10MB files with pure git, not LFS) they will currently run into the error
remote: fatal: pack exceeds maximum allowed size (10.00 MiB)
.The text was updated successfully, but these errors were encountered: