(This page was automatically generated by the tools in the opsboy project on 02:05:06 07-Aug-2021 GMT.)

Detailed Test Report for lua-resty-core in linux x86_64 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
fbdb2673 2021-04-22 10:53:44 GMT 1 63 84 8794 1160 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1k 25 Mar 2021

Compilation Errors

Unexpected Failures

File Name Details
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)

Expected Failures

File Name Details
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2021/04/22 13:28:38 [notice] 24368\#0: start worker processes log level:4 log body:2021/04/22 13:28:40 [error] 24369\#0: *1 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: \#2 end) 'maybe log lines: #2
log level:6
log body:2021/04/22 13:28:38 [notice] 24368#0: start worker processes
log level:4
log body:2021/04/22 13:28:40 [error] 24369#0: *1 [lua] access_by_lua(nginx.conf:66):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098127.931 log body: 2021/04/22 13:28:47 [error] 24563\#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098127.931
log body: 2021/04/22 13:28:47 [error] 24563#0: *78 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1619098128.301 log body: 2021/04/22 13:28:48 [error] 24563\#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1619098128.301
log body: 2021/04/22 13:28:48 [error] 24563#0: *79 [lua] content_by_lua(nginx.conf:84):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2021/04/22 13:28:50 [notice] 24494\#0: start worker processes log level:7 log body:2021/04/22 13:28:50 [info] 24683\#0: *162 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *165 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *166 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *167 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *168 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *169 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *170 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2021/04/22 13:28:50 [notice] 24494#0: start worker processes
log level:7
log body:2021/04/22 13:28:50 [info] 24683#0: *162 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *163 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *164 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *165 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *166 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *167 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *168 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *169 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *170 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *171 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *172 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *173 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *174 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *175 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *176 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *177 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *178 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *179 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:28:51 [info] 24683\#0: *180 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *171 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *172 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *173 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *174 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *175 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *176 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *177 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *178 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *179 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:28:51 [info] 24683#0: *180 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
log lines: \#18
-log lines: \#8
+log lines: \#10
'
errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
log lines: \#2
-AAA
+aaa
aaa
'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2021/04/22 13:29:04 [notice] 24832\#0: start worker processes log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *267 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *268 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *269 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *270 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *271 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *272 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *273 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *274 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *275 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2021/04/22 13:29:04 [notice] 24832#0: start worker processes
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *267 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *268 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *269 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *270 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *271 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *272 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *273 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *274 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *275 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *276 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *277 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *278 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *279 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *280 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *281 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *282 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *283 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *284 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:29:05 [info] 25142\#0: *285 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *276 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *277 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *278 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *279 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *280 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *281 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *282 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *283 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *284 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:29:05 [info] 25142#0: *285 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:18 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:84):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:18 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:84):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:32 [error] 3477\#0: *715 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/04/22 13:36:32 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:32 [debug] 3477\#0: *715 event timer add: 0: 1000:9847097
2021/04/22 13:36:32 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:32 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:32 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:32 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:32 [debug] 3477\#0: worker cycle
2021/04/22 13:36:32 [debug] 3477\#0: epoll timer: 1000
2021/04/22 13:36:32 [debug] 3507\#0: epoll: fd:6 ev:0001 d:00000000089D4410
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+sem: timeout,
'
semaphore.t TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:34 [error] 3477\#0: *715 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:36:34 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:34 [debug] 3477\#0: *715 event timer add: 0: 1000:9849101
2021/04/22 13:36:34 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:34 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:34 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:34 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:34 [debug] 3477\#0: worker cycle
'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:39 [error] 3477\#0: *715 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:36:39 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:39 [debug] 3477\#0: *715 event timer add: 0: 1000:9854105
2021/04/22 13:36:39 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:39 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:39 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:39 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:39 [debug] 3477\#0: worker cycle
2021/04/22 13:36:39 [debug] 3477\#0: epoll timer: 1000
2021/04/22 13:36:39 [debug] 3717\#0: in lua gc, semaphore 000000000A0B1158
'
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:40 [error] 3477\#0: *715 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:36:40 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:40 [debug] 3477\#0: *715 event timer add: 0: 1000:9855105
2021/04/22 13:36:40 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:40 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:40 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:40 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:40 [debug] 3477\#0: worker cycle
2021/04/22 13:36:40 [debug] 3477\#0: epoll timer: 1000
2021/04/22 13:36:40 [debug] 3777\#0: malloc: 00000000085513A0:48
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:41 [error] 3477\#0: *715 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:36:41 [error] 3477\#0: *715 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2021/04/22 13:36:41 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:41 [debug] 3477\#0: *715 event timer add: 0: 1000:9856105
2021/04/22 13:36:41 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:41 [debug] 3477\#0: worker cycle
2021/04/22 13:36:41 [debug] 3477\#0: epoll timer: 1000
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:36:41 [error] 3477\#0: *715 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) 2021/04/22 13:36:41 [debug] 3477\#0: http lua semaphore wait: 000000000A052058, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:36:41 [debug] 3477\#0: *715 event timer add: 0: 1000:9856105
2021/04/22 13:36:41 [debug] 3477\#0: http lua semaphore wait yielding
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua resume returned 1
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua thread yielded
2021/04/22 13:36:41 [debug] 3477\#0: *715 lua run thread returned -2
2021/04/22 13:36:41 [debug] 3477\#0: worker cycle
2021/04/22 13:36:41 [debug] 3477\#0: epoll timer: 1000
2021/04/22 13:36:41 [debug] 3807\#0: lua ref lua thread 0000000008634C10 (ref 2)
'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - response_body_like - response is expected (0.2 sleep for 0.1s... -0.019) '0.2
sleep for 0.1s...
-0.019
'
doesn't match '(?^s:\A0.2
sleep for 0.1s...
0.\d*
\z)'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
stream/errlog-raw-log.t nginx: [error] hello world from init_by_lua
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:42346 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:1
$)'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 1) 'client 127.0.0.1:42350 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:4
'
expected: 'log lines:3
'
stream/errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:3
'
expected: 'log lines:2
'
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2021/04/22 13:40:30 [notice] 8671\#0: start worker processes log level:4 log body:2021/04/22 13:40:31 [error] 8831\#0: *183 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #2
log level:6
log body:2021/04/22 13:40:30 [notice] 8671#0: start worker processes
log level:4
log body:2021/04/22 13:40:31 [error] 8831#0: *183 stream [lua] content_by_lua(nginx.conf:67):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2021/04/22 13:40:32 [notice] 8671\#0: start worker processes log level:4 log body:2021/04/22 13:40:32 [error] 8891\#0: *243 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) 'maybe log lines: #2
log level:6
log body:2021/04/22 13:40:32 [notice] 8671#0: start worker processes
log level:4
log body:2021/04/22 13:40:32 [error] 8891#0: *243 stream [lua] content_by_lua(nginx.conf:75):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
Looks like you failed 1 test of 12.
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:35 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:43:35 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:35 [debug] 12770\#0: *405 event timer add: 0: 1000:10270833
2021/04/22 13:43:35 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:35 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:35 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:35 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:35 [debug] 12770\#0: worker cycle
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
+sem: timeout,
+sem: 3 times,
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +1,3 @@
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
+sem: timeout,
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
+sem: timeout,
+sem: 3 times,
sem: timeout while prereading client data,
sem: 1 while prereading client data,
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:42 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:43:42 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:42 [debug] 12770\#0: *405 event timer add: 0: 1000:10277837
2021/04/22 13:43:42 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:42 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:42 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:42 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:42 [debug] 12770\#0: worker cycle
2021/04/22 13:43:42 [debug] 12770\#0: epoll timer: 1000
2021/04/22 13:43:42 [debug] 13010\#0: timer delta: 4
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:43 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:43:43 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2021/04/22 13:43:43 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:43 [debug] 12770\#0: *405 event timer add: 0: 1000:10278837
2021/04/22 13:43:43 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:43 [debug] 12770\#0: worker cycle
2021/04/22 13:43:43 [debug] 12770\#0: epoll timer: 1000
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:43 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2021/04/22 13:43:43 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:43 [debug] 12770\#0: *405 event timer add: 0: 1000:10278837
2021/04/22 13:43:43 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:43 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:43 [debug] 12770\#0: worker cycle
2021/04/22 13:43:43 [debug] 12770\#0: epoll timer: 1000
2021/04/22 13:43:43 [debug] 13040\#0: stream lua semaphore wait: 0000000008D789C8, timeout: 100, resources: 2, event posted: 0
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:44 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/04/22 13:43:44 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:44 [debug] 12770\#0: *405 event timer add: 0: 1000:10279837
2021/04/22 13:43:44 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:44 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:44 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:44 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:44 [debug] 12770\#0: worker cycle
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:45 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000009A6E8D0:16
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 00000000087606F0:32
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008C22BE0:16
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008F7D4F0:4096
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008C22C30:8
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008C2E580:16
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008A6A450:128
2021/04/22 13:43:45 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:45 [debug] 12369\#0: malloc: 0000000008C2E5D0:16
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:43:47 [error] 12770\#0: *405 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:43:47 [debug] 12770\#0: stream lua semaphore wait: 000000000A347628, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:43:47 [debug] 12770\#0: *405 event timer add: 0: 1000:10282837
2021/04/22 13:43:47 [debug] 12770\#0: stream lua semaphore wait yielding
2021/04/22 13:43:47 [debug] 12770\#0: *405 lua resume returned 1
2021/04/22 13:43:47 [debug] 12770\#0: *405 lua thread yielded
2021/04/22 13:43:47 [debug] 12770\#0: *405 lua run thread returned -2
2021/04/22 13:43:47 [debug] 12770\#0: worker cycle
2021/04/22 13:43:47 [debug] 12770\#0: epoll timer: 1000
2021/04/22 13:43:47 [debug] 13160\#0: run cleanup: 0000000009503AD0
'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

Go back to the index page.