Skip to content
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

Bump lint tools versions #4616

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Feb 20, 2025

1. Explain what the PR does

fd50c23 chore(lint): bump errcheck to 1.9.0
57bf903 chore(lint): bump staticcheck to 2025.1
368273c chore(lint): consider to enable revive rules
2a5419f chore(lint): apply revive modifies-value-receiver rule
2dfc114 chore(lint): apply revive control-nesting rule
d0d95d2 chore(lint): apply revive redundant-build-tag rule
f788752 chore(lint): apply revive superfluous-else rule
a08433f chore(lint): apply revive use-errors-new rule
2dda968 chore(lint): bump revive to 1.7.0

2. Explain how to test it

3. Other comments

@geyslan
Copy link
Member Author

geyslan commented Feb 20, 2025

This unblocks #4615

Copy link
Collaborator

@NDStrahilevitz NDStrahilevitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just note the first comment.

@@ -1,5 +1,4 @@
//go:build arm64
// +build arm64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have syscall tests in the e2es. We do have them in integration, but integration only runs in amd64. I understand that revive considers this redundant but this is a sensitive change.

So I think we should:

  1. Test syscalls manually in this PR in an arm64 machine
  2. Add a mirror integration test job that runs on an arm64 runner. I have opened Mirror integration tests on ARM64 #4621 for this.

@@ -23,25 +23,25 @@ enableAllRules = true
[rule.call-to-gc]
Disabled = false
[rule.confusing-naming]
Disabled = true
Disabled = true # TODO: consider enabling this
[rule.comment-spacings]
Disabled = false
[rule.confusing-results]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've disabled this in containerd.go , near where I am refactoring this right now. It would be useful to know what this option entails so I can tackle it at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants