slsa-verifier icon indicating copy to clipboard operation
slsa-verifier copied to clipboard

Remove large files

Open laurentsimon opened this issue 2 years ago • 1 comments

I'm seeing some warnings when using the git command:

remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File 278574a27b5008ce50cfe31c787cd00f0d7e6ea4 is 54.86 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

@asraa can we re-generate these test files to be smaller and purge the commit history?

git filter-branch --index-filter 'git rm --cached --ignore-unmatch -r *THE_FILE' branchname seems to work to purge the history. (https://stackoverflow.com/questions/6490454/find-commits-that-modify-file-names-matching-a-pattern-in-a-git-repository)

laurentsimon avatar Aug 03 '22 13:08 laurentsimon

I can take a look at this sometime soon -- now that we have a verifier e2e workflow it's easier for me to recreate test cases.

./cli/slsa-verifier/testdata/binary-linux-amd64-sharded is what I'm seeing above 10M. This was a special case one. Was there other ones?

asraa avatar Jan 12 '23 00:01 asraa