From fb299d82fa16c7707833151dfa1e3e4f9f358b9c 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 b66ea74dc..aa6f17bea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1401,6 +1401,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 v3 -m check $TEST_NAME after_script: - DIR=$(pwd) diff --git a/misc/gitlab/template.yml.j2 b/misc/gitlab/template.yml.j2 index 4ef0644aa..2617a3bc0 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 v3 -m check $TEST_NAME after_script: - DIR=$(pwd) -- 2.47.3