[Zope3-dev] Some results from "test.py" (OpenBSD 3.5+ Sparc64)
Claes Strom
no_spam_please at clabbe.com
Sat Jul 3 02:48:31 EDT 2004
Hi,
I have been playing a bit with Zope3X on OpenBSD/Sparc64 and had no
success....
H/W:
Sun Ultras 30 128MB RAM (with 512MB Swap)
OS:
(Allmost) OpenBSD "current" (between 3.5 and upcoming 3.6) with no
tweaks at all (except noatime and softdep on mounted partions). PF is
allowing all loopback and outgoing traffic.
Memory before the testrun: Real: 7448K/34M act/tot Free: 84M Swap:
25M/513M used/tot
Python:
2.3.4 installed with the same patches as version 2.3.3 in OpenBSD
"ports", which walks (slow) through the Python "test suite" without any
exceptions.
Pystone(1.1) time for 50000 passes = 19.87
This machine benchmarks at 2516.36 pystones/second
Zope:
Zope3X committed-rev=26040 built "straight away".
If I try to do the tests as ordinary user I was thrown out in an early
stage with a "MemoryError":
$ python2.3 test.py
Configuration file found.
Running UNIT tests from /usr/local/src/Zope3
Traceback (most recent call last):
File "test.py", line 27, in ?
zope.app.tests.test.process_args()
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 1132, in
process_args
bad = main(MODULE_FILTERS, TEST_FILTERS, LIBDIR)
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 810, in
main
runner(files, test_filter, DEBUG)
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 724, in
runner
s = get_suite(file, runner.result)
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 640, in
get_suite
result.addError(PseudoTestCase(modname), sys.exc_info())
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 385, in
addError
test, self.errors)
File "/usr/local/src/Zope3/src/zope/app/tests/test.py", line 338, in
_print_traceback
tb = "".join(traceback.format_exception(*err))
File "/usr/local/lib/python2.3/traceback.py", line 140, in
format_exception
list = list + format_tb(tb, limit)
File "/usr/local/lib/python2.3/traceback.py", line 75, in format_tb
return format_list(extract_tb(tb, limit))
File "/usr/local/lib/python2.3/traceback.py", line 99, in extract_tb
line = linecache.getline(filename, lineno)
File "/usr/local/lib/python2.3/linecache.py", line 14, in getline
lines = getlines(filename)
File "/usr/local/lib/python2.3/linecache.py", line 40, in getlines
return updatecache(filename)
File "/usr/local/lib/python2.3/linecache.py", line 93, in updatecache
lines = fp.readlines()
MemoryError
As root I'm coming a bit longer with these "Errors" instead:
# python2.3 test.py
Configuration file found.
Running UNIT tests from /usr/local/src/Zope3
Failure in test checkTimeoutAfterVote
(ZEO.tests.testConnection.MappingStorageTimeoutTests)
Traceback (most recent call last):
File "/usr/local/src/Zope3/src/ZEO/tests/ConnectionTests.py", line
889, in checkTimeoutAfterVote
unless(not storage.is_connected())
File "/usr/local/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError
The following test left new threads behind:
checkMTStores (ZEO.tests.testZEO.MappingStorageTests)
New thread(s): [<Thread(Thread-42, started)>]
Exception in thread Thread-42:
Traceback (most recent call last):
File "/usr/local/lib/python2.3/threading.py", line 436, in __bootstrap
self.run()
File "/usr/local/lib/python2.3/threading.py", line 416, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/src/Zope3/src/ZEO/tests/ThreadTests.py", line 132, in
mtstorehelper
self._dostore(data=obj)
File "/usr/local/src/Zope3/src/ZODB/tests/StorageTestBase.py", line
197, in _dostore
r2 = self._storage.tpc_vote(t)
File "/usr/local/src/Zope3/src/ZEO/ClientStorage.py", line 884, in
tpc_vote
self._server.vote(id(txn))
File "/usr/local/src/Zope3/src/ZEO/ServerStub.py", line 230, in vote
return self.rpc.call('vote', trans_id)
File "/usr/local/src/Zope3/src/ZEO/zrpc/connection.py", line 371, in
call
r_flags, r_args = self.wait(msgid)
File "/usr/local/src/Zope3/src/ZEO/zrpc/connection.py", line 461, in
wait
raise DisconnectedError()
DisconnectedError
Failure in test testRunIgnoresParentSignals
(zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
File "/usr/local/src/Zope3/src/zdaemon/tests/testzdrun.py", line 227,
in testRunIgnoresParentSignals
self.assert_(len(params) > 1, repr(response))
File "/usr/local/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError: ''
Failure in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
File "/usr/local/src/Zope3/src/zdaemon/tests/testzdrun.py", line 244,
in testUmask
self.assert_(not os.access(path, os.W_OK))
File "/usr/local/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError
Failure in test test_RuntimeInfoView
(zope.app.applicationcontrol.browser.tests.test_runtimeinfoview.Test)
Traceback (most recent call last):
File
"/usr/local/src/Zope3/src/zope/app/applicationcontrol/browser/tests/test_runtimeinfoview.py", line 51, in test_RuntimeInfoView
self.failUnless(assert_keys == test_keys)
File "/usr/local/lib/python2.3/unittest.py", line 278, in failUnless
if not expr: raise self.failureException, msg
AssertionError
Error in test test_PythonVersion
(zope.app.applicationcontrol.tests.test_runtimeinfo.Test)
Traceback (most recent call last):
File
"/usr/local/src/Zope3/src/zope/app/applicationcontrol/tests/test_runtimeinfo.py", line 90, in test_PythonVersion
self.assertEqual(runtime_info.getPythonVersion(),
File
"/usr/local/src/Zope3/src/zope/app/applicationcontrol/runtimeinfo.py",
line 63, in getPythonVersion
return unicode(sys.version, self.getPreferredEncoding())
TypeError: unicode() argument 2 must be string, not None
Error in test test_SystemPlatform
(zope.app.applicationcontrol.tests.test_runtimeinfo.Test)
Traceback (most recent call last):
File
"/usr/local/src/Zope3/src/zope/app/applicationcontrol/tests/test_runtimeinfo.py", line 99, in test_SystemPlatform
self.assertEqual(runtime_info.getSystemPlatform(),
File
"/usr/local/src/Zope3/src/zope/app/applicationcontrol/runtimeinfo.py",
line 77, in getSystemPlatform
return unicode(" ".join(info), self.getPreferredEncoding())
TypeError: unicode() argument 2 must be string, not None
And maybe some more (I lost my SSH-session after a long time of no
further output).
Regards
Claes Strom
PS
It's not looks like a clever thing to try run Zope and OpenBSD on an old
Sparc with not so much memory, very very sloooow ;-)
More information about the Zope3-dev
mailing list