-
Notifications
You must be signed in to change notification settings - Fork 256
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
🌱 Enabled last batch of linters #1642
Conversation
/hold |
02af350
to
af37f85
Compare
/hold cancel |
/test metal3-bmo-e2e-test-pull |
E2E fixture keeps failing: https://github.com/metal3-io/baremetal-operator/actions/runs/8468903278/job/23328588042?pr=1642 |
Yes, seems like it is induced by the PR. I am trying to make sense out of the error message currently. |
80bb236
to
38c1139
Compare
/test metal3-bmo-e2e-test-pull |
Should be fixed now |
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
@@ -36,14 +35,15 @@ func (p *ironicProvisioner) checkIronicConductor() (ready bool, err error) { | |||
} | |||
|
|||
driverCount := 0 | |||
pager.EachPage(p.ctx, func(_ context.Context, page pagination.Page) (bool, error) { | |||
_ = pager.EachPage(p.ctx, func(_ context.Context, page pagination.Page) (bool, 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.
Is this an error? We probably shouldn't just ignore 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.
Yes, this is an error and it breaks the test
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.
@dtantsur please check the unit test failure now caused by this, I would need help understanding this in case we dont want to ignore 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.
I couldn't get an easy pointer to this issue, as you said in slack chat, possibly this is due to some bad mocking, I will check it separately (will create an issue for that), for now ignoring it.
38c1139
to
c955780
Compare
585db87
to
293addf
Compare
Testing pipeline change. Please disregard. |
/test metal3-bmo-e2e-test-pull |
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.
As a way forward, I suggest we do the import sorting in a separate PR first. That will make this way smaller and easier to review
21fb198
to
e79cd20
Compare
/test metal3-bmo-e2e-test-pull |
This PR adds gci linter and fixes according to gci suggestions. This is part of metal3-io#1642 Signed-off-by: Kashif Khan <kashif.khan@est.tech>
/hold |
e79cd20
to
a62124a
Compare
/test metal3-bmo-e2e-test-pull |
/ok-to-test |
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.
/approve
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.
/approve
# - nakedret | ||
# - nilerr | ||
# - noctx | ||
- nakedret |
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'm not convinced that this is an improvement, but I respect that other people seem to have a different opinion.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90, zaneb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Kashif Khan <kashif.khan@est.tech>
a62124a
to
e609781
Compare
/test metal3-bmo-e2e-test-pull |
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.
We have two approvals. Changing mine to lgtm
/lgtm
This PR adds the following last set of golangci linters
I was also eager to enabled
containedctx
, however it had some issues with recently introduced structs with the following errorSince this needs discussion, this is currently disabled.