-
Notifications
You must be signed in to change notification settings - Fork 427
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
Fix macOS runner and reenable it #2442
Conversation
f3f7404
to
13289d1
Compare
Failed tests seem to be due to too many imports caused by some "unit tests" which basically rely on every module. |
52a60c0
to
89b47c6
Compare
hidapi is installed via brew and resides in /opt/homebrew, which is not part of Python search path.
89b47c6
to
b529b05
Compare
So the MacOS test harness is failing? The solution is to not enable testing on MacOS or fix the harness, not to remove test that work on Linux. |
No they don't fail, they cause segfaults on import of a dependency. As these tests import everything, as the underlying code is still not ready for proper unit tests (a unit is a module and not 10 modules), it will always be a pain to update them, when the code is further simplified. |
Segfaulting is a failure of the harness. |
The second commit is fine. But the way forward is not to remove tests that work in Linux but to set things up in MacOS so that all tests work there. |
The problem with these tests is, that they load too many dependencies (still a problem of solaar, which I am steadily trying to improve), where at least one is not compatible with macOS. Instead of steadily adding tests and finding bugs with macOS, it is now necessary to fix all new dependencies loaded by the test. I don't know how many parts fail and need to be worked on in order to fix them. |
Then the way forward is to fix things so that they work on MacOS but not just remove the tests. |
Yes, anyone can pick this up and fix it. Don't know if I am motivated enough in the near future to do a much harder work to get it up and running again. Might need to sit there and wait until solaar has fewer dependencies between its modules. |
Replaced by #2490 |
Related #1244