]> git.kaiwu.me - haproxy.git/commitdiff
SCRIPTS: run-regtests: Increase internal buffer size used for logs
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2026 14:16:34 +0000 (16:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2026 14:30:11 +0000 (16:30 +0200)
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.

scripts/run-regtests.sh

index d5bc13918cb25562e76ad25f781f28b7a47669b2..d864ab198f8ddda58c41f52f1fc26dcb2288cddf 100755 (executable)
@@ -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"