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.
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_validation.lua
defaults
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/bad_http_clt_req_duration.lua
defaults
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/close_wait_lf.lua
frontend frt
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/h_txn_get_priv.lua
defaults
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/httpclient_action.lua
defaults
mode tcp
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_httpclient.lua
defaults
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/lua_socket.lua
defaults
tune.idle-pool.shared off
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/set_var.lua
defaults
# 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
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
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/wrong_types_usage.lua
defaults
haproxy h1 -conf {
global
+ tune.lua.smp-preserve-bool on
lua-load ${testdir}/mailers.lua
lua-load ${testdir}/healthcheckmail.lua