Skip to content

GitHub actions tests fail on macos-latest #25

Description

@mbdevpl

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions