1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-11 03:31:36 +00:00

REGTESTS: fix lua-based regtests using tune.lua.smp-preserve-bool

Because of the previous commit, configs making use of lua script without
setting "tune.lua.smp-preserve-bool" explicitly now raise a warning.

However, since 6f746af91 ("REGTESTS: use -dW by default on every
reg-tests"), regtests are not allowed to raise warnings anymore.

Because of this the CI now fails for every tests that relies on Lua.
To fix this, let's explicitly set the "tune.lua.smp-preserve-bool" for
all tests involving Lua. Here we set the value to "on" because we know
it is safe to do so, and this way it will be future-proof.

If ec7443827 ("MINOR: hlua: add option to preserve bool type from smp to
lua") is backported, then this patch must be backported with it (if it
is not trivial to backport, then simply follow this rule: grep for
"lua-load" in reg-tests directory, then for each match, make sure to set
the tune.smp-preserve-bool tunable in the global section.
This commit is contained in:
Aurelien DARRAGON 2024-12-19 14:16:27 +01:00
parent ec74438273
commit f2838f5172
12 changed files with 13 additions and 0 deletions

View File

@ -8,6 +8,7 @@ feature ignore_unknown_macro
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_validation.lua
defaults

View File

@ -35,6 +35,7 @@ syslog Slog {
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/bad_http_clt_req_duration.lua
defaults

View File

@ -30,6 +30,7 @@ haproxy h1 -conf {
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/close_wait_lf.lua
frontend frt

View File

@ -5,6 +5,7 @@ feature ignore_unknown_macro
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/h_txn_get_priv.lua
defaults

View File

@ -12,6 +12,7 @@ feature ignore_unknown_macro
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/httpclient_action.lua
defaults
mode tcp

View File

@ -38,6 +38,7 @@ server s3 {
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_httpclient.lua
defaults

View File

@ -10,6 +10,7 @@ server s1 {
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_socket.lua
defaults

View File

@ -11,6 +11,7 @@ haproxy h1 -conf {
tune.idle-pool.shared off
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/set_var.lua
defaults

View File

@ -12,6 +12,8 @@ haproxy h1 -conf {
# under us.
tune.idle-pool.shared off
tune.lua.smp-preserve-bool on
lua-load-per-thread ${testdir}/txn_get_priv.lua
lua-load-per-thread ${testdir}/txn_get_priv-print_r.lua

View File

@ -6,6 +6,7 @@ feature ignore_unknown_macro
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/txn_get_priv.lua
lua-load ${testdir}/txn_get_priv-print_r.lua

View File

@ -43,6 +43,7 @@ server s1 -repeat 2 {
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/wrong_types_usage.lua
defaults

View File

@ -12,6 +12,7 @@ syslog S1 -level notice {
haproxy h1 -conf {
global
tune.lua.smp-preserve-bool on
lua-load ${testdir}/mailers.lua
lua-load ${testdir}/healthcheckmail.lua