osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/41846?usp=email )
Change subject: ttcn3-bts-test: add --no-warnings to bpftrace ......................................................................
ttcn3-bts-test: add --no-warnings to bpftrace
Since switching to debian 13 and having bpftrace 0.23.2 instead of 0.17.0, bpftrace is constantly printing warnings. Turn off warnings by default so we don't end up filling up the disk space of jenkins runners while ttcn3-bts-test runs for >2h.
We can turn on warnings in copies of the main jenkins job for development, while also ensuring that we only run a few tests instead of the whole testsuite.
Warnings look like this:
root@deb12build-ansible:/home/osmocom-build/jenkins/workspace/ttcn3-bts-test/logs/bts/bpftrace# head udp_sendmsg_delay.log [Thu Jan 15 01:31:13 UTC 2026] respawn: 0: starting: /data/bpftrace/udp_sendmsg_delay.sh + pidof osmo-bts-trx + bpftrace /data/bpftrace/udp_sendmsg_delay.bt -p 9 Attaching 3 probes... Tracing udp_sendmsg() latency... Hit Ctrl-C to end. /data/bpftrace/udp_sendmsg_delay.bt:29:3-13: WARNING: Invalid argument Additional Info - helper: get_ns_current_pid_tgid, retcode: -22 @start[tid] = nsecs; ~~~~~~~~~~ /data/bpftrace/udp_sendmsg_delay.bt:30:3-13: WARNING: Invalid argument
Change-Id: I0e4c62f27f67d4b8601516ce5c1ebfa415331b4a --- M ttcn3-bts-test/jenkins.sh 1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/46/41846/1
diff --git a/ttcn3-bts-test/jenkins.sh b/ttcn3-bts-test/jenkins.sh index 6e5cc67..6d738c4 100755 --- a/ttcn3-bts-test/jenkins.sh +++ b/ttcn3-bts-test/jenkins.sh @@ -90,8 +90,13 @@
cp "$script" "$VOL_BASE_DIR"/bts/bpftrace
+ # --no-warnings: without this, the log file can easily + # fill up gigabytes of data while ttcn3-bts-test does a + # full run. For development --no-warnings can be + # removed, but make sure that only few tests are + # running! ( echo "#!/bin/sh -ex" - echo "bpftrace /data/bpftrace/$(basename "$script") -p $(pidof osmo-bts-$variant)" ) >"$startscript" + echo "bpftrace --no-warnings /data/bpftrace/$(basename "$script") -p $(pidof osmo-bts-$variant)" ) >"$startscript" chmod +x "$startscript"
docker exec \