Skip to content

Update canonical-certiciation-precheck for new USB device rules (bugfix)#1802

Merged
rodwsmith merged 1 commit intomainfrom
fix-precheck-usb2
Mar 19, 2025
Merged

Update canonical-certiciation-precheck for new USB device rules (bugfix)#1802
rodwsmith merged 1 commit intomainfrom
fix-precheck-usb2

Conversation

@rodwsmith
Copy link
Copy Markdown
Collaborator

@rodwsmith rodwsmith commented Mar 18, 2025

Title: Updated canonical-certification-precheck script to accept system with USB3 disk but no USB2 disk (bugfix)

Description

This PR adjusts the logic of the USB tests to flag a lack of a USB2 device only if the system also lacks a USB3 device. If both devices are present, the script still checks for suitable filesystems on both devices, since presumably the tester wants to test both devices in this case.

Resolved issues

#1801

Documentation

No documentation changes are needed. The Server Self-Test Guide doesn't delve deep enough into this issue to need changing,

Tests

I deployed a node and tested with all combinations of USB2 and USB3 drives plugged in and removed; and with the drives correctly partitioned and not. The script passed the configurations in which the USB2 drive was removed when the USB3 drive was present and complained (correctly) when the USB3 drive was unplugged or when either drive was plugged in but had no valid partition.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.83%. Comparing base (5baa4d0) to head (6bba854).
Report is 118 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1802      +/-   ##
==========================================
- Coverage   49.83%   49.83%   -0.01%     
==========================================
  Files         377      377              
  Lines       40719    40713       -6     
  Branches     6851     6848       -3     
==========================================
- Hits        20294    20288       -6     
  Misses      19700    19700              
  Partials      725      725              
Flag Coverage Δ
provider-certification-server 57.14% <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rodwsmith rodwsmith changed the title Update canonical-certiciation-precheck for new USB device rules Update canonical-certiciation-precheck for new USB device rules (bugfix) Mar 18, 2025
Copy link
Copy Markdown
Collaborator

@bladernr bladernr left a comment

Choose a reason for hiding this comment

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

LGTM...

@rodwsmith rodwsmith merged commit dfcf2c0 into main Mar 19, 2025
26 of 31 checks passed
@rodwsmith rodwsmith deleted the fix-precheck-usb2 branch March 19, 2025 23:47
stanley31huang pushed a commit that referenced this pull request Mar 28, 2025
…ix) (#1802)

Update canonical-certiciation-precheck for new USB device rules
mreed8855 pushed a commit that referenced this pull request Jul 30, 2025
…ix) (#1802)

Update canonical-certiciation-precheck for new USB device rules
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
…ix) (#1802)

Update canonical-certiciation-precheck for new USB device rules
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.

Precheck script complains if a USB2 device is not present, even if a USB3 device is present

2 participants