Skip to content

Commit

Permalink
chore(ci) fix Large CI unit tests in HUP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jan 4, 2024
1 parent d033338 commit 4011cfb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions t/03-proxy_wasm/007-on_http_instance_isolation.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use t::TestWasm;
skip_no_debug();

plan_tests(8);
no_shuffle();
run_tests();

__DATA__
Expand Down Expand Up @@ -71,7 +72,6 @@ qr/\A\*\d+ .*? filter reusing instance[^#*]*
=== TEST 2: proxy_wasm - trap with none isolation mode
Should recycle the global instance when trapped.
--- valgrind
--- load_nginx_modules: ngx_http_echo_module
--- wasm_modules: hostcalls
--- config
proxy_wasm_isolation none;
Expand Down Expand Up @@ -118,6 +118,7 @@ qr/\A\*\d+ .*? filter new instance[^#*]*

=== TEST 3: proxy_wasm - stream isolation mode
should use an instance per stream
req0 might free an instance from the previous test in HUP mode.
--- valgrind
--- wasm_modules: hostcalls
--- config
Expand All @@ -133,10 +134,10 @@ should use an instance per stream
--- ignore_response_body
--- grep_error_log eval: qr/(\*\d+.*?(resuming|new instance|reusing|finalizing|freeing|trap in)|#\d+ on_(configure|vm_start)).*/
--- grep_error_log_out eval
[qr/#0 on_vm_start[^#*]*
[qr/(\*\d+ .*? freeing "hostcalls" instance in "main" vm \(.*?\)[^#*]*)?#0 on_vm_start[^#*]*
#0 on_configure[^#*]*
#0 on_vm_start[^#*]*
#0 on_configure[^#*]*
#0 on_configure[^#*]*(\*\d+ .*? freeing "hostcalls" instance in "main" vm \(.*?\)[^#*]*)?
\*\d+ .*? filter new instance[^#*]*
#0 on_configure[^#*]*
\*\d+ .*? filter reusing instance[^#*]*
Expand Down
4 changes: 2 additions & 2 deletions t/03-proxy_wasm/hfuncs/120-proxy_properties_get_host.t
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ qr/\[info\] .*? property not found: was,/
--- load_nginx_modules: ngx_http_echo_module
--- config
location /t {
proxy_wasm hostcalls 'tick_period=100 \
proxy_wasm hostcalls 'tick_period=500 \
on_tick=log_property \
name=wasmx.my_var';
echo_sleep 0.150;
Expand All @@ -156,7 +156,7 @@ qr/\[info\] .*? property not found: was,/
location /t {
proxy_wasm_isolation stream;

proxy_wasm hostcalls 'tick_period=100 \
proxy_wasm hostcalls 'tick_period=500 \
on_tick=log_property \
name=wasmx.my_var';
echo_sleep 0.150;
Expand Down
4 changes: 2 additions & 2 deletions t/03-proxy_wasm/hfuncs/123-proxy_properties_set_host.t
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ ngx_http_* calls.
set $my_var 123;

location /t {
proxy_wasm hostcalls 'tick_period=100 \
proxy_wasm hostcalls 'tick_period=500 \
on_tick=set_property \
name=wasmx.my_var \
show_old=false \
Expand Down Expand Up @@ -179,7 +179,7 @@ ngx_http_* calls.
location /t {
proxy_wasm_isolation stream;

proxy_wasm hostcalls 'tick_period=100 \
proxy_wasm hostcalls 'tick_period=500 \
on_tick=set_property \
name=wasmx.my_var \
show_old=false \
Expand Down

0 comments on commit 4011cfb

Please sign in to comment.