-
Notifications
You must be signed in to change notification settings - Fork 553
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: Update golangci lint and helm version #4539
Conversation
"testing" | ||
|
||
cerrors "github.com/ceph/ceph-csi/internal/cephfs/errors" | ||
|
||
fsa "github.com/ceph/go-ceph/cephfs/admin" | ||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" |
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.
nit: no need to change to require
, could have stayed assert
as that also provides ErrorIs()
and there are is no dependent usage of the result. Not sure what golangci-lint reported about this though.
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.
golangci lint suggested to use require instead of assert and it was failing, so i made this change
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.
can github.com/stretchr/testify/assert
be removed from go.mod
and vendor/
after these changes?
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.
i assume if its not required, CI would have caught it, will check and address it if required.
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.
Thanks, I'm merely wondering about it.
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.
[🎩︎]mrajanna@li-2cfbef4c-22d9-11b2-a85c-a3e4a93c405f ceph-csi $]go mod tidy
[🎩︎]mrajanna@li-2cfbef4c-22d9-11b2-a85c-a3e4a93c405f ceph-csi $]git diff
i did run go mod tidy
didnt find anything as we have github.com/stretchr/testify
as import in go.mod
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.
just one small nit.
@@ -29,11 +29,11 @@ import ( | |||
// that interacts with CephFS filesystem API's. | |||
type FileSystem interface { | |||
// GetFscID returns the ID of the filesystem with the given name. | |||
GetFscID(context.Context, string) (int64, error) | |||
GetFscID(ctx context.Context, fsName string) (int64, error) |
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.
Can you please point to the linter that suggested this change?
I am interested in reading about the suggestion.
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.
internal/cephfs/core/filesystem.go:32:11: interface method GetFscID must have named param for type context.Context (inamedparam)
GetFscID(context.Context, string) (int64, error)
^
6c24b3c
to
fb407b8
Compare
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
fb407b8
to
2e36288
Compare
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/k8s-e2e-external-storage/1.29 |
/test ci/centos/k8s-e2e-external-storage/1.28 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.29 |
/test ci/centos/mini-e2e-helm/k8s-1.28 |
/test ci/centos/mini-e2e/k8s-1.29 |
/test ci/centos/mini-e2e/k8s-1.28 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/upgrade-tests-rbd |
updating helm to the latest release 3.14.3 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
deadline is replaced with timeout in recent release and updated the reference to the new sample yaml. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
nolint:interfacer is not required for the latest golangci-lint Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2e36288
to
c4ce2b3
Compare
Pull request has been modified.
/test ci/centos/k8s-e2e-external-storage/1.28 |
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.28 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/k8s-e2e-external-storage/1.29 |
/test ci/centos/mini-e2e/k8s-1.28 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/upgrade-tests-rbd |
/test ci/centos/mini-e2e-helm/k8s-1.29 |
/test ci/centos/mini-e2e/k8s-1.29 |
@Mergifyio rebase |
✅ Nothing to do for rebase action |
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 5aace6e |
Updated golangci-lint and helm to the latest release and addressed all the linter issues.