Enable git LFS for storing binary files for testing #2159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently there are few issues in which we could not progress due to the limitation of adding big files into the reposiroty (see #2042 and #930). I am experimenting with Git LFS which I think could be an interesting solution for being able to upload bigger test data files in our repository (This is useful when we need the original files and not the .exv with the extracted metadata).
I have been following the steps explained here, and it seems to work quite nicely!
At the moment I only tracked the .jpg files in the repository (with the command:
git lfs track *.jpg
).One can see the tracked files with:
git lfs ls-file
And aparently I could migrate the existing jpg files from normal git objects to LFS ones with
git lfs migrate import --include="*.jpg"
It is the first time I work with git LFS so I would appreciate any feedback/suggestions with people with more experience in this topic. So far it looks easy to use.
Note: I had to update all the CI jobs needing to run the tests to indicate that the checkout action should use LFS.