You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strictly speaking, unless the thread timing is tied to some realtime process priority, you can't be guaranteed that sim robot code runs within any particular time frame, it's just probability and whether or not the OS thinks it has something more important to do.
I agree that you can't guarantee that the robot exits in any particular time frame, but if it's not exiting quickly then that's some issue that needs to be resolved -- though, I will concede that the issue is likely in a vendor dependency because nobody other than python actually tests robot teardown.
If we adopted a variation of #236, then I think it would just kill the remote robot process directly, and this timeout wouldn't matter anymore.
Problem description
We very occasionally hit an
AssertionError
here:pyfrc/pyfrc/test_support/controller.py
Lines 73 to 75 in bc9ecad
So I am now dutifully following the instruction in that code comment.
We most recently hit this in CI. All our robot tests passed, except for the 1
test_all_autonomous
that failed (the test runner then subsequently deadlocked): https://github.com/thedropbears/pycrescendo/actions/runs/8290744044/job/22689297401?pr=195#step:5:136I can't anything obviously wrong with my team's code.
(I've somehow never replicated this on my own machines; only on team member's laptops, and now CI.)
Operating System
Windows, MacOS, Linux
Installed Python Packages
Reproducible example code
No response
The text was updated successfully, but these errors were encountered: