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

CI: Sporadic Failures of macOS Tests #5

Open
sanssecours opened this issue Nov 27, 2023 · 2 comments
Open

CI: Sporadic Failures of macOS Tests #5

sanssecours opened this issue Nov 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sanssecours
Copy link
Member

Description

It looks like currently running the Prysk tests for icoanalyzer sometimes fail with an error message about an illegal instruction on macOS in the CI system:

…
Measurement Date: 2021-12-20T11:00:21.489537
Runtime: 29.996 seconds
/bin/sh: line 4:  1447 Illegal instruction: 4  icoanalyzer examples/log-x.hdf5
[132]

First I thought this might have something to do with the minimum supported macOS version of the FOM library, but icoanalyzer does not use this library at all. Some things I noticed:

  • Rerunning the CI job often ”fixes” the problem
  • The error always happens right at the end (or maybe even after) icolyzer was executed
  • The error happens on the x64 versions of macOS
@sanssecours sanssecours added the bug Something isn't working label Nov 27, 2023
@sanssecours
Copy link
Member Author

This problem now also occurs sporadically in the ICOc repository:

mytoolit/measurement/storage.py::mytoolit.measurement.storage.Storage.__init__ PASSED [ 87%]
Fatal Python error: Illegal instruction

Current thread 0x0000000103b38600 (most recent call first):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tables/node.py", line 246 in __init__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tables/leaf.py", line 264 in __init__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tables/table.py", line 808 in __init__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tables/file.py", line 1016 in create_table
mytoolit/measurement/storage.py::mytoolit.measurement.storage.Storage.add_acceleration 
  File "/Users/runner/work/ICOc/ICOc/mytoolit/measurement/storage.py", line 190 in init_acceleration
  File "/Users/runner/work/ICOc/ICOc/mytoolit/measurement/storage.py", line 235 in add_acceleration
  File "<doctest mytoolit.measurement.storage.Storage.add_acceleration[1]>", line 2 in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/doctest.py", line 1351 in __run
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/doctest.py", line 1498 in run
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/doctest.py", line 1859 in run
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/doctest.py", line 298 in runtest
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 262 in <lambda>
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 341 in from_call
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 222 in call_and_report
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 133 in runtestprotocol
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/main.py", line 350 in pytest_runtestloop
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/main.py", line 325 in _main
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/main.py", line 271 in wrap_session
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/main.py", line 318 in pytest_cmdline_main
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 77 in _multicall
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_manager.py", line 115 in _hookexec
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pluggy/_hooks.py", line 493 in __call__
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/config/__init__.py", line 169 in main
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_pytest/config/__init__.py", line 192 in console_main
  File "/Users/runner/hostedtoolcache/Python/3.11.6/x64/bin/pytest", line 8 in <module>

Extension modules: uptime._posix, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, tables._comp_lzo, tables._comp_bzip2, tables.utilsextension, numexpr.interpreter, tables.hdf5extension, tables.linkextension, tables.lrucacheextension, tables.tableextension, tables.indexesextension, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver._cext, matplotlib._image (total: 28)
make: *** [pytest-test-no-hardware] Illegal instruction: 4

I assume that the problem might have something to do with the latest version of PyTables (3.9.2).

sanssecours added a commit to MyTooliT/ICOc that referenced this issue Nov 29, 2023
sanssecours added a commit that referenced this issue Nov 29, 2023
sanssecours added a commit that referenced this issue Dec 12, 2023
@sanssecours
Copy link
Member Author

Looks like this problem is indeed a “bug” in the macOS version of PyTables 3.9.2.

sanssecours added a commit to MyTooliT/ICOc that referenced this issue Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant