From: Christopher Faulet Date: Tue, 8 Sep 2026 14:16:34 +0000 (+0200) Subject: SCRIPTS: run-regtests: Increase internal buffer size used for logs X-Git-Tag: v3.5-dev7~50 X-Git-Url: https://git.kaiwu.me/$%7BGITURL%7D/doc/static/gitweb.js?a=commitdiff_plain;h=5804c02d5003ce4761a8cd020df86e1fc1e8c368;p=haproxy.git SCRIPTS: run-regtests: Increase internal buffer size used for logs It was set to 2MB. But the script testing the Prometheus exporter is quite verbose and may exceed this limit, leading to the following error: * diag 0.0 Assert error in vtc_log_emit(), src/vtc_log.c line 179: * diag 0.0 Condition(vtclog_left > l) not true. (errno=0 Success) To avoid any issue for a while, the limit is now set to 4MB. This patch should fix the issue #3494. --- diff --git a/scripts/run-regtests.sh b/scripts/run-regtests.sh index d5bc13918..d864ab198 100755 --- a/scripts/run-regtests.sh +++ b/scripts/run-regtests.sh @@ -272,7 +272,7 @@ if [ -n "$testlist" ]; then if [ -n "$jobcount" ]; then jobcount="-j $jobcount" fi - cmd="$VTEST_PROGRAM -b $((2<<20)) -k -t ${VTEST_TIMEOUT} -L $verbose $debug $jobcount $vtestparams $testlist" + cmd="$VTEST_PROGRAM -b $((4<<20)) -k -t ${VTEST_TIMEOUT} -L $verbose $debug $jobcount $vtestparams $testlist" eval $cmd _vtresult=$? grep -rE --include="LOG" 'sh: -c: line [0-9]+: syntax error|syntax error near unexpected token|Syntax error' "$TESTDIR"