openresty / nginx-eval-module

A module for evaluating memcached or proxy response into variable
Other
47 stars 23 forks source link

Test case failures on rhel 7.6 ppc64le platform #14

Open SantoshMagdum opened 4 years ago

SantoshMagdum commented 4 years ago

Hi All,

I had build the nginx binary on rhel 7.6 ppc64le (version 1.17.1.1rc0) from source code - https://github.com/openresty/openresty. Please note that, I had copied and used ppc64le compiled LuaJIT code while building openresty (nginx). Below command I used to compile the openresty -

./configure --with-cc-opt=-O2 --with-http_image_filter_module --with-http_dav_module --with-http_auth_request_module --with-poll_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_ssl_module --with-http_iconv_module --with-http_drizzle_module --with-http_postgres_module --with-http_addition_module --with-debug --add-module=/usr/openresty/openresty_test_modules/nginx-eval-module --add-module=/usr/openresty/openresty_test_modules/replace-filter-nginx-module;

And then tried to execute the test cases for 'nginx-eval-module' like below -

[root]# pwd /usr/openresty/openresty_test_modules/nginx-eval-module [root]# prove -r t

NOTE: The 'nginx-eval-module' version is the latest one cloned from https://github.com/openresty/nginx-eval-module.

I am getting below test case failures.

    [root@ nginx-eval-module]# prove -r t/
    t/bug.t ..... ok
    t/crash.t ... nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:25
    t/crash.t ... 1/8 nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:25
    nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:39
    nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:39
    t/crash.t ... ok
    t/memc.t .... ok
    t/sanity.t .. 1/16
    #   Failed test 'TEST 1: eval - response_body - response is expected (repeated req 0, req 0)'
    #   at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.
    # @@ -1,2 +1 @@
    # -!!! [BEFORE
    # +!!! [hi]
    # -hi]

    #   Failed test 'TEST 2: eval - response_body - response is expected (repeated req 0, req 0)'
    #   at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.
    #          got: '!!! []
    # '
    #     expected: '!!! [32]
    # '
    t/sanity.t .. 13/16
    #   Failed test 'TEST 5: eval with explicit buffer size - response_body - response is expected (repeated req 0, req 0)'
    #   at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.
    #          got: '!!! [hi]
    # '
    #     expected: '!!! [BEF]
    # '
    # Looks like you failed 3 tests of 16.
    t/sanity.t .. Dubious, test returned 3 (wstat 768, 0x300)
    Failed 3/16 subtests

    Test Summary Report
    -------------------
    t/sanity.t (Wstat: 768 Tests: 16 Failed: 3)
      Failed tests:  6, 12, 16
      Non-zero exit status: 3
    Files=4, Tests=38,  4 wallclock secs ( 0.05 usr  0.02 sys +  1.01 cusr  0.25 csys =  1.33 CPU)
    Result: FAIL

Please help suggest if I need to export any specific environment/setup any additional service or should try any compiler flag/somehow increase timeout value to make these test cases pass?

nginx version (compiled with libdrizzle 1.0 and radius, mariadb, postgresql services setup) -

# nginx -V
nginx version: openresty/1.17.1.1rc0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2 -O2' --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../iconv-nginx-module-0.14 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../drizzle-nginx-module-0.1.11 --add-module=../ngx_postgres-1.0 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.15 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.7 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-http_image_filter_module --with-http_dav_module --with-http_auth_request_module --with-poll_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_ssl_module --with-http_addition_module --add-module=/usr/openresty/openresty_test_modules/nginx-eval-module --add-module=/usr/openresty/openresty_test_modules/replace-filter-nginx-module --with-stream --with-stream_ssl_preread_module
SantoshMagdum commented 4 years ago

Hi All, I see now below latest failure cases. Two tests are still failing. Please share any pointers you have on way to resolve these. Thanks in advance.

t/bug.t ..... ok t/crash.t ... nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:39 t/crash.t ... 1/8 nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:39 nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:25 nginx: [emerg] "eval" directive is not allowed here in /usr/openresty/openresty_test_modules/nginx-eval-module/t/servroot/conf/nginx.conf:25 t/crash.t ... ok t/memc.t .... ok t/sanity.t .. 1/16

Failed test 'TEST 1: eval - response_body - response is expected (repeated req 0, req 0)'

at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.

@@ -1,2 +1 @@

-!!! [BEFORE

+!!! [hi]

-hi]

Failed test 'TEST 2: eval - response_body - response is expected (repeated req 0, req 0)'

at /usr/local/share/perl5/Test/Nginx/Socket.pm line 1589.

got: '!!! []

'

expected: '!!! [32]

'

t/sanity.t .. 15/16 # Looks like you failed 2 tests of 16. t/sanity.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/16 subtests

Test Summary Report

t/sanity.t (Wstat: 512 Tests: 16 Failed: 2) Failed tests: 6, 14 Non-zero exit status: 2 Files=4, Tests=38, 3 wallclock secs ( 0.04 usr 0.01 sys + 0.93 cusr 0.26 csys = 1.24 CPU) Result: FAIL