(This page was automatically generated by the tools in the opsboy project on 09:46:46 03-Nov-2020 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
12abf47c 2020-10-27 16:11:12 GMT 3 50 78 8728 1166 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1h 22 Sep 2020

Compilation Errors

Unexpected Failures

File Name Details
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,8 @@
reading any
world
-more
+moreda
reading 3
-dat
+ta
+
reading line
-a
+closed
-reading all
-data
'
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-stdout: ok
+stdout err: timeout
stderr err: closed
'
stream/re-gmatch.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: \#10 log level:6 log body:2020/10/27 20:47:39 [notice] 24382\#0: start worker processes log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *32 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *40 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *41 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *50 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2020/10/27 20:47:39 [notice] 24382#0: start worker processes
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *32 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *33 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *34 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *35 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *36 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *37 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *38 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *39 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *40 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *41 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *42 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *43 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *44 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *45 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *46 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *47 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *48 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *49 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *50 client 127.0.0.1 closed keepalive connection
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 TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#3 log level:7 log body:2020/10/27 20:47:40 [info] 24422\#0: *51 client 127.0.0.1 closed keepalive connection log level:4 log body:2020/10/27 20:47:40 [error] 24422\#0: *52 [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" log level:4 log body:2020/10/27 20:47:40 [error] 24422\#0: *53 [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: \#3 end) 'maybe log lines: #3
log level:7
log body:2020/10/27 20:47:40 [info] 24422#0: *51 client 127.0.0.1 closed keepalive connection
log level:4
log body:2020/10/27 20:47:40 [error] 24422#0: *52 [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"
log level:4
log body:2020/10/27 20:47:40 [error] 24422#0: *53 [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: #3
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 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 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 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2020/10/27 20:47:48 [notice] 24633\#0: start worker processes log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *41 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2020/10/27 20:47:48 [notice] 24633#0: start worker processes
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *33 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *34 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *35 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *36 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *37 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *38 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *39 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *40 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *41 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:2020/10/27 20:47:49 [info] 24673\#0: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:49 [info] 24673\#0: *51 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *42 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *43 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *44 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *45 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *46 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *47 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *48 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *49 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *50 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:49 [info] 24673#0: *51 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 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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2020/10/27 20:47:53 [notice] 24633\#0: start worker processes log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *188 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *189 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *190 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *191 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *192 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *193 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *194 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *195 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *196 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2020/10/27 20:47:53 [notice] 24633#0: start worker processes
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *188 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *189 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *190 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *191 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *192 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *193 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *194 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *195 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *196 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:2020/10/27 20:47:54 [info] 24852\#0: *197 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *198 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *199 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *200 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *201 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *202 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *203 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *204 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *205 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 20:47:54 [info] 24852\#0: *206 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *197 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *198 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *199 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *200 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *201 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *202 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *203 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *204 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *205 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/10/27 20:47:54 [info] 24852#0: *206 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 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 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 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
'
pipe-stderr.t TEST 7: read stderr, pattern is read any - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-hello
+helloworld
-world
+closed
'
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)
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
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 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/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 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:47438 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:47442 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 TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2020/10/27 20:59:45 [notice] 8761\#0: start worker processes log level:4 log body:2020/10/27 20:59:46 [error] 8981\#0: *243 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:2020/10/27 20:59:45 [notice] 8761#0: start worker processes
log level:4
log body:2020/10/27 20:59:46 [error] 8981#0: *243 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 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 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:2020/10/27 20:59:49 [notice] 8761\#0: start worker processes log level:4 log body:2020/10/27 20:59:50 [error] 9133\#0: *393 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:2020/10/27 20:59:49 [notice] 8761#0: start worker processes
log level:4
log body:2020/10/27 20:59:50 [error] 9133#0: *393 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/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 "2020/10/27 21:02:32 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/10/27 21:02:32 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:32 [debug] 12628\#0: *285 event timer add: 0: 1000:17548528
2020/10/27 21:02:32 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:32 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:32 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:32 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:32 [debug] 12628\#0: worker cycle
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:33 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:33 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2020/10/27 21:02:33 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:33 [debug] 12628\#0: *285 event timer add: 0: 1000:17549528
2020/10/27 21:02:33 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:33 [debug] 12628\#0: worker cycle
2020/10/27 21:02:33 [debug] 12628\#0: epoll timer: 1000
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:33 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2020/10/27 21:02:33 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:33 [debug] 12628\#0: *285 event timer add: 0: 1000:17549528
2020/10/27 21:02:33 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:33 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:33 [debug] 12628\#0: worker cycle
2020/10/27 21:02:33 [debug] 12628\#0: epoll timer: 1000
2020/10/27 21:02:33 [debug] 12347\#0: malloc: 0000000008C2C1E0:2048
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:38 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:38 [debug] 12868\#0: *531 malloc: 0000000008840B80:960
2020/10/27 21:02:38 [debug] 12868\#0: *531 malloc: 0000000009039450:16
2020/10/27 21:02:38 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:38 [debug] 12628\#0: *285 event timer add: 0: 1000:17554532
2020/10/27 21:02:38 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:38 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:38 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:38 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:38 [debug] 12628\#0: worker cycle
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:40 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:40 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:40 [debug] 12628\#0: *285 event timer add: 0: 1000:17556532
2020/10/27 21:02:40 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:40 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:40 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:40 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:40 [debug] 12628\#0: worker cycle
2020/10/27 21:02:40 [debug] 12628\#0: epoll timer: 1000
2020/10/27 21:02:40 [debug] 12898\#0: epoll: fd:7 ev:0001 d:0000000009E7D6F0
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:41 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/10/27 21:02:41 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:41 [debug] 12628\#0: *285 event timer add: 0: 1000:17557532
2020/10/27 21:02:41 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:41 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:41 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:41 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:41 [debug] 12628\#0: worker cycle
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:45 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:45 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2020/10/27 21:02:45 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:45 [debug] 12628\#0: *285 event timer add: 0: 1000:17561536
2020/10/27 21:02:45 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:45 [debug] 12628\#0: worker cycle
2020/10/27 21:02:45 [debug] 12628\#0: epoll timer: 1000
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:45 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2020/10/27 21:02:45 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:45 [debug] 12628\#0: *285 event timer add: 0: 1000:17561536
2020/10/27 21:02:45 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:45 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:45 [debug] 12628\#0: worker cycle
2020/10/27 21:02:45 [debug] 12628\#0: epoll timer: 1000
2020/10/27 21:02:45 [debug] 13048\#0: epoll: fd:7 ev:0001 d:0000000009E67F90
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:46 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:46 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:46 [debug] 12628\#0: *285 event timer add: 0: 1000:17562536
2020/10/27 21:02:46 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:46 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:46 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:46 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:46 [debug] 12628\#0: worker cycle
2020/10/27 21:02:46 [debug] 12628\#0: epoll timer: 1000
2020/10/27 21:02:46 [debug] 13078\#0: *741 malloc: 0000000008732360:80
'
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 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:02:49 [error] 12628\#0: *285 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/10/27 21:02:49 [debug] 12628\#0: stream lua semaphore wait: 0000000009DFDB88, timeout: 1000, resources: 0, event posted: 0
2020/10/27 21:02:49 [debug] 12628\#0: *285 event timer add: 0: 1000:17565536
2020/10/27 21:02:49 [debug] 12628\#0: stream lua semaphore wait yielding
2020/10/27 21:02:49 [debug] 12628\#0: *285 lua resume returned 1
2020/10/27 21:02:49 [debug] 12628\#0: *285 lua thread yielded
2020/10/27 21:02:49 [debug] 12628\#0: *285 lua run thread returned -2
2020/10/27 21:02:49 [debug] 12628\#0: worker cycle
'
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.