From 0c96a31e1bd62f313d6fe2ef1ddfaaa965f9ba7d Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 19 Jun 2025 21:12:52 +0200 Subject: [PATCH] CI: Limit log bloating for netlab runners There is no useful configurable file size limit for netlab, allowing the job to eat up all the disk. Thus we limit it directly in the script by setting ulimit -f to 1G. --- .gitlab-ci.yml | 1 + misc/gitlab/template.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7692d6e2..ca0e6d86e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1397,6 +1397,7 @@ build-netlab: - ln -s $STAYRTR_BINARY netlab/common/stayrtr - cd netlab - sudo ./stop + - ulimit -f 1048576 # Protect the filesystem from overflowing by log bloat - sudo ./runtest -s v2 -m check $TEST_NAME after_script: - DIR=$(pwd) diff --git a/misc/gitlab/template.yml.j2 b/misc/gitlab/template.yml.j2 index 743c442d1..1931e3a57 100644 --- a/misc/gitlab/template.yml.j2 +++ b/misc/gitlab/template.yml.j2 @@ -434,6 +434,7 @@ build-netlab: - ln -s $STAYRTR_BINARY netlab/common/stayrtr - cd netlab - sudo ./stop + - ulimit -f 1048576 # Protect the filesystem from overflowing by log bloat - sudo ./runtest -s v2 -m check $TEST_NAME after_script: - DIR=$(pwd) -- 2.47.3