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

remove: nodechecks function as it is not being used #683

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

VanillaSpoon
Copy link
Member

@VanillaSpoon VanillaSpoon commented Nov 7, 2023

What changes have been made

Removal of the unused function

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

@VanillaSpoon
Copy link
Member Author

/retest

Copy link
Contributor

@ChristianZaccaria ChristianZaccaria left a comment

Choose a reason for hiding this comment

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

Nice one! It looks like it's not being used anywhere, in fact, it was a function created 2 years ago and seems never modified since then. I think it's safe to remove.

There are a number of functions in that file that are not being used as well. For example:

func (c *EtcdErrorClassifier) Classify(err error) retrier.Action {

That one in particular was created 4 months ago and is not used, and not updated since then. Wondering if a clean-up of all unused functions is a good idea given they won't be used again in the future.

cc: @astefanutti @z103cb interested in your thoughts on doing a complete clean-up on unused functions as a follow-up to this PR?

@ChristianZaccaria
Copy link
Contributor

@VanillaSpoon you can retest by adding a comment and pushing changes to this PR. /retest should work but I think there's some bug in the OpenShift CI that needs to be fixed. I created this issue to see if people have any comments on it: #685

@VanillaSpoon VanillaSpoon force-pushed the nodeChecks branch 2 times, most recently from e101e44 to 57a04f6 Compare November 9, 2023 15:23
Copy link
Contributor

@ChristianZaccaria ChristianZaccaria left a comment

Choose a reason for hiding this comment

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

/LGTM thanks @VanillaSpoon !

@astefanutti
Copy link
Contributor

/lgtm

@astefanutti
Copy link
Contributor

/approve

Copy link

openshift-ci bot commented Nov 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: astefanutti, ChristianZaccaria

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

@astefanutti
Copy link
Contributor

cc: @astefanutti @z103cb interested in your thoughts on doing a complete clean-up on unused functions as a follow-up to this PR?

@ChristianZaccaria that sounds desirable / reasonable to me 👍🏼.

@openshift-merge-bot openshift-merge-bot bot merged commit bbb6871 into project-codeflare:main Nov 14, 2023
2 checks passed
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.

None yet

3 participants