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
Remove excessive dependencies on go-kit #8711
Conversation
Signed-off-by: John Howard <howardjohn@google.com>
3d6a8d7
to
11aa551
Compare
@howardjohn can you please describe the issue you are trying to solve here? Based on the discussion in prometheus/common#255 (comment) this does not appear to be an issue, so I'm curious why you're bringing this up. What concerns me more than lines of code is a code regression due to a version downgrade. |
The primary concern is we updated our helm version and it brought in a substantial amount of dependencies. I find it important to minimize dependencies when possible to avoid bloat and reduce module conflict pains. |
On master:
Compared to this PR:
Net result still looks the same to me. We're looking at a difference of about 6k LOC overall by removing 14 files. That seems like a stark difference compared to the claimed 5.5M+ lines of code supposedly removed in prometheus/common#255. Have you tested this yourself? How should I be testing this?
While I understand that, downgrading a dependency seems like a backwards way to reduce bloat. Have you tested to see how these changes may impact Helm itself? |
I have ran the tests and It seems you have CI set up, is there other testing developers are expected to do?
I have tested this myself by counting the lines of codes downloaded by go modules when importing the repo rather than the vendor directory (keep in mind many users do not use vendor). You can also see from the go.sum a large amount of dependencies that are no longer present wth this PR |
I would be amenable to an upgrade of sql-migrate that removed the code bloat. But, considering that there is a greater risk of a regression being introduced than a few extra lines of code being downloaded during a Thank you for your input. |
What this PR does / why we need it:
This downgrades our version of
sql-migrate
. This results in dropping a ton of dependencies - prometheus/common#255 (comment) has some more infoEssentially a partial revert of 148d94b