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, since6f746af91
("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. Ifec7443827
("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:
parent
ec74438273
commit
f2838f5172
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -38,6 +38,7 @@ server s3 {
|
||||
|
||||
haproxy h1 -conf {
|
||||
global
|
||||
tune.lua.smp-preserve-bool on
|
||||
lua-load ${testdir}/lua_httpclient.lua
|
||||
|
||||
defaults
|
||||
|
@ -10,6 +10,7 @@ server s1 {
|
||||
|
||||
haproxy h1 -conf {
|
||||
global
|
||||
tune.lua.smp-preserve-bool on
|
||||
lua-load ${testdir}/lua_socket.lua
|
||||
|
||||
defaults
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user