]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: fix lua-based regtests using tune.lua.smp-preserve-bool
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Dec 2024 13:16:27 +0000 (14:16 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 19 Dec 2024 13:21:35 +0000 (14:21 +0100)
commitf2838f5172f163842c8b4d1bd2f55c9138e84573
treebc1495eddfaf66aa8746ef93c1dac6061c37ed07
parentec744382739d24681b7ccd08dd57ee9606870bc5
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.
12 files changed:
reg-tests/compression/lua_validation.vtc
reg-tests/lua/bad_http_clt_req_duration.vtc
reg-tests/lua/close_wait_lf.vtc
reg-tests/lua/h_txn_get_priv.vtc
reg-tests/lua/httpclient_action.vtc
reg-tests/lua/lua_httpclient.vtc
reg-tests/lua/lua_socket.vtc
reg-tests/lua/set_var.vtc
reg-tests/lua/txn_get_priv-thread.vtc
reg-tests/lua/txn_get_priv.vtc
reg-tests/lua/wrong_types_usage.vtc
reg-tests/mailers/healthcheckmail.vtc