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

[MNT] pytest ubuntu workflows using too much memory #2415

Open
MatthewMiddlehurst opened this issue Nov 28, 2024 · 0 comments
Open

[MNT] pytest ubuntu workflows using too much memory #2415

MatthewMiddlehurst opened this issue Nov 28, 2024 · 0 comments
Labels
maintenance Continuous integration, unit testing & package distribution testing Testing related issue or pull request

Comments

@MatthewMiddlehurst
Copy link
Member

MatthewMiddlehurst commented Nov 28, 2024

Describe the issue

Something is causing our pytest runs to crash with unhelpful errors i.e. The operation was canceled. and The 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:

There 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.

@MatthewMiddlehurst MatthewMiddlehurst added maintenance Continuous integration, unit testing & package distribution testing Testing related issue or pull request labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Continuous integration, unit testing & package distribution testing Testing related issue or pull request
Projects
None yet
Development

No branches or pull requests

1 participant