From 24b1dea197ec6bd8f1d39c37d02fe31a996b4466 Mon Sep 17 00:00:00 2001 From: "Sergey G. Brester" Date: Tue, 16 Aug 2022 12:44:57 +0200 Subject: [PATCH] check large nofile limit issue (#3334) --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39c85231..e805672a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,12 +81,12 @@ jobs: - name: Test suite run: | if [[ "$F2B_PY" = 2 ]]; then - python setup.py test + sudo sh -c 'ulimit -n 1048576 && python setup.py test' elif dpkg --compare-versions "$F2B_PYV" lt 3.10; then - python bin/fail2ban-testcases --verbosity=2 + sudo sh -c 'ulimit -n 1048576 && python bin/fail2ban-testcases --verbosity=2' else echo "Skip systemd backend since systemd-python module must be fixed for python >= v.3.10 in GHA ..." - python bin/fail2ban-testcases --verbosity=2 -i "[sS]ystemd|[jJ]ournal" + sudo sh -c 'ulimit -n 1048576 && python bin/fail2ban-testcases --verbosity=2 -i "[sS]ystemd|[jJ]ournal"' fi #- name: Test suite (debug some systemd tests only)