-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Fixed errcheck issues in server/channels/app/import_functions_test.go #29229
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
Conversation
|
@edlerd: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsI understand the commands that are listed here |
|
/release-note-none |
hanzei
left a comment
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.
Nice PR 👍
There are some linter errors to clean up:
Error: channels/app/import_functions_test.go:74:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:83:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:92:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:101:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:158:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:214:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:262:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:271:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:280:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:289:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:346:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:402:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:626:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:643:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:652:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:660:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:668:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:677:2: calling require.NotNil on error, please use require.Error instead
Error: channels/app/import_functions_test.go:691:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:698:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:715:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:722:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:741:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:743:2: calling require.Nil on error, please use require.NoError instead
Error: channels/app/import_functions_test.go:5581:5: calling require.NoError on *github.com/mattermost/mattermost/server/public/model.AppError, please use require.Nil instead
Error: channels/app/import_functions_test.go:5589:5: calling require.NoError on *github.com/mattermost/mattermost/server/public/model.AppError, please use require.Nil instead
Error: channels/app/import_functions_test.go:5734:5: calling require.NoError on *github.com/mattermost/mattermost/server/public/model.AppError, please use require.Nil instead
Please let me know if you need any help
39f9008 to
017f1ba
Compare
|
Updated the linter issued and ensured |
017f1ba to
9cb3ca9
Compare
|
test cases and make vet passes locally ✔️ |
|
Let's see if CI is also happy |
hanzei
left a comment
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.
Great work @edlerd 🎉
A few comments below
9cb3ca9 to
4b1dbd6
Compare
4b1dbd6 to
7c4d730
Compare
|
@edlerd Heads up that there is no need to force push to your branch. The commits get squashed any way before merging them. |
|
Not sure why the enterprise tests are failing. I don't have access to the results and the details link is 404 for me. Are those failures maybe unrelated to the changes introduced here? |
|
Your branch is out f sync with the closed source code. I've merged |
|
@hanzei the merge worked, but ci needs to be triggered again and I guess this might be ready to merge after it passes. |
|
Sorry, @edlerd, there is yet another merge conflict. Can you please take a look? Thanks! |
db98bf6 to
be30a4d
Compare
|
I rebased on main and resolved the conflicts. @hanzei please run ci and merge as it passes. |
hanzei
left a comment
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.
Great work! There are some unresolved comments, but none of them is blocking. e.g. https://github.com/mattermost/mattermost/pull/29229/files#r1841724285
…attermost#28949 Signed-off-by: David Edler <david.edler@canonical.com>
be30a4d to
aa8a3f0
Compare
Woops, those probably surfaced again from a bad merge. Addressed all the issue now, please check it works all fine by now @hanzei |
hanzei
left a comment
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.
Awesome 🚀
BenCookie95
left a comment
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.
LGTM, thanks @edlerd
|
Great, this was a big one with quite a few learnings for me. Thx for the reviews and suggestions 😀 |
Summary
Fixed errcheck issues in server/channels/app/import_functions_test.go
Ticket Link
Fixes #28949