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

add USBHub resource and export #1548

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jluebbe
Copy link
Member

@jluebbe jluebbe commented Nov 21, 2024

This resource is a bit unusual, as there is no corresponding driver, as it is only useful to monitor whether the expected USB hubs are detected by an exporter.

In larger labs, there are often USB hubs that are considered part of the infrastructure. When these fail (either temporarily or permanently), the connected devices aren't detected any more. For users of individual places, this leads to unavailable resources without a clear cause.

By configuring USBHub resources for the infrastructure hubs in the exporters, we can start monitoring hub availability centrally via the coordinator.

This resource is a bit unusual, as there is no corresponding driver, as
it is only useful to monitor whether the expected USB hubs are detected
by an exporter.

In larger labs, there are often USB hubs that are considered part of the
infrastructure. When these fail (either temporarily or permanently), the
connected devices aren't detected any more. For users of individual
places, this leads to unavailable resources without a clear cause.

By configuring USBHub resources for the infrastructure hubs in the
exporters, we can start monitoring hub availability centrally via the
coordinator.

Signed-off-by: Jan Luebbe <[email protected]>
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 56.5%. Comparing base (b90ac44) to head (8e4ce3d).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
labgrid/resource/udev.py 57.1% 3 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1548   +/-   ##
======================================
  Coverage    56.5%   56.5%           
======================================
  Files         168     168           
  Lines       13116   13124    +8     
======================================
+ Hits         7417    7422    +5     
- Misses       5699    5702    +3     
Flag Coverage Δ
3.10 56.5% <62.5%> (+<0.1%) ⬆️
3.11 56.5% <62.5%> (+<0.1%) ⬆️
3.12 56.5% <62.5%> (+<0.1%) ⬆️
3.13 56.5% <62.5%> (+<0.1%) ⬆️
3.9 56.5% <62.5%> (+<0.1%) ⬆️

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.

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.

1 participant