Skip to content

Commit

Permalink
Increase inotify limits for integration tests in GH CI
Browse files Browse the repository at this point in the history
Recently integration tests executed in GitHub runner started to fail
with following error:

  Failed to allocate directory watch: Too many open files

Let's try to increase inotify limits to mitigate the issue.

Signed-off-by: Martin Perina <[email protected]>
  • Loading branch information
mwperina committed Mar 11, 2024
1 parent 147e053 commit 7ba0a40
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
needs: rpmbuild
runs-on: ubuntu-latest
steps:
- name: Increase inotify values
# Required to bypass error "Failed to allocate directory watch: Too many open files"
run: |
sudo sysctl -w fs.inotify.max_queued_events=32768
sudo sysctl -w fs.inotify.max_user_instances=2048
sudo sysctl -w fs.inotify.max_user_watches=1048576
- name: Install Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 7ba0a40

Please sign in to comment.