tests_hw: Reset USB Port Upon Workflow Start#191
Merged
kr-t merged 2 commits intoproject-ocre:mainfrom Mar 16, 2026
Merged
Conversation
ef21fd0 to
3beceff
Compare
Added step to the setup job for the b_u585i_iot02a workflow file to reset the USB connection. This should fix unexpected states the connection is left in as the result of an interrupted west flash command during a cancelled GHA run. Also added additional step to do the same process within the container as it appears the USB connection on the container is affecting the workflow. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
3beceff to
72abea0
Compare
mgeeIOL
commented
Mar 12, 2026
|
|
||
| steps: | ||
| - name: Reset USB Connection | ||
| run: usbreset STLINK-V3 # Product name for the b_u585i_iot02a, may have to update if we add additional STM boards to the workflow |
Collaborator
Author
There was a problem hiding this comment.
For clarification this is from libusb as the product name of the board, since this is generic I suspect other STMicroelectronics products may share the same product name seen by usbutils.
Collaborator
casaroli
previously approved these changes
Mar 13, 2026
Removes the --privileged flag from container usage and instead uses an additional --device to allow the container to manage usb devices as needed. This commit also removes the setup-container step as through testing it is no longer needed. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
Collaborator
Author
casaroli
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
When a GHA run was cancelled while on a west flash command the USB port would be left in an unexpected state and future GHA runs would fail as west flash could not successfully run. The aim of this PR is to find a fix
Current planned fix is to add a step to the setup job for the b_u585i_iot02a workflow file to reset the USB connection. This should fix unexpected states the connection is left in as the result of an interrupted west flash command during a cancelled GHA run.