-
Notifications
You must be signed in to change notification settings - Fork 99
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
ci(deps): upgrade golangci-lint #2556
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2556 +/- ##
==========================================
- Coverage 92.72% 92.72% -0.01%
==========================================
Files 169 169
Lines 22461 22463 +2
==========================================
Hits 20828 20828
- Misses 1016 1018 +2
Partials 617 617 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. @jkroepke for the PR. I do have some questions on the disabled linters.
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
4119d69
to
b582a8f
Compare
I enabled the mentioned linters. The results should be visible in the UI. lint settings are very moody. From my point of view, the motivation to go over all lints, fix the lint issue or ignore should be more decided by an zot maintainer. Some linter are supporting auto-fix which introduced a lot of white spaces changes and resulting into merge conflicts again. There are 2 possibilities to move forward:
|
Thank you @jkroepke for looking into this. @ram, based on the latest lint output I think we can:
|
One use-case is to pass the context from end-to-end. For example, if a request get cancels, it would also cancel all outstanding operations, too. For perfsprint and wsl, there is an auto fix command. Do not do it by hand. |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
…-append -test=true -fix ./... Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Why are the imports changed? Looks like these settings are not respected?
The default and prefix imports are not separated in the last update. |
dcef7af
to
b1cf47c
Compare
…ite ." This reverts commit 5bf8c42. Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
…d' -s default -s 'prefix(zotregistry.dev/zot)' . Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
3f46ae3
to
e8be84a
Compare
Make me sad that test failing here because of running lint fixes. Are you interest to continue? Going through all lint issues and resolve creates a hugh amount of line diff with endless merge conflicts. I still recommend disable some linter and resolve the issues in a upcoming PR. |
@jkroepke fully familiar with this situation 😞 having done this several times. And your effort here is much appreciated. Let me take a look at the list a little more carefully so we can find a good compromise. |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
wsl issues are crazy high, since the test files seems like copy/paste and the same issues appeared over and over again. But it looks good for now. Only the benchmark tests reports that something is way slower. But I had the same issue, in #2532 too @andaaron Sorry I do not see your PR. But feel free to merge and I'm going to the hell trough conflicts. It's okay |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
My PR is linked to this one, #2571, but not merged yet. No updates since yesterday, waiting on the review from @rchincha. I reviewed all the changes in this PR so far and it looks good. |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Originally found by @jkroepke in: https://github.com/project-zot/zot/actions/runs/10056774230/job/27796324933?pr=2556 And #2556 in general This commit covers: - (canonicalheader) capitalization of Docker-Content-Digest header - (protogetter) the proto getters were not used, they check for nil pointers, we should switch to using them - (zerologlint) fix the false positive Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
My PR was merged. |
The |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
The golangci-lint check is green 🎉 To include #2571, I do a merge from main. |
Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@jkroepke thanks for getting this done. These types of tasks are very painful but clear the inevitable accumulation of tech debt! |
What type of PR is this?
cleanup
Which issue does this PR fix:
Cut off from #2532
What does this PR do / Why do we need it:
I had issues with the old golangci-lint version, see https://github.com/project-zot/zot/actions/runs/10028369912/job/27715210368?pr=2532
ref: golangci/golangci-lint#3718
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.