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

GitHub actions tests fail on macos-latest #25

Open
mbdevpl opened this issue Oct 23, 2024 · 0 comments
Open

GitHub actions tests fail on macos-latest #25

mbdevpl opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@mbdevpl
Copy link
Owner

mbdevpl commented Oct 23, 2024

Tests which involve getting CPU clock information fail on macos-latest workers, but work on macos-13. Tests need to run on macos-13 until giampaolo/psutil#2382 is resolved.

Workaround was added in #24

======================================================================
ERROR: test_cpu (test.test_available_features.Tests.test_cpu)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/system-query/system-query/test/test_available_features.py", line 13, in test_cpu
    self.assertGreaterEqual(len(query_cpu()), 1)
                                ^^^^^^^^^^^
  File "/Users/runner/work/system-query/system-query/system_query/cpu_info.py", line 70, in query_cpu
    clock_current, clock_min, clock_max = query_cpu_clock()
                                          ^^^^^^^^^^^^^^^^^
  File "/Users/runner/work/system-query/system-query/system_query/cpu_info.py", line 16, in query_cpu_clock
    cpu_clock = psutil.cpu_freq()
                ^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/psutil/__init__.py", line 1913, in cpu_freq
    ret = _psplatform.cpu_freq()
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/psutil/_psosx.py", line 182, in cpu_freq
    curr, min_, max_ = cext.cpu_freq()
                       ^^^^^^^^^^^^^^^
RuntimeError: 'pmgr' entry was not found in AppleARMIODevice service
@mbdevpl mbdevpl self-assigned this Oct 23, 2024
@mbdevpl mbdevpl moved this to Todo in system-query Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant