From: Artem Date: 2012-06-22T19:15:46+09:00 Subject: [ruby-core:45780] Re: [ruby-trunk - Bug #6573] Webrick test failures --20cf307c9b4e4c421304c30cea93 Content-Type: text/plain; charset=UTF-8 r On Fri, Jun 22, 2012 at 1:03 PM, bkabrda (Bohuslav Kabrda) < bkabrda@redhat.com> wrote: > > Issue #6573 has been updated by bkabrda (Bohuslav Kabrda). > > File ruby-1.9.3.p195-fix-webrick-tests.patch added > > Michael, thanks, a very helpful information. I believe that the patch you > are proposing is correct, yet I would prefer a different approach > (attaching). A little problem that I see with your proposed patch that it > alters environment for many tests, it seems to be too global. Therefore I > would only propose modifying test_httpproxy.rb to require utils.rb in the > first place, that fixes all. > Could someone review/commit this patch (and possibly to other > releases/versions of Ruby too)? > Thanks! > ---------------------------------------- > Bug #6573: Webrick test failures > https://bugs.ruby-lang.org/issues/6573#change-27358 > > Author: bkabrda (Bohuslav Kabrda) > Status: Open > Priority: Normal > Assignee: > Category: > Target version: 1.9.3 > ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] > > > Hi, > I'm randomly getting test failures for WEBrick with Ruby 1.9.3. The > problem seems to be that WEBrick hangs during some test suite executions (I > think it may be improperly shut down after previous tests). These are the > failures I'm getting (running Fedora 17 x86_64): > > > 50) Failure: > test_cgi(TestWEBrickCGI) > [/builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/test_cgi.rb:34]: > webrick log start: > [2012-06-11 10:06:35] INFO WEBrick 1.3.1 > [2012-06-11 10:06:35] INFO ruby 1.9.3 (2012-04-20) [x86_64-linux] > [2012-06-11 10:06:35] INFO WEBrick::HTTPServer#start: pid=15944 > port=40082 > [2012-06-11 10:06:35] ERROR CGIHandler: > /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi exit with 127 > [2012-06-11 10:06:35] ERROR Premature end of script headers: > /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi > > webrick log end. > <"/webrick.cgi"> expected but was > <"\n\n > Internal Server Error\n \n >

Internal Server Error

\n Premature end of script headers: > /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi\n
\n >
\n WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) OpenSSL/1.0.1c > at\n 127.0.0.1:40082\n
\n \n\n">. > 51) Failure: > test_script_disclosure(WEBrick::TestFileHandler) > [/builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/test_filehandler.rb:265]: > webrick log start: > [2012-06-11 10:06:49] INFO WEBrick 1.3.1 > [2012-06-11 10:06:49] INFO ruby 1.9.3 (2012-04-20) [x86_64-linux] > [2012-06-11 10:06:49] INFO WEBrick::HTTPServer#start: pid=15944 > port=34515 > [2012-06-11 10:06:49] ERROR CGIHandler: > /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi exit with 127 > [2012-06-11 10:06:49] ERROR Premature end of script headers: > /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi > webrick log end. > <"200"> expected but was > <"500">. > > Here is the full build log from Fedora's Koji: > http://koji.fedoraproject.org/koji/getfile?taskID=4148723&name=build.log > > Is anyone experiencing the same failures > Thanks! > > > -- > http://bugs.ruby-lang.org/ > > --20cf307c9b4e4c421304c30cea93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable r

On Fri, Jun 22, 2012 at 1:03 PM, bkabrd= a (Bohuslav Kabrda) <bkabrda@redhat.com> wrote:

Issue #6573 has been updated by bkabrda (Bohuslav Kabrda).

File ruby-1.9.3.p195-fix-webrick-tests.patch added

Michael, thanks, a very helpful information. I believe that the patch you a= re proposing is correct, yet I would prefer a different approach (attaching= ). A little problem that I see with your proposed patch that it alters envi= ronment for many tests, it seems to be too global. Therefore I would only p= ropose modifying test_httpproxy.rb to require utils.rb in the first place, = that fixes all.
Could someone review/commit this patch (and possibly to other releases/vers= ions of Ruby too)?
Thanks!
----------------------------------------
Bug #6573: Webrick test failures
https://bugs.ruby-lang.org/issues/6573#change-27358

Author: bkabrda (Bohuslav Kabrda)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: 1.9.3
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


Hi,
I'm randomly getting test failures for WEBrick with Ruby 1.9.3. The pro= blem seems to be that WEBrick hangs during some test suite executions (I th= ink it may be improperly shut down after previous tests). These are the fai= lures I'm getting (running Fedora 17 x86_64):


50) Failure:
test_cgi(TestWEBrickCGI) [/builddir/build/BUILD/ruby-1.9.3-p194/test/webric= k/test_cgi.rb:34]:
webrick log start:
=C2=A0[2012-06-11 10:06:35] INFO =C2=A0WEBrick 1.3.1
=C2=A0[2012-06-11 10:06:35] INFO =C2=A0ruby 1.9.3 (2012-04-20) [x86_64-lin= ux]
=C2=A0[2012-06-11 10:06:35] INFO =C2=A0WEBrick::HTTPServer#start: pid=3D15= 944 port=3D40082
=C2=A0[2012-06-11 10:06:35] ERROR CGIHandler: /builddir/build/BUILD/ruby-1= .9.3-p194/test/webrick/webrick.cgi exit with 127
=C2=A0[2012-06-11 10:06:35] ERROR Premature end of script headers: /buildd= ir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi

webrick log end.
<"/webrick.cgi"> expected but was
<"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"&g= t;\n<HTML>\n =C2=A0<HEAD><TITLE>Internal Server Error<= /TITLE></HEAD>\n =C2=A0<BODY>\n =C2=A0 =C2=A0<H1>Inter= nal Server Error</H1>\n =C2=A0 =C2=A0Premature end of script headers:= /builddir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi\n =C2=A0 = =C2=A0<HR>\n =C2=A0 =C2=A0<ADDRESS>\n =C2=A0 =C2=A0 WEBrick/1.3= .1 (Ruby/1.9.3/2012-04-20) OpenSSL/1.0.1c at\n =C2=A0 =C2=A0 127.0.0.1:40082\n =C2=A0 =C2=A0&= lt;/ADDRESS>\n =C2=A0</BODY>\n</HTML>\n">.
=C2=A051) Failure:
test_script_disclosure(WEBrick::TestFileHandler) [/builddir/build/BUILD/rub= y-1.9.3-p194/test/webrick/test_filehandler.rb:265]:
webrick log start:
=C2=A0[2012-06-11 10:06:49] INFO =C2=A0WEBrick 1.3.1
=C2=A0[2012-06-11 10:06:49] INFO =C2=A0ruby 1.9.3 (2012-04-20) [x86_64-lin= ux]
=C2=A0[2012-06-11 10:06:49] INFO =C2=A0WEBrick::HTTPServer#start: pid=3D15= 944 port=3D34515
=C2=A0[2012-06-11 10:06:49] ERROR CGIHandler: /builddir/build/BUILD/ruby-1= .9.3-p194/test/webrick/webrick.cgi exit with 127
=C2=A0[2012-06-11 10:06:49] ERROR Premature end of script headers: /buildd= ir/build/BUILD/ruby-1.9.3-p194/test/webrick/webrick.cgi
webrick log end.
<"200"> expected but was
<"500">.

Here is the full build log from Fedora's Koji: http://koji.fedoraproject.org/koji/getfile?taskID=3D4148723&= ;name=3Dbuild.log

Is anyone experiencing the same failures
Thanks!


--
http://bugs.ruby-l= ang.org/


--20cf307c9b4e4c421304c30cea93--