]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CI: Limit log bloating for netlab runners
authorMaria Matejka <mq@ucw.cz>
Thu, 19 Jun 2025 19:12:52 +0000 (21:12 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 3 Sep 2025 13:51:10 +0000 (15:51 +0200)
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
misc/gitlab/template.yml.j2

index b66ea74dcf7f37fc2aede429a5930fb28bf945df..aa6f17bea3436791c5725f9a06c958e16443541e 100644 (file)
@@ -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)
index 4ef0644aa78feb24f7f0628421d49a150f057d54..2617a3bc0438972b4b96a74ed6f291a461d211a0 100644 (file)
@@ -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)