]> 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:17:05 +0000 (15:17 +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 a7692d6e2269b8762b54db53979a99211733a0d6..ca0e6d86e4435c96a2d30503a4d181f9e08e8a84 100644 (file)
@@ -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)
index 743c442d16fda7f7033465d35c7a60ea3956fb44..1931e3a57ad589769ba55b90cce35ca8536430bd 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 v2 -m check $TEST_NAME
   after_script:
     - DIR=$(pwd)