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

[ISSUE-1096] Fix lint and unit test error for resolution to atl-22498 #1098

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

eddiepavkovic
Copy link
Collaborator

@eddiepavkovic eddiepavkovic commented Feb 26, 2024

Purpose

Resolves #1096

Fixed lint issue from previous #1095 merge

PR checklist

  • Add link to the issue
  • Choose Project
  • Choose PR label
  • New unit tests added
  • Modified code has meaningful comments
  • All TODOs are linked with the issues
  • All comments are resolved

Testing

https://asd-ecs-jenkins.isus.emc.com/job/csi-custom-build/1006/

Running csi-custom-ci and csi-custom-build

- to fix unit test

Signed-off-by: Eddie Pavkovic <[email protected]>
@eddiepavkovic eddiepavkovic changed the title [Issue #1096] - Fix lint error for bug atl-22498 [ISSUE-1096] Fix lint and unit test error for resolution to atl-22498 Feb 26, 2024
@@ -161,8 +161,13 @@ func (l *LSBLK) GetBlockDevices(device string) ([]BlockDevice, error) {
// Receives an instance of drivecrd.Drive struct
// Returns drive's path based on provided drivecrd.Drive or error if something went wrong
func (l *LSBLK) SearchDrivePath(drive *api.Drive) (string, error) {
// device path might be already set by hwmgr
Copy link
Collaborator

Choose a reason for hiding this comment

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

adding this code back seems violate @prasant123 previous fix code intention. if device is in drive CR, then the device name in driveCR is returned here, this might be a wrong name due to device name change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok i'll remove the test case and put back his orig code.
thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@libzhang - do you have any idea why all the PR checks are no longer on this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure, maybe there is some bug in the our release branch workflow.

Copy link
Collaborator

@prasant123 prasant123 left a comment

Choose a reason for hiding this comment

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

LGTM

@eddiepavkovic eddiepavkovic linked an issue Feb 26, 2024 that may be closed by this pull request
@eddiepavkovic eddiepavkovic merged commit c0ea32c into rel/CY2310 Feb 26, 2024
1 check passed
@eddiepavkovic eddiepavkovic deleted the bugfix-1096-fix-lint-for-atl-22498 branch February 26, 2024 05:27
Andrzej-Zukowski pushed a commit that referenced this pull request Feb 26, 2024
…#1098)

* [Issue #1096] - Fix lint error for bug atl-22498

Signed-off-by: Eddie Pavkovic <[email protected]>

* [Issue #1096] - Put code back that returned device if path set
- to fix unit test

Signed-off-by: Eddie Pavkovic <[email protected]>

* [ISSUE-1096] - Put back code from previous PR and removed invalid test case

Signed-off-by: Eddie Pavkovic <[email protected]>

---------

Signed-off-by: Eddie Pavkovic <[email protected]>
Andrzej-Zukowski pushed a commit that referenced this pull request Feb 26, 2024
…#1098)

* [Issue #1096] - Fix lint error for bug atl-22498

Signed-off-by: Eddie Pavkovic <[email protected]>

* [Issue #1096] - Put code back that returned device if path set
- to fix unit test

Signed-off-by: Eddie Pavkovic <[email protected]>

* [ISSUE-1096] - Put back code from previous PR and removed invalid test case

Signed-off-by: Eddie Pavkovic <[email protected]>

---------

Signed-off-by: Eddie Pavkovic <[email protected]>
Signed-off-by: Andrzej Zukowski <[email protected]>
Andrzej-Zukowski added a commit that referenced this pull request Feb 26, 2024
* [Issue-1084] Addjust scheduler extender algorithm

Signed-off-by: Andrzej Zukowski <[email protected]>

* [Issue-1084] Fixes after review

Signed-off-by: Andrzej Zukowski <[email protected]>

* [Issue-1091] 1.5.1 version (#1093)

Signed-off-by: Andrzej Zukowski <[email protected]>

* Finding drive vid in lsblk vendor (#1094)

* Finding drive vid in lsblk vendor

* addressing review comments

* Initializing device

---------

Signed-off-by: Andrzej Zukowski <[email protected]>

* [ISSUE-1096] Fix lint and unit test error for resolution to atl-22498 (#1098)

* [Issue #1096] - Fix lint error for bug atl-22498

Signed-off-by: Eddie Pavkovic <[email protected]>

* [Issue #1096] - Put code back that returned device if path set
- to fix unit test

Signed-off-by: Eddie Pavkovic <[email protected]>

* [ISSUE-1096] - Put back code from previous PR and removed invalid test case

Signed-off-by: Eddie Pavkovic <[email protected]>

---------

Signed-off-by: Eddie Pavkovic <[email protected]>
Signed-off-by: Andrzej Zukowski <[email protected]>

* [ISSUE-1096] Change component version to 1.6.0

Signed-off-by: Andrzej Zukowski <[email protected]>

---------

Signed-off-by: Andrzej Zukowski <[email protected]>
Signed-off-by: Eddie Pavkovic <[email protected]>
Co-authored-by: PrasantDell <[email protected]>
Co-authored-by: eddiepavkovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

22498 - lint issue with previous fix for lsblk.go
3 participants