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

Fixed Defect in service.go #331

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Fixed Defect in service.go #331

merged 2 commits into from
Oct 7, 2024

Conversation

daniyaliqbal2024
Copy link
Contributor

@daniyaliqbal2024 daniyaliqbal2024 commented Sep 26, 2024

Description

Introducing a error check for setting array related data to envs in csi-powermax

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
dell/csm#1499

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit & integration tests successfully?
  • Have you maintained at least 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

Ran sucessful gosec./... test and make unit-test with screenshots below

@daniyaliqbal2024
Copy link
Contributor Author

image

Copy link
Contributor

@abhi16394 abhi16394 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@gallacher gallacher left a comment

Choose a reason for hiding this comment

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

Please add unit tests to test these new lines of code. Also, the summary line indicates you're fixing a defect but I don't think there is a defect for this? This is addressing technical debt is it not?

@anandrajak1
Copy link

@daniyaliqbal2024 - GitHub mapping was wrong. Can you create the defect in github and map it.

@daniyaliqbal2024
Copy link
Contributor Author

unit-test-result

@daniyaliqbal2024
Copy link
Contributor Author

image (1)

Copy link
Contributor

@donatwork donatwork left a comment

Choose a reason for hiding this comment

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

I viewed the code coverage and it is an adequate fix for the problem. The cost of testing that the error is actually logged is something that we could do but it is costly to change in the current code.

@daniyaliqbal2024 daniyaliqbal2024 merged commit 75b760c into main Oct 7, 2024
5 checks passed
@anandrajak1 anandrajak1 deleted the fix-weakness-servicego branch October 17, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants