Re: Gentoo (Was: mod_python 3.2.3b available for testing)

2005-10-30 Thread Dominic Wong


Jim Gallacher wrote:


Gregory (Grisha) Trubetskoy wrote:



I think the proper thing to do (i forgot about the cookie and x86-64 
issues) is to consider 3.2.3b as shut down by pre-release testing, so 
it's just going to be a version that will never be publicly released.


The next step is to apply the fixes you mentioned below and roll a 
3.2.4b, then submit it to the list for test/vote for public release.



OK. I should be able to make the fixes and create the tarball tonight. 
Nicolas mentioned that he was not around this week so the Windows exe 
will be delayed a few days.


Jim



Sorry, I've been out camping for the last 4 days. Further to that, when 
I got back home, I found my computer had fried. :( Should have invested 
in those case fans, I guess. I'm getting replacement motherboard and 
processor today, but I won't be able to see if the new 3.2.4b tarball 
works (and see if I can find the source of the original problem) until 
Tuesday evening (Australian time).


Cheers,

Dominic



Re: mod_python 3.2.3b available for testing

2005-10-24 Thread Dominic Wong

-1 for Gentoo Linux 2.6.13-gentoo-r3
Apache 2.0.54
Python 2.4.1

Haven't really got time to see what it is that's causing it right now:

[EMAIL PROTECTED] /usr/local/src/mod_python-3.2.3b/test $ python test.py

* Testing LoadModule
 Creating config
   listen port: 32771
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Testing server.register_cleanup()...
 Creating config
   listen port: 32774
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Testing apache.register_cleanup()...
 Creating config
   listen port: 32777
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Running the per-request test suite...
 Creating config
   listen port: 32781
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf


 * Testing req.document_root()
.
 * Testing req.add_handler()
.
 * Testing req.allow_methods()
.
 * Testing req.get_basic_auth_pw()
.
 * Testing req.requires()
.
 * Testing req.internal_redirect()
.
 * Testing req.read()
   writing 10 bytes...
   response size: 10

   read/write ok, now lets try causing a timeout (should be 5 secs)
.
 * Testing req.readline()
   writing 120004 bytes...
   response size: 120004

.
 * Testing req.readlines()
   writing 120004 bytes...
   response size: 120004

.
 * Testing req.register_cleanup()
.
 * Testing req.headers_out
E
 * Testing req.sendfile() with offset and length
.
 * Testing req.sendfile() without offset and length
.
 * Testing req.sendfile() for a file which is a symbolic link
.
 * Testing PythonOption
.
 * Testing PythonOption override
.
 * Testing PythonOption remove
.
 * Testing PythonOption remove2
.
 * Testing util_fieldstorage()
.
 * Testing PostReadRequestHandler
.
 * Testing TransHandler
.
 * Testing PythonOutputFilter
.
 * Testing PythonConnectionHandler
.
 * Testing PythonImport
.
 * Testing | .ext syntax
.
 * Testing mod_python.cgihandler
.
 * Testing mod_python.psp
.
 * Testing Cookie.Cookie
.
 * Testing Cookie.MarshalCookie
.
 * Testing Session.Session
.
 * Testing interpreter per directive
.
 * Testing interpreter per directory
.
 * Testing mod_python.publisher
.
 * Testing mod_python.publisher old-style instance publishing
.
 * Testing mod_python.publisher instance publishing
.
 * Testing mod_python.publisher security
.
 * Testing mod_python.publisher iterators
.
 * Testing mod_python.publisher hierarchy
.
==
ERROR: test_req_headers_out (__main__.PerRequestTestCase)
--
Traceback (most recent call last):
 File test.py, line 596, in test_req_headers_out
   response = conn.getresponse()
 File /usr/lib/python2.4/httplib.py, line 863, in getresponse
   response.begin()
 File /usr/lib/python2.4/httplib.py, line 333, in begin
   version, status, reason = self._read_status()
 File /usr/lib/python2.4/httplib.py, line 297, in _read_status
   raise BadStatusLine(line)
BadStatusLine

--
Ran 38 tests in 9.759s

FAILED (errors=1)
F  Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf


==
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
--
Traceback (most recent call last):
 File test.py, line 1488, in testPerRequestTests
   self.failUnless(result.wasSuccessful())
AssertionError

--
Ran 4 tests in 26.496s

FAILED (failures=1)

Jim Gallacher wrote:

A new mod_python 3.2.3 beta tarball is now available for testing. A 
Windows binary is also available.


This release is similar to 3.2.2b but fixes a couple a small issues 
where a non-threaded python is used.


Here are the rules:

In order for a file to be officially announced, it has to be tested by
developers on the dev list. Anyone subscribed to this list can (and
should feel obligated to :-) ) test it, and provide feedback *to _this_
 list*! (Not the [EMAIL PROTECTED] list, and preferably not me
personally).

The files are (temporarily) available here:

http://www.modpython.org/dist/

Please download it, then do the usual

$ ./configure --with-apxs=/wherever/it/is
$ make
$ (su)
# make install

Then (as non-root user!)

$ cd test
$ python test.py

And see if any tests 

Re: mod_python 3.2.3b available for testing

2005-10-24 Thread Dominic Wong


Jim Gallacher wrote:


Dominic Wong wrote:


-1 for Gentoo Linux 2.6.13-gentoo-r3
Apache 2.0.54
Python 2.4.1




Hi Dominic,

When you have a chance could you apply the following patch and re-run 
the tests?


Thanks,
Jim


Hi Jim,

I pretty much get the same output:

snip
[EMAIL PROTECTED] /usr/local/src/mod_python-3.2.3b/test $ python test.py
* Testing LoadModule
 Creating config
   listen port: 32863
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Testing server.register_cleanup()...
 Creating config
   listen port: 32866
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Testing apache.register_cleanup()...
 Creating config
   listen port: 32869
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

 Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf

.
* Running the per-request test suite...
 Creating config
   listen port: 32873
 Starting Apache
/usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf


 * Testing req.document_root()
.
 * Testing req.add_handler()
.
 * Testing req.allow_methods()
.
 * Testing req.get_basic_auth_pw()
.
 * Testing req.requires()
.
 * Testing req.internal_redirect()
.
 * Testing req.read()
   writing 10 bytes...
   response size: 10

   read/write ok, now lets try causing a timeout (should be 5 secs)
.
 * Testing req.readline()
   writing 120004 bytes...
   response size: 120004

.
 * Testing req.readlines()
   writing 120004 bytes...
   response size: 120004

.
 * Testing req.register_cleanup()
.
 * Testing req.headers_out
connect: (127.0.0.1, 32873)
send: 'GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: 
test_req_headers_out:32873\r\n\r\n'

reply: ''
E
 * Testing req.sendfile() with offset and length
.
 * Testing req.sendfile() without offset and length
.
 * Testing req.sendfile() for a file which is a symbolic link
.
 * Testing PythonOption
.
 * Testing PythonOption override
.
 * Testing PythonOption remove
.
 * Testing PythonOption remove2
.
 * Testing util_fieldstorage()
.
 * Testing PostReadRequestHandler
.
 * Testing TransHandler
.
 * Testing PythonOutputFilter
.
 * Testing PythonConnectionHandler
.
 * Testing PythonImport
.
 * Testing | .ext syntax
.
 * Testing mod_python.cgihandler
.
 * Testing mod_python.psp
.
 * Testing Cookie.Cookie
.
 * Testing Cookie.MarshalCookie
.
 * Testing Session.Session
.
 * Testing interpreter per directive
.
 * Testing interpreter per directory
.
 * Testing mod_python.publisher
.
 * Testing mod_python.publisher old-style instance publishing
.
 * Testing mod_python.publisher instance publishing
.
 * Testing mod_python.publisher security
.
 * Testing mod_python.publisher iterators
.
 * Testing mod_python.publisher hierarchy
.
==
ERROR: test_req_headers_out (__main__.PerRequestTestCase)
--
Traceback (most recent call last):
 File test.py, line 597, in test_req_headers_out
   response = conn.getresponse()
 File /usr/lib/python2.4/httplib.py, line 863, in getresponse
   response.begin()
 File /usr/lib/python2.4/httplib.py, line 333, in begin
   version, status, reason = self._read_status()
 File /usr/lib/python2.4/httplib.py, line 297, in _read_status
   raise BadStatusLine(line)
BadStatusLine

--
Ran 38 tests in 9.836s

FAILED (errors=1)
F  Stopping Apache...
/usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.3b/test/conf/test.conf


==
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
--
Traceback (most recent call last):
 File test.py, line 1489, in testPerRequestTests
   self.failUnless(result.wasSuccessful())
AssertionError

--
Ran 4 tests in 26.450s

FAILED (failures=1)

/snip

Cheers,
Dom




Re: mod_python 3.2.2b available for testing

2005-09-14 Thread Dominic Wong

+1

Linux 2.6.9-gentoo-r9
Apache/2.0.54
Python 2.3.5


Dominic Wong

Jim Gallacher wrote:

A new mod_python 3.2.2 beta tarball is now available for testing. 
Hopefully this will be the last beta before the official 3.2 release.


Here are the rules:

In order for a file to be officially announced, it has to be tested by
developers on the dev list. Anyone subscribed to this list can (and
should feel obligated to :-) ) test it, and provide feedback *to _this_
 list*! (Not the [EMAIL PROTECTED] list, and preferably not me
personally).

The files are (temporarily) available here:

http://www.modpython.org/dist/

Please download it, then do the usual

$ ./configure --with-apxs=/wherever/it/is
$ make
$ (su)
# make install

Then (as non-root user!)

$ cd test
$ python test.py

And see if any tests fail. If they pass, send a +1 to the list, if they
fail, send the details (the versions of OS, Python and Apache, the test
output, and suggestions, if any).

Thank you,
Jim Gallacher




  

* Testing LoadModule
  Creating config
listen port: 33653
  Starting Apache
 /usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
  Stopping Apache...
 /usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
.
* Testing server.register_cleanup()...
  Creating config
listen port: 33655
  Starting Apache
 /usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
  Stopping Apache...
 /usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
.
* Testing apache.register_cleanup()...
  Creating config
listen port: 33657
  Starting Apache
 /usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
  Stopping Apache...
 /usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
.
* Running the per-request test suite...
  Creating config
listen port: 33660
  Starting Apache
 /usr/sbin/apache2 -k start -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf

  * Testing req.document_root()
.
  * Testing req.add_handler()
.
  * Testing req.allow_methods()
.
  * Testing req.get_basic_auth_pw()
.
  * Testing req.requires()
.
  * Testing req.internal_redirect()
.
  * Testing req.read()
writing 10 bytes...
response size: 10

read/write ok, now lets try causing a timeout (should be 5 secs)
.
  * Testing req.readline()
writing 120004 bytes...
response size: 120004

.
  * Testing req.readlines()
writing 120004 bytes...
response size: 120004

.
  * Testing req.register_cleanup()
.
  * Testing req.headers_out
.
  * Testing req.sendfile()
.
  * Testing PythonOption
.
  * Testing PythonOption override
.
  * Testing PythonOption remove
.
  * Testing PythonOption remove2
.
  * Testing util_fieldstorage()
.
  * Testing PostReadRequestHandler
.
  * Testing TransHandler
.
  * Testing PythonOutputFilter
.
  * Testing PythonConnectionHandler
.
  * Testing PythonImport
.
  * Testing | .ext syntax
.
  * Testing mod_python.cgihandler
.
  * Testing mod_python.psp
.
  * Testing Cookie.Cookie
.
  * Testing Cookie.MarshalCookie
.
  * Testing Session.Session
.
  * Testing interpreter per directive
.
  * Testing interpreter per directory
.
  * Testing mod_python.publisher
.
  * Testing mod_python.publisher old-style instance publishing
.
  * Testing mod_python.publisher instance publishing
.
  * Testing mod_python.publisher security
.
  * Testing mod_python.publisher iterators
.
  * Testing mod_python.publisher hierarchy
.
--
Ran 36 tests in 8.575s

OK
  Stopping Apache...
 /usr/sbin/apache2 -k stop -f 
/usr/local/src/mod_python-3.2.2b/test/conf/test.conf
.
--
Ran 4 tests in 25.090s

OK