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

🐛 fix unhandled errors #4895

Merged

Conversation

sbueringer
Copy link
Member

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:
I think it makes sense to either handle errors or ignore them explicitly

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Implements a part of #4622

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 8, 2021
@k8s-ci-robot k8s-ci-robot requested review from enxebre and JoelSpeed July 8, 2021 08:58
@randomvariable
Copy link
Member

/lgtm
/retest

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2021
Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

This is fine as is but added a couple of notes for potential improvements, very minor/stylistic and definitely non-blocking

cmd/clusterctl/cmd/config_provider.go Outdated Show resolved Hide resolved
controllers/remote/cluster_cache_healthcheck_test.go Outdated Show resolved Hide resolved
@sbueringer sbueringer force-pushed the pr-fix-unhandled-errors branch from 2cc4c06 to 5f3b972 Compare July 8, 2021 11:34
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2021
@sbueringer
Copy link
Member Author

Thx for the reviews, ptal @enxebre @JoelSpeed

(I hope/assume the apidiff is not a problem)

Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

/lgtm

Looking at the diff, seems we've changed the signature of some machinedeployment controlelr utils, that appears to be handled within this PR and I doubt that code is used outside of the project, so I think that should be ok

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2021
@sbueringer
Copy link
Member Author

/test pull-cluster-api-test-main
I assume those were flakes, tests worked locally.

controllers/mdutil/util.go Outdated Show resolved Hide resolved
controllers/mdutil/util.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 8, 2021
@sbueringer sbueringer force-pushed the pr-fix-unhandled-errors branch from 5f3b972 to f800b8c Compare July 8, 2021 15:52
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2021
@sbueringer
Copy link
Member Author

sbueringer commented Jul 8, 2021

@vincepri I also added ComputeSpewHash to avoid breaking API compatiblity of ComputeHash. PTAL

Signed-off-by: Stefan Büringer [email protected]
@sbueringer sbueringer force-pushed the pr-fix-unhandled-errors branch from f800b8c to 4456b51 Compare July 8, 2021 15:54
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 8, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 8, 2021
@sbueringer
Copy link
Member Author

/cc @fabriziopandini

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 13, 2021
@sbueringer
Copy link
Member Author

/retest

@vincepri
Copy link
Member

vincepri commented Jul 13, 2021

This is new, @sbueringer can you check if the flake is reproducible locally?

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 13, 2021
@sbueringer
Copy link
Member Author

@vincepri I don't think it's related:

Hopefully the retest will also work :)

/retest

@sbueringer
Copy link
Member Author

@vincepri I think we can merge this PR.

@CecileRobertMichon
Copy link
Contributor

/hold cancel
/lgtm

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit c5bbf36 into kubernetes-sigs:master Jul 15, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Jul 15, 2021
@sbueringer sbueringer deleted the pr-fix-unhandled-errors branch July 15, 2021 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants