]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CI: Limit log bloating for netlab runners mq-pin-apkg 44/head
authorMaria Matejka <mq@ucw.cz>
Thu, 19 Jun 2025 19:12:52 +0000 (21:12 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 19 Jun 2025 19:12:52 +0000 (21:12 +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 a7ea526868e5b100aae191f21e0fca560f86c6c0..d1f4c9d6a6fc75772270aaf57f524f2f5488024e 100644 (file)
@@ -1398,6 +1398,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)
index b4abc4aec9e49a9c2c0281b55b454a3d42053ea8..9b7f90c72ca306e177d1334de62abb588635a19d 100644 (file)
@@ -435,6 +435,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)