[MNT] pytest
ubuntu workflows using too much memory
#2415
Labels
maintenance
Continuous integration, unit testing & package distribution
testing
Testing related issue or pull request
Describe the issue
Something is causing our
pytest
runs to crash with unhelpful errors i.e.The operation was canceled.
andThe hosted runner: GitHub Actions 12 lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
As suggested by the second error, this is likely an out of memory issue as adding 5GB of swap space memory in #2413 resolve these crashes.
This only appears under certain circumstances though:
numba
cache (https://github.com/aeon-toolkit/aeon/actions/runs/12072412056/job/33666335579) - PASSThere seems to be some strange interaction with the
numba
cache action, despite loading nothing in the periodic test running it causes tests to pass, while not running it at all causes a failure.Just increasing the swap space is not a great solution to this, but works temporarily.
Suggest a potential alternative/fix
Investigate the differences in testing setups, and figure out what is causing the OOM error if that is the case.
Additional context
I have only seen this on Linux runners, not macOS or Windows.
ubuntu-20.04
seems to produce this less often. Related to #1162 possibly.The text was updated successfully, but these errors were encountered: