You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current way of keeping the reference images in a subrepo doesn't look like a good idea any longer. We need to bring those images into the ImageSharp repository.
However, in long term need to have control over the repository size, so the following chore tasks have to be finished, before integrating the reference images:
Clean up the git history on main, dropping image blobs from the past. (We can copy the current, heavy git tree to an archive branch.)
If we want control over reference image sizes, we should not add tests with "no brainer" test images. We should choose the test images wisely for [Theory]-s having a reference output. We need to review all test cases, and drop all usages of stuff like dumb lists in TestFileBase (eg. FileTestBase.DefaultFiles).
I would recommend Git Large File Storage (LFS) to separate binary file from the git repo. It is a git plugin which makes it very convenient to deal with it. It will replace binary files with a text pointer in git and the files itself would be stored at GitHub.
You just mark file you want to track by LFS like this:
git lfs track "*.jpg"
And thats it, the rest is just the usual git workflow. For a quick start guide: GIT LFS.
You can also change the git history with it like this:
Activity
JimBobSquarePants commentedon Mar 30, 2019
Volunteering someone else to do step 1.
We should make this a priority as I've already broken tests for everyone else. SixLabors/Imagesharp.Tests.Images@9d71985
brianpopow commentedon Apr 26, 2019
I would recommend Git Large File Storage (LFS) to separate binary file from the git repo. It is a git plugin which makes it very convenient to deal with it. It will replace binary files with a text pointer in git and the files itself would be stored at GitHub.
You just mark file you want to track by LFS like this:
git lfs track "*.jpg"And thats it, the rest is just the usual git workflow. For a quick start guide: GIT LFS.
You can also change the git history with it like this:
git lfs migrate import --include="*.jpg"For more information: GIT LFS repository
The only downside i see is, that contributers would need to install the plugin to get the images to be able to run the unit test.