Skip to content

Commit 0cc7607

Browse files
committed
tests: Increase file descriptor limit
Sometimes (randomly), the integration tests fail on the CI. Try to increase the file descriptor limit to see if it helps. This is a good idea in general though, as the test become more complex this would be required anyway. Signed-off-by: Matej Hrica <[email protected]>
1 parent 61d9afb commit 0cc7607

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ jobs:
5151
- name: Install libkrunfw
5252
run: curl -L -o /tmp/libkrunfw-4.9.0-x86_64.tgz https://github.com/containers/libkrunfw/releases/download/v4.9.0/libkrunfw-4.9.0-x86_64.tgz && mkdir tmp && tar xf /tmp/libkrunfw-4.9.0-x86_64.tgz -C tmp && sudo mv tmp/lib64/* /lib/x86_64-linux-gnu
5353

54+
- name: Increase file descriptor limit
55+
run: |
56+
ulimit -n unlimited
57+
5458
- name: Integration tests
5559
run: RUST_LOG=trace KRUN_ENOMEM_WORKAROUND=1 KRUN_NO_UNSHARE=1 make test

tests/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ cargo build -p runner
1616

1717
export KRUN_TEST_GUEST_AGENT_PATH="target/$GUEST_TARGET_ARCH/debug/guest-agent"
1818

19+
ulimit -n unlimited
20+
1921
if [ -z "${KRUN_NO_UNSHARE}" ] && which unshare 2>&1 >/dev/null; then
2022
unshare --user --map-root-user --net -- /bin/sh -c "ifconfig lo 127.0.0.1 && exec target/debug/runner $@"
2123
else

0 commit comments

Comments
 (0)