QData / TextAttack

TextAttack 🐙 is a Python framework for adversarial attacks, data augmentation, and model training in NLP https://textattack.readthedocs.io/en/master/
https://textattack.readthedocs.io/en/master/
MIT License
2.98k stars 397 forks source link

Increase the swap file size of the GitHub actions runner #755

Closed k-ivey closed 1 year ago

k-ivey commented 1 year ago

What does this PR do?

Summary

The "Test with PyTest" GitHub action is failing inconsistently. On my local machine, all tests pass, but when run through GitHub actions, the operation fails with the below message:

tests/test_command_line/test_train.py::test_train_tiny 
Error: The operation was canceled.

When I profile this test on my local machine, it consumes over 8GB of memory, which is more than the default Ubuntu runner has. As such, I believe the test is flaky due to running out of memory. This PR addresses this by adding an additional 8GB to the swap file.

Additions

Changes

Deletions

Checklist