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

Handle HIDRAW devices that have no parents in the udev stack (BugFix) #1418

Conversation

jocave
Copy link
Collaborator

@jocave jocave commented Aug 14, 2024

Description

It appears when the code was written it expected HIDRAW devices to always appear in a tree of devices with at least one parent and so at least two items in the stack. It appears we are now encountering devices connected to machines which have no parents.

Link to original merge: fd54837

Resolved issues

Fixes #1407

Documentation

Tests

Included unit test additions from a machine where the bug was reported

jocave added 3 commits August 12, 2024 17:37
The parser "HID devices if nothing else is known to be
an input device on the same udev subtree" and hence tries to check
the stack of devices seen by udev, but it appears we are now
ecountering hidraw devices with no parents
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.18%. Comparing base (ff9f6b6) to head (5948e2c).
Report is 118 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1418   +/-   ##
=======================================
  Coverage   45.18%   45.18%           
=======================================
  Files         366      366           
  Lines       39107    39107           
  Branches     6612     6612           
=======================================
+ Hits        17670    17671    +1     
  Misses      20764    20764           
+ Partials      673      672    -1     
Flag Coverage Δ
checkbox-support 59.71% <100.00%> (+0.01%) ⬆️

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.

Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

Feel free to take the +1 or commit my suggestion. lgtm

@jocave jocave merged commit da7297d into main Aug 14, 2024
47 checks passed
@jocave jocave deleted the 1407-various-detect-jobs-failing-on-certain-devices-due-to-udevadm-parser-problem branch August 14, 2024 17:21
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.

Various *-detect jobs failing on certain devices due to udevadm parser problem
2 participants