]> 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>
Mon, 22 Sep 2025 11:35:02 +0000 (13:35 +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 00695b939d4a0bf3a6fff501c74a4220925bd43f..851079c32c35d113195f7f4f1419738013df6f54 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)