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
git comparator reporting incorrect deltas #52
Comments
Possible example: https://github.com/adobe/node-fetch-retry/runs/6223100946?check_suite_focus=true Has this
|
Unfortunately it seems this has been exaggerated with the changes of #72 - moving to a pure local cloning for the I believe the local cloning that git does optimizes storage by using hard links etc., so it might always measure smaller. For a "clean slate" checkout comparison – which the |
Hey, I tried this promising tool and had the exact same issue. :-) |
@demonzoo Unfortunately it seems not trivial to solve, given the fixes for #72. Most CIs do nasty tricks to pull/checkout only the actual current revision and no other branches (to make it fast), and that's the context that Right now I'd be inclined to disable the As for the solution, we might have to keep the Also I believe that due to the optimizations that |
@farukozderim The implementation of the
I hope to disable it by default in the next version as a quick fix, and then need to investigate further on how to measure an accurate git checkout delta, as it's actually not a trivial problem (see my above comment). Which might take an unknown amount of time, unfortunately. |
@alexkli thanks for the reply, would it be enough if I just add these lines to the configuration file?
|
Yes, that should work. |
@alexkli that fixed the error but it does not warn even if there is a file >1MB committed in the PR, any idea about this?
This is my sizewatcher config:
|
That's expected, if you turn off the
|
I added a warning in the readme to avoid confusion: d6019de |
In these conditions the
git
comparator did only report a 0.1% increase with the after size:Reported:
but it should have been something like this:
The text was updated successfully, but these errors were encountered: