Skip to content

Fix regression where non-raid attached disks did not determine correct disk type#133

Merged
hallyn merged 2 commits intoproject-machine:mainfrom
raharper:test/add-test-for-virt-ssd-hint
Feb 22, 2024
Merged

Fix regression where non-raid attached disks did not determine correct disk type#133
hallyn merged 2 commits intoproject-machine:mainfrom
raharper:test/add-test-for-virt-ssd-hint

Conversation

@raharper
Copy link
Collaborator

The raid controller merge regressed the path for non-raid attached disks
and all such disks were classified as HDDs. This was found under KVM
testing where disko uses a prefix in the ID_SERIAL property to set the
disk type to SSD.

  • Add coverage for this path

Add coverage for the diskType hint under kvm

Signed-off-by: Ryan Harper <ryaharpe@cisco.com>
…t disk type

The raid controller merge regressed the path for non-raid attached disks
and all such disks were classified as HDDs.  This was found under KVM
testing where disko uses a prefix in the ID_SERIAL property to set the
disk type to SSD.

Signed-off-by: Ryan Harper <ryaharpe@cisco.com>
@codecov
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7b7d307) 65.38% compared to head (749ccdd) 66.02%.

Files Patch % Lines
linux/system.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   65.38%   66.02%   +0.64%     
==========================================
  Files          17       17              
  Lines        2551     2555       +4     
==========================================
+ Hits         1668     1687      +19     
+ Misses        683      661      -22     
- Partials      200      207       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hallyn hallyn merged commit 247dd95 into project-machine:main Feb 22, 2024
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.

2 participants