openresty / openresty/lua-resty-websocket
Tests are failing on ppc64le
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 523
- Forks
- 112
- Avg merge
- 1d 16m
- Merged PRs (30d)
- 2
Description
Can you please help to give more details on the below errors for test failures.
Trying to run this module on ppc64le.
t/count.t ... 1/18 WARNING: TEST 1: module size of resty.websocket.protocol - 2019/10/03 13:04:48 [warn] 15632#0: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('n') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables
WARNING: TEST 2: module size of resty.websocket.client - 2019/10/03 13:04:48 [warn] 15648#0: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('n') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables
t/count.t ... 13/18 WARNING: TEST 3: module size of resty.websocket.server - 2019/10/03 13:04:50 [warn] 15792#0: *1 [lua] _G write guard:12: __newindex(): writing a global lua variable ('n') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables
t/count.t ... ok
t/cs.t ...... 1/236
Failed test 'TEST 15: text frame (send masked frames on the server side) - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 15: text frame (send masked frames on the server side) - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 13/236
Failed test 'TEST 18: directly calling close() without sending the close frame ourselves - pattern "sending the close frame" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 18: directly calling close() without sending the close frame ourselves - pattern "sending the close frame" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 35/236
Failed test 'TEST 13: reused upstream websocket connections (set_keepalive) - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 13: reused upstream websocket connections (set_keepalive) - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 13: reused upstream websocket connections (set_keepalive) - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 13: reused upstream websocket connections (set_keepalive) - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 73/236
Failed test 'TEST 17: close frame (without msg body) + close() - pattern "sending the close frame" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 17: close frame (without msg body) + close() - pattern "sending the close frame" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 1: text frame - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 1: text frame - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 1: text frame - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 1: text frame - pattern "recv_frame: mask bit: 1" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 120/236
Failed test 'TEST 14: pool option - pattern "lua tcp socket keepalive create connection pool for key "my_conn_pool"" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 14: pool option - pattern "lua tcp socket keepalive create connection pool for key "my_conn_pool"" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 197/236
Failed test 'TEST 16: text frame (send unmasked frames on the client side) - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 0)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
Failed test 'TEST 16: text frame (send unmasked frames on the client side) - pattern "recv_frame: mask bit: 0" should match a line in error.log (req 1)'
at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213.
t/cs.t ...... 229/236 # Looks like you failed 18 tests of 236.
t/cs.t ...... Dubious, test returned 18 (wstat 4608, 0x1200)
Failed 18/236 subtests
(less 2 skipped subtests: 216 okay)
t/sanity.t .. 1/324 WARNING: TEST 17: exceeding the default 65535 max frame len limit (65536 bytes) - HTTP response read failure: Connection reset by peer at /usr/local/share/perl5/Test/Nginx/Socket.pm line 2165.
WARNING: TEST 17: exceeding the default 65535 max frame len limit (65536 bytes) - HTTP response read failure: Connection reset by peer at /usr/local/share/perl5/Test/Nginx/Socket.pm line 2165.
t/sanity.t .. ok
Test Summary Report
t/cs.t (Wstat: 4608 Tests: 236 Failed: 18)
Failed tests: 3, 9, 26, 31, 51-52, 57-58, 82, 87, 99-100
105-106, 152, 158, 198, 203
Non-zero exit status: 18
Files=3, Tests=578, 19 wallclock secs ( 0.11 usr 0.02 sys + 2.10 cusr 0.99 csys = 3.22 CPU)
Result: FAIL
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the module test suite on ppc64le, starting with the failures in t/cs.t and the assertions reported at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1213. Compare the expected patterns with the generated error.log output, including the WebSocket masking and close-frame cases. Done means the platform-specific cause is identified and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100