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

Random GitHub Actions test failures #160

Open
jpgill86 opened this issue Sep 9, 2021 · 0 comments
Open

Random GitHub Actions test failures #160

jpgill86 opened this issue Sep 9, 2021 · 0 comments
Labels
bug tests Improvements or additions to test coverage

Comments

@jpgill86
Copy link
Collaborator

jpgill86 commented Sep 9, 2021

Every once in a while, seemingly at random, we get GitHub Actions test failures with inscrutable segmentation faults, or errors like this one:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/runner/work/ephyviewer/ephyviewer/ephyviewer/tests/testing_tools.py", line 9, in <module>
    import matplotlib.pyplot as plt
  File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2500, in <module>
    switch_backend(rcParams["backend"])
  File "/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/site-packages/matplotlib/pyplot.py", line 285, in switch_backend
    raise ImportError(
ImportError: Cannot load backend 'Qt5Agg' which requires the 'qt5' interactive framework, as 'headless' is currently running

If the test suite is rerun, it passes. This is strange and annoying.

@jpgill86 jpgill86 added bug tests Improvements or additions to test coverage labels Sep 9, 2021
@jpgill86 jpgill86 changed the title Random test failures Random GitHub Actions test failures Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tests Improvements or additions to test coverage
Projects
None yet
Development

No branches or pull requests

1 participant