ninenines / cowboy

Small, fast, modern HTTP server for Erlang/OTP.
https://ninenines.eu
ISC License
7.29k stars 1.17k forks source link

Tests fail #626

Closed dvv closed 10 years ago

dvv commented 10 years ago

Linux yga4a 3.10.20-1-MANJARO #1 SMP Thu Nov 21 16:53:15 UTC 2013 x86_64 GNU/Linux

cowboy commit df818625545d565b8b76fbc445063a4822114b93

make tests

=ERROR REPORT==== 26-Nov-2013::23:11:13 ===
Error in process <0.576.0> on node 'ct@yga4a' with exit value: {[{reason,<<23 bytes>>},{mfa,{http_errors,handle,2}},{stacktrace,[{http_errors,handle,2,[{file,"test/http_SUITE_data/http_errors.erl"},{line,30}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,118}]},{cowboy_protocol... 

=ERROR REPORT==== 26-Nov-2013::23:11:13 ===
Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.576.0> exit with reason: {[{reason,<<"init_reply_handle_error">>},{mfa,{http_errors,handle,2}},{stacktrace,[{http_errors,handle,2,[{file,"test/http_SUITE_data/http_errors.erl"},{line,30}]},{cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,118}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]},{req,[{socket,#Port<0.4548>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.576.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},56437}},{host,<<"localhost">>},{host_info,undefined},{port,49931},{path,<<"/handler_errors">>},{path_info,undefined},{qs,<<"case=init_reply_handle_error">>},{qs_vals,[{<<"case">>,<<"init_reply_handle_error">>}]},{bindings,[]},{headers,[{<<"user-agent">>,<<"Cow">>},{<<"host">>,<<"localhost:49931">>}]},{p_headers,[]},{cookies,undefined},{meta,[]},{body_state,waiting},{multipart,undefined},{buffer,<<>>},{resp_compress,false},{resp_state,done},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{state,<<"init_reply_handle_error">>}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]}

=ERROR REPORT==== 26-Nov-2013::23:11:13 ===
Ranch listener http had connection process started with cowboy_protocol:start_link/4 at <0.587.0> exit with reason: {[{reason,<<"init_after_reply">>},{mfa,{http_errors,init,3}},{stacktrace,[{http_errors,case_init,2,[{file,"test/http_SUITE_data/http_errors.erl"},{line,16}]},{cowboy_handler,handler_init,4,[{file,"src/cowboy_handler.erl"},{line,69}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]},{req,[{socket,#Port<0.4562>},{transport,ranch_tcp},{connection,keepalive},{pid,<0.587.0>},{method,<<"GET">>},{version,'HTTP/1.1'},{peer,{{127,0,0,1},43760}},{host,<<"localhost">>},{host_info,undefined},{port,49931},{path,<<"/handler_errors">>},{path_info,undefined},{qs,<<"case=init_after_reply">>},{qs_vals,undefined},{bindings,[]},{headers,[{<<"user-agent">>,<<"Cow">>},{<<"host">>,<<"localhost:49931">>}]},{p_headers,[]},{cookies,undefined},{meta,[]},{body_state,waiting},{multipart,undefined},{buffer,<<>>},{resp_compress,false},{resp_state,waiting},{resp_headers,[]},{resp_body,<<>>},{onresponse,undefined}]},{opts,[]}],[{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,529}]}]}

etc.

Can anyone confirm/void?

essen commented 10 years ago

Don't think tests run on much other than R16B02 right now.

AeroNotix commented 10 years ago

Wouldn't be surprised if Majaro does something stupid with the packages.

dvv commented 10 years ago
dvv@yga4a:~$ erl
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

manjaro is no more than archlinux with xfce preinstalled

AeroNotix commented 10 years ago

It's a lot more stupid than that, but that's not for this ticket.

essen commented 10 years ago

Please debug one of the test and see why it fails.

dvv commented 10 years ago

Turned out as irrelevant, logs/index.html states tests ok. Sorry for the buzz.

essen commented 10 years ago

Well yes we must test for failure too.

Vladimir Dronnikov notifications@github.com wrote:

Closed #626.

— Reply to this email directly or view it on GitHub.

dvv commented 10 years ago

Sure, I just couldn't at first distinguish these from really failing tests.