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

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

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

k-ivey
Copy link
Collaborator

@k-ivey k-ivey commented Oct 26, 2023

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

  • Increased the swap file size for the GitHub actions runner by 8GB

Changes

  • N/A

Deletions

  • N/A

Checklist

  • [ X ] The title of your pull request should be a summary of its contribution.
  • [ X ] Please write detailed description of what parts have been newly added and what parts have been modified. Please also explain why certain changes were made.
  • [ X ] If your pull request addresses an issue, please mention the issue number in the pull request description to make sure they are linked (and people consulting the issue know you are working on it)
  • [ X ] To indicate a work in progress please mark it as a draft on Github.
  • [ X ] Make sure existing tests pass.
  • [ X ] Add relevant tests. No quality testing = no merge.
  • [ X ] All public methods must have informative docstrings that work nicely with sphinx. For new modules/files, please add/modify the appropriate .rst file in TextAttack/docs/apidoc.'

@k-ivey k-ivey marked this pull request as ready for review October 26, 2023 23:14
@qiyanjun qiyanjun merged commit 189d11f into QData:master Oct 28, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants